Skip to content

Commit

Permalink
sslhelper: Update for LibreSSL >= 3.6.0 (#224)
Browse files Browse the repository at this point in the history
Since LibreSSL 3.6.0 SSL_CTX_set_security_level() has been available.
  • Loading branch information
orbea authored May 2, 2023
1 parent 0c4fbc3 commit 354602c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sslhelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,8 @@ static int switch_to_anon_dh(void) {
if (ssl_client_mode) {
return 1;
}
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || \
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x3060000fL)
/* Security level must be set to 0 for unauthenticated suites. */
SSL_CTX_set_security_level(ctx, 0);
#endif
Expand Down

0 comments on commit 354602c

Please sign in to comment.