mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Inform client that SSL session caching is disabled (thanks to Pawel Chmielowski)
This commit is contained in:
parent
3ab90c9d3a
commit
b7e02cc42e
@ -369,9 +369,10 @@ static int tls_drv_control(ErlDrvData handle,
|
||||
|
||||
SSL_set_bio(d->ssl, d->bio_read, d->bio_write);
|
||||
|
||||
if (command == SET_CERTIFICATE_FILE_ACCEPT)
|
||||
if (command == SET_CERTIFICATE_FILE_ACCEPT) {
|
||||
SSL_set_options(d->ssl, SSL_OP_NO_TICKET);
|
||||
SSL_set_accept_state(d->ssl);
|
||||
else {
|
||||
} else {
|
||||
SSL_set_options(d->ssl, SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET);
|
||||
SSL_set_connect_state(d->ssl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user