aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 1aab2ca..4936003 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -497,11 +497,15 @@ static void *compat_EVP_PKEY_get0(EVP_PKEY *key) {
if ((ptr = EVP_PKEY_get1_DH(key)))
DH_free(ptr);
break;
+#ifndef OPENSSL_NO_EC
case EVP_PKEY_EC:
if ((ptr = EVP_PKEY_get1_EC_KEY(key)))
EC_KEY_free(ptr);
break;
+#endif
default:
+ /* TODO: Use ERR_put_error */
+
break;
}