]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: set SSL_SOCK_NUM_KEYTYPES with openssl < 1.0.2
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Dec 2015 10:28:33 +0000 (11:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Dec 2015 10:28:33 +0000 (11:28 +0100)
Last patch unfortunately broke build with openssl older than 1.0.2.
Let's just define a single key type in this case.

src/ssl_sock.c

index 31af6f9d0ef4a77feade9ee8df9ca9e69d4d3aef..5200069f10a716923602cebd186c19e7690980c5 100644 (file)
@@ -168,6 +168,8 @@ const char *SSL_SOCK_KEYTYPE_NAMES[] = {
        "rsa"
 };
 #define SSL_SOCK_NUM_KEYTYPES 3
+#else
+#define SSL_SOCK_NUM_KEYTYPES 1
 #endif
 
 #if (defined SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB && !defined OPENSSL_NO_OCSP)