From dd6fc421c3544c07751ce4a3fd2c6bfdefcebd85 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 22 Sep 2014 13:01:16 -0700 Subject: unbreak Solaris (no ECC support) --- src/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-59-g8ed1b