]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile with libnettle
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Jul 2017 09:52:20 +0000 (09:52 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Jul 2017 09:52:20 +0000 (09:52 +0000)
git-svn-id: file:///svn/unbound/trunk@4281 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/net_help.c

index 13ea25647cd4a5871d7af76c9972500fbd3db66c..c01e6565bf59dcc8c3344bd8cd670ba0b5ce71ed 100644 (file)
@@ -7,6 +7,7 @@
        - squelch TCP fast open error on FreeBSD when kernel has it disabled,
          unless verbosity is high.
        - remove warning from windows compile.
+       - Fix compile with libnettle
 
 17 July 2017: Wouter
        - Fix #1350: make cachedb backend configurable (from JINMEI Tatuya).
index 621c02634c5e34220cdb7ca0a3245258d2765e32..f6a3f3e9cffb17286268700fd4546dda630dd50c 100644 (file)
@@ -613,6 +613,7 @@ log_crypto_err(const char* str)
 int
 listen_sslctx_setup(void* ctxt)
 {
+#ifdef HAVE_SSL
        SSL_CTX* ctx = (SSL_CTX*)ctxt;
        /* no SSLv2, SSLv3 because has defects */
        if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) & SSL_OP_NO_SSLv2)
@@ -658,11 +659,15 @@ listen_sslctx_setup(void* ctxt)
        SSL_CTX_set_security_level(ctx, 0);
 #endif
        return 1;
+#else
+       (void)ctxt;
+#endif /* HAVE_SSL */
 }
 
 void
 listen_sslctx_setup_2(void* ctxt)
 {
+#ifdef HAVE_SSL
        SSL_CTX* ctx = (SSL_CTX*)ctxt;
        (void)ctx;
 #if HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
@@ -682,6 +687,9 @@ listen_sslctx_setup_2(void* ctxt)
                }
        }
 #endif
+#else
+       (void)ctxt;
+#endif /* HAVE_SSL */
 }
 
 void* listen_sslctx_create(char* key, char* pem, char* verifypem)