]> granicus.if.org Git - ejabberd/commitdiff
* src/tls/tls_drv.c: Reverted previous patch
authorAlexey Shchepin <alexey@process-one.net>
Sun, 24 Apr 2005 12:09:47 +0000 (12:09 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Sun, 24 Apr 2005 12:09:47 +0000 (12:09 +0000)
SVN Revision: 327

ChangeLog
src/tls/tls_drv.c

index fc213da0c5da96946236a2110692a014eab01fbe..d99030e4559c812c6f7fc052f43aef6779f1debe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-24  Alexey Shchepin  <alexey@sevcom.net>
+
+       * src/tls/tls_drv.c: Reverted previous patch
+
 2005-04-22  Alexey Shchepin  <alexey@sevcom.net>
 
        * doc/guide.tex: Added mod_shared_roster documentation
index fa47ed3f66ccaca2e8d832b83776988893549dfe..f320ee31f8dad1fb2f23ae475c04af0c3ccc17b5 100644 (file)
@@ -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");