]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup #if at start of line, for portability.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Nov 2016 07:58:57 +0000 (07:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Nov 2016 07:58:57 +0000 (07:58 +0000)
git-svn-id: file:///svn/unbound/trunk@3920 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/remote.c
smallapp/unbound-control.c

index fa945439cc602dbcc0026211772374ce1b1bcbbc..70c7de7df9e16ccf98c0045c4f086e215ecbdf00 100644 (file)
@@ -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);
index 79b3ae5fa08df5c112ceac7f77fa701e86eae710..857e0d641d73f047be854ddf1368471430b43111 100644 (file)
@@ -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!");
        }