OpenSSL: Fix build with BoringSSL
SSL_CTX_set_dh_auto() is not available in BoringSSL even though it
claims to be based on OpenSSL 1.1.1 in OPENSSL_VERSION_NUMBER.
Fixes: ebb3055e13
("OpenSSL: Generate DH parameters automatically if not set with dh_file")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6d33ef362e
commit
f7be558d69
1 changed files with 1 additions and 1 deletions
|
@ -4052,7 +4052,7 @@ static int tls_global_dh(struct tls_data *data, const char *dh_file)
|
|||
if (!ssl_ctx)
|
||||
return -1;
|
||||
if (!dh_file) {
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(OPENSSL_IS_BORINGSSL)
|
||||
SSL_CTX_set_dh_auto(ssl_ctx, 1);
|
||||
#endif
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue