aboutsummaryrefslogtreecommitdiff
path: root/src/tls
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tls_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c
index 6dbdccbe9..e45b81679 100644
--- a/src/tls/tls_drv.c
+++ b/src/tls/tls_drv.c
@@ -386,7 +386,8 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle,
SSL_set_bio(d->ssl, d->bio_read, d->bio_write);
if (command == SET_CERTIFICATE_FILE_ACCEPT) {
- SSL_set_options(d->ssl, SSL_OP_NO_TICKET);
+ SSL_set_options(d->ssl, SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET|SSL_OP_ALL);
+
SSL_set_accept_state(d->ssl);
} else {
SSL_set_options(d->ssl, SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET);
@@ -400,6 +401,7 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle,
break;
case SET_DECRYPTED_OUTPUT:
die_unless(d->ssl, "SSL not initialized");
+
res = SSL_write(d->ssl, buf, len);
if (res <= 0)
{