diff options
author | Badlop <badlop@process-one.net> | 2010-06-25 17:30:35 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-06-25 18:33:49 +0200 |
commit | b7e02cc42e0033f6780fb6b70e314b7ce29b046e (patch) | |
tree | 78f33e6ac635c5b07cadd5de7827eaa49f02c4d0 /src/tls | |
parent | Don't ask for client certificate when using tls (EJAB-1267) (diff) |
Inform client that SSL session caching is disabled (thanks to Pawel Chmielowski)
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls_drv.c | 5 |
1 files 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); } |