aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william+solaris@25tandclement.com> 2014-09-22 13:01:16 -0700
committerLibravatarLibravatar william <william+solaris@25tandclement.com> 2014-09-22 13:01:16 -0700
commitdd6fc421c3544c07751ce4a3fd2c6bfdefcebd85 (patch)
treeddd9b6e74107f0d4a64292ba37600e2e50ea715a
parentbaddf60a4ee079f2e35141366f9c1ad7e7308875 (diff)
downloadluaossl-dd6fc421c3544c07751ce4a3fd2c6bfdefcebd85.tar.gz
luaossl-dd6fc421c3544c07751ce4a3fd2c6bfdefcebd85.tar.bz2
luaossl-dd6fc421c3544c07751ce4a3fd2c6bfdefcebd85.zip
unbreak Solaris (no ECC support)
-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;
}