From 308d25095010cc66b1b67286e27e62e265360b59 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 14 May 2020 06:08:40 +0000 Subject: Update to 4.3.1 Testing & OK sthen --- usr.sbin/nsd/nsd-control.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/nsd/nsd-control.c') diff --git a/usr.sbin/nsd/nsd-control.c b/usr.sbin/nsd/nsd-control.c index 649320eefa1..2152daa4dba 100644 --- a/usr.sbin/nsd/nsd-control.c +++ b/usr.sbin/nsd/nsd-control.c @@ -157,9 +157,11 @@ setup_ctx(struct nsd_options* cfg) ctx = SSL_CTX_new(SSLv23_client_method()); if(!ctx) ssl_err("could not allocate SSL_CTX pointer"); +#if SSL_OP_NO_SSLv2 != 0 if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) & SSL_OP_NO_SSLv2) != SSL_OP_NO_SSLv2) ssl_err("could not set SSL_OP_NO_SSLv2"); +#endif if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3) & SSL_OP_NO_SSLv3) != SSL_OP_NO_SSLv3) ssl_err("could not set SSL_OP_NO_SSLv3"); -- cgit v1.2.3-59-g8ed1b