From 2ec9b9360059f2f13fa30bf55ed09e9da2d2e0d6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 13 Jul 2018 18:55:35 +1000 Subject: [PATCH] src/openssl.c: Prefer our list of standard cipher names in openssl <1.1.1 --- src/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openssl.c b/src/openssl.c index 709c6b4..823f9ee 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1789,7 +1789,8 @@ static size_t compat_SSL_SESSION_get_master_key(const SSL_SESSION *session, unsi } #endif -#if !HAVE_SSL_CIPHER_STANDARD_NAME +#if !HAVE_SSL_CIPHER_STANDARD_NAME || !OPENSSL_PREREQ(1,1,1) +/* OpenSSL < 1.1.1 has some outdated names; prefer this list */ static const struct {int num; const char *name;} ssl_ciphers_tbl[] = { {0x0000, "TLS_NULL_WITH_NULL_NULL"}, {0x0001, "TLS_RSA_WITH_NULL_MD5"},