From 9f1fd5ee3f6c128c2dad2f324eee5a43b5027376 Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Sun, 24 Apr 2005 12:09:47 +0000 Subject: [PATCH] * src/tls/tls_drv.c: Reverted previous patch SVN Revision: 327 --- ChangeLog | 4 ++++ src/tls/tls_drv.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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");