diff --git a/ChangeLog b/ChangeLog index fc213da0c..d99030e45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-04-24 Alexey Shchepin + + * src/tls/tls_drv.c: Reverted previous patch + 2005-04-22 Alexey Shchepin * doc/guide.tex: Added mod_shared_roster documentation diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index fa47ed3f6..f320ee31f 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -80,8 +80,8 @@ static int tls_drv_control(ErlDrvData handle, d->ctx = SSL_CTX_new(SSLv23_server_method()); die_unless(d->ctx, "SSL_CTX_new failed"); - res = SSL_CTX_use_certificate_chain_file(d->ctx, buf); - die_unless(res > 0, "ssl_ctx_use_certificate_chain_file failed"); + res = SSL_CTX_use_certificate_file(d->ctx, buf, SSL_FILETYPE_PEM); + die_unless(res > 0, "SSL_CTX_use_certificate_file failed"); res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM); die_unless(res > 0, "SSL_CTX_use_PrivateKey_file failed");