25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

* src/tls/tls_drv.c: Reverted previous patch

SVN Revision: 327
This commit is contained in:
Alexey Shchepin 2005-04-24 12:09:47 +00:00
parent e93f2aa1e1
commit 9f1fd5ee3f
2 changed files with 6 additions and 2 deletions

View File

@ -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> 2005-04-22 Alexey Shchepin <alexey@sevcom.net>
* doc/guide.tex: Added mod_shared_roster documentation * doc/guide.tex: Added mod_shared_roster documentation

View File

@ -80,8 +80,8 @@ static int tls_drv_control(ErlDrvData handle,
d->ctx = SSL_CTX_new(SSLv23_server_method()); d->ctx = SSL_CTX_new(SSLv23_server_method());
die_unless(d->ctx, "SSL_CTX_new failed"); die_unless(d->ctx, "SSL_CTX_new failed");
res = SSL_CTX_use_certificate_chain_file(d->ctx, buf); res = SSL_CTX_use_certificate_file(d->ctx, buf, SSL_FILETYPE_PEM);
die_unless(res > 0, "ssl_ctx_use_certificate_chain_file failed"); die_unless(res > 0, "SSL_CTX_use_certificate_file failed");
res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM); res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM);
die_unless(res > 0, "SSL_CTX_use_PrivateKey_file failed"); die_unless(res > 0, "SSL_CTX_use_PrivateKey_file failed");