From b7e02cc42e0033f6780fb6b70e314b7ce29b046e Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 25 Jun 2010 17:30:35 +0200 Subject: [PATCH] Inform client that SSL session caching is disabled (thanks to Pawel Chmielowski) --- src/tls/tls_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index 08aa1f6f1..041fad6ed 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -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); }