summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {
497 if ((ptr = EVP_PKEY_get1_DH(key))) 497 if ((ptr = EVP_PKEY_get1_DH(key)))
498 DH_free(ptr); 498 DH_free(ptr);
499 break; 499 break;
500#ifndef OPENSSL_NO_EC
500 case EVP_PKEY_EC: 501 case EVP_PKEY_EC:
501 if ((ptr = EVP_PKEY_get1_EC_KEY(key))) 502 if ((ptr = EVP_PKEY_get1_EC_KEY(key)))
502 EC_KEY_free(ptr); 503 EC_KEY_free(ptr);
503 break; 504 break;
505#endif
504 default: 506 default:
507 /* TODO: Use ERR_put_error */
508
505 break; 509 break;
506 } 510 }
507 511