BUILD: ssl: set SSL_SOCK_NUM_KEYTYPES with openssl < 1.0.2

Last patch unfortunately broke build with openssl older than 1.0.2.
Let's just define a single key type in this case.
This commit is contained in:
Willy Tarreau 2015-12-14 11:28:33 +01:00
parent be2774dd35
commit 30da7ad809

View File

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