]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix build without OPENSSL_NO_ENGINE
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 18 May 2020 11:42:49 +0000 (13:42 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 May 2020 12:19:26 +0000 (14:19 +0200)
The CI revealed that the boringssl build is still broken because of some
ifdef misplacement.

Bug introduced by dad3105 ("REORG: ssl: move ssl configuration to
cfgparse-ssl.c").

No backport needed.

Fix issue #633.

src/cfgparse-ssl.c

index a3ce2995ae16bed8e84c02af89ee82e6f60044f2..374ca920b1e8cca2500922c726173511e1a2cee7 100644 (file)
@@ -121,7 +121,6 @@ static int ssl_load_global_issuers_from_path(char **args, int section_type, stru
        return 0;
 }
 
-#ifndef OPENSSL_NO_ENGINE
 /* parse the "ssl-mode-async" keyword in global section.
  * Returns <0 on alert, >0 on warning, 0 on success.
  */
@@ -139,6 +138,7 @@ static int ssl_parse_global_ssl_async(char **args, int section_type, struct prox
 #endif
 }
 
+#ifndef OPENSSL_NO_ENGINE
 /* parse the "ssl-engine" keyword in global section.
  * Returns <0 on alert, >0 on warning, 0 on success.
  */