aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/tls_openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/IO/tls_openssl.c b/src/IO/tls_openssl.c
index d2a454e7..f14153aa 100644
--- a/src/IO/tls_openssl.c
+++ b/src/IO/tls_openssl.c
@@ -491,7 +491,11 @@ static bool_t Tls_check_cert_strength(SSL *ssl, Server_t *srv, int *choice)
if (print_chain)
MSG("%s ", buf);
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
+ key_type = EVP_PKEY_type(EVP_PKEY_id(public_key));
+#else
key_type = EVP_PKEY_type(EVP_PKEY_get_id(public_key));
+#endif
type_str = key_type == EVP_PKEY_RSA ? "RSA" :
key_type == EVP_PKEY_DSA ? "DSA" :
key_type == EVP_PKEY_DH ? "DH" :