aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william+solaris@25thandClement.com> 2015-12-18 02:48:48 -0800
committerLibravatarLibravatar William Ahern <william+solaris@25thandClement.com> 2015-12-18 02:48:48 -0800
commitd1a748c9320b73155907489f344a9ce8111c01a1 (patch)
tree10e96d907a1b19e0088abed1c19f298024cfb285 /src
parentd33874793b2ed9d92640f80e8503376779e0c332 (diff)
downloadluaossl-d1a748c9320b73155907489f344a9ce8111c01a1.tar.gz
luaossl-d1a748c9320b73155907489f344a9ce8111c01a1.tar.bz2
luaossl-d1a748c9320b73155907489f344a9ce8111c01a1.zip
fix Solaris build
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 84a0155..7247616 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -2566,7 +2566,9 @@ static void pk_pushparam(lua_State *L, void *_key, enum pk_param which) {
RSA *rsa;
DH *dh;
DSA *dsa;
+#ifndef OPENSSL_NO_EC
EC_KEY *ec;
+#endif
} key = { _key };
switch (which) {
@@ -2646,6 +2648,7 @@ static void pk_pushparam(lua_State *L, void *_key, enum pk_param which) {
bn_dup(L, key.dh->priv_key);
break;
+#ifndef OPENSSL_NO_EC
case PK_EC_PUB_KEY: {
const EC_GROUP *group;
const EC_POINT *public_key;
@@ -2660,6 +2663,7 @@ static void pk_pushparam(lua_State *L, void *_key, enum pk_param which) {
bn_dup(L, EC_KEY_get0_private_key(key.ec));
break;
+#endif
default:
luaL_error(L, "%d: invalid EVP_PKEY parameter", which);
}