Skip to content

Commit 2ec9b93

Browse files
committed
src/openssl.c: Prefer our list of standard cipher names in openssl <1.1.1
1 parent 2d01cf6 commit 2ec9b93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,8 @@ static size_t compat_SSL_SESSION_get_master_key(const SSL_SESSION *session, unsi
17891789
}
17901790
#endif
17911791

1792-
#if !HAVE_SSL_CIPHER_STANDARD_NAME
1792+
#if !HAVE_SSL_CIPHER_STANDARD_NAME || !OPENSSL_PREREQ(1,1,1)
1793+
/* OpenSSL < 1.1.1 has some outdated names; prefer this list */
17931794
static const struct {int num; const char *name;} ssl_ciphers_tbl[] = {
17941795
{0x0000, "TLS_NULL_WITH_NULL_NULL"},
17951796
{0x0001, "TLS_RSA_WITH_NULL_MD5"},

0 commit comments

Comments
 (0)