mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-11 09:37:20 +02:00
MINOR: ssl: remove an unecessary SSL_OP_NO_* dependancy
Use methodVersions table to display "OpenSSL library supports".
This commit is contained in:
parent
23877ab653
commit
f80bc24dde
@ -8104,6 +8104,7 @@ __attribute__((constructor))
|
|||||||
static void __ssl_sock_init(void)
|
static void __ssl_sock_init(void)
|
||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
int i;
|
||||||
|
|
||||||
STACK_OF(SSL_COMP)* cm;
|
STACK_OF(SSL_COMP)* cm;
|
||||||
|
|
||||||
@ -8166,23 +8167,10 @@ static void __ssl_sock_init(void)
|
|||||||
#endif
|
#endif
|
||||||
"", ptr);
|
"", ptr);
|
||||||
|
|
||||||
memprintf(&ptr, "%s\nOpenSSL library supports : "
|
memprintf(&ptr, "%s\nOpenSSL library supports :", ptr);
|
||||||
#if SSL_OP_NO_SSLv3
|
for (i = CONF_TLSV_MIN; i <= CONF_TLSV_MAX; i++)
|
||||||
"SSLv3 "
|
if (methodVersions[i].option)
|
||||||
#endif
|
memprintf(&ptr, "%s %s", ptr, methodVersions[i].name);
|
||||||
#if SSL_OP_NO_TLSv1
|
|
||||||
"TLSv1.0 "
|
|
||||||
#endif
|
|
||||||
#if SSL_OP_NO_TLSv1_1
|
|
||||||
"TLSv1.1 "
|
|
||||||
#endif
|
|
||||||
#if SSL_OP_NO_TLSv1_2
|
|
||||||
"TLSv1.2 "
|
|
||||||
#endif
|
|
||||||
#if SSL_OP_NO_TLSv1_3
|
|
||||||
"TLSv1.3"
|
|
||||||
#endif
|
|
||||||
"", ptr);
|
|
||||||
|
|
||||||
hap_register_build_opts(ptr, 1);
|
hap_register_build_opts(ptr, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user