diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-04-09 23:47:56 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-04-09 23:47:56 +0000 |
commit | 13de45118d951e955074a2a9775298b36f92f718 (patch) | |
tree | bda493618028d36e778186b6f0387b64faeb0e92 /src/tls/tls_drv.c | |
parent | * src/ejabberd_c2s.erl: Send new id for each new stream inside one (diff) |
* src/ejabberd_c2s.erl: Send new id for each new stream inside one
session (thanks to Maxim Ryazanov)
* src/tls/tls_drv.c: Now reads all certificates from certificate
file instead of reading only first one (thanks to Karl-Johan
Karlsson)
* examples/transport-configs/init-scripts/jabber-gg-transport:
Fixed typo (thanks to Sander Devrieze)
SVN Revision: 305
Diffstat (limited to '')
-rw-r--r-- | src/tls/tls_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index f320ee31..fa47ed3f 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_file(d->ctx, buf, SSL_FILETYPE_PEM); - die_unless(res > 0, "SSL_CTX_use_certificate_file 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_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM); die_unless(res > 0, "SSL_CTX_use_PrivateKey_file failed"); |