mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
BUILD: ssl: Fix compilation with OpenSSL 1.0.2
The DH parameters used for OpenSSL versions 1.1.1 and earlier where changed. For OpenSSL 1.0.2 and LibreSSL the newly introduced ssl_get_dh_by_nid function is not used since we keep the original parameters.
This commit is contained in:
parent
1d6338ea96
commit
c69be7cd3c
@ -2954,6 +2954,7 @@ end:
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
|
||||||
static inline HASSL_DH *ssl_get_dh_by_nid(int nid)
|
static inline HASSL_DH *ssl_get_dh_by_nid(int nid)
|
||||||
{
|
{
|
||||||
#if (HA_OPENSSL_VERSION_NUMBER >= 0x3000000fL)
|
#if (HA_OPENSSL_VERSION_NUMBER >= 0x3000000fL)
|
||||||
@ -2982,12 +2983,11 @@ end:
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
HASSL_DH *dh = NULL;
|
HASSL_DH *dh = NULL;
|
||||||
#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
|
|
||||||
dh = DH_new_by_nid(nid);
|
dh = DH_new_by_nid(nid);
|
||||||
#endif
|
|
||||||
return dh;
|
return dh;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static HASSL_DH * ssl_get_dh_1024(void)
|
static HASSL_DH * ssl_get_dh_1024(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user