From: Wouter Wijngaards Date: Fri, 4 Nov 2016 07:58:57 +0000 (+0000) Subject: Fixup #if at start of line, for portability. X-Git-Tag: release-1.6.0rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4cbcf6313b6a32c5139b7842362edd0f3d5cf4;p=thirdparty%2Funbound.git Fixup #if at start of line, for portability. git-svn-id: file:///svn/unbound/trunk@3920 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/remote.c b/daemon/remote.c index fa945439c..70c7de7df 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -243,9 +243,9 @@ daemon_remote_create(struct config_file* cfg) if (cfg->remote_control_use_cert == 0) { /* No certificates are requested */ - #if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(HAVE_LIBRESSL) - SSL_CTX_set_security_level(rc->ctx, 0); - #endif +#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(HAVE_LIBRESSL) + SSL_CTX_set_security_level(rc->ctx, 0); +#endif if(!SSL_CTX_set_cipher_list(rc->ctx, "aNULL")) { log_crypto_err("Failed to set aNULL cipher list"); daemon_remote_delete(rc); diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index 79b3ae5fa..857e0d641 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -176,9 +176,9 @@ setup_ctx(struct config_file* cfg) free(c_cert); } else { /* Use ciphers that don't require authentication */ - #if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(HAVE_LIBRESSL) - SSL_CTX_set_security_level(ctx, 0); - #endif +#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(HAVE_LIBRESSL) + SSL_CTX_set_security_level(ctx, 0); +#endif if(!SSL_CTX_set_cipher_list(ctx, "aNULL")) ssl_err("Error setting NULL cipher!"); }