25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

* src/tls/tls_drv.c: Sends the entire certificate chain (EJAB-209).

SVN Revision: 841
This commit is contained in:
Mickaël Rémond 2007-07-30 12:29:02 +00:00
parent bf6e5a0d26
commit 15eee1c604
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2007-07-30 Mickael Remond <mickael.remond@process-one.net>
* src/tls/tls_drv.c: Sends the entire certificate chain (EJAB-209).
* src/acl.erl: Remove compilation warnings (EJAB-290).
* src/xml_stream.erl: Group CDATA on a single xmlcdata

View File

@ -108,7 +108,7 @@ static int tls_drv_control(ErlDrvData handle,
d->ctx = SSL_CTX_new(SSLv23_method());
die_unless(d->ctx, "SSL_CTX_new failed");
res = SSL_CTX_use_certificate_file(d->ctx, buf, SSL_FILETYPE_PEM);
res = SSL_CTX_use_certificate_chain_file(d->ctx, buf);
die_unless(res > 0, "SSL_CTX_use_certificate_file failed");
res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM);