summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Ahern <william+solaris@25thandClement.com>2015-12-18 02:48:48 -0800
committerWilliam Ahern <william+solaris@25thandClement.com>2015-12-18 02:48:48 -0800
commitd1a748c9320b73155907489f344a9ce8111c01a1 (patch)
tree10e96d907a1b19e0088abed1c19f298024cfb285
parentd33874793b2ed9d92640f80e8503376779e0c332 (diff)
downloadluaossl-d1a748c9320b73155907489f344a9ce8111c01a1.tar.gz
luaossl-d1a748c9320b73155907489f344a9ce8111c01a1.tar.bz2
luaossl-d1a748c9320b73155907489f344a9ce8111c01a1.zip
fix Solaris build
-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) {
2566 RSA *rsa; 2566 RSA *rsa;
2567 DH *dh; 2567 DH *dh;
2568 DSA *dsa; 2568 DSA *dsa;
2569#ifndef OPENSSL_NO_EC
2569 EC_KEY *ec; 2570 EC_KEY *ec;
2571#endif
2570 } key = { _key }; 2572 } key = { _key };
2571 2573
2572 switch (which) { 2574 switch (which) {
@@ -2646,6 +2648,7 @@ static void pk_pushparam(lua_State *L, void *_key, enum pk_param which) {
2646 bn_dup(L, key.dh->priv_key); 2648 bn_dup(L, key.dh->priv_key);
2647 2649
2648 break; 2650 break;
2651#ifndef OPENSSL_NO_EC
2649 case PK_EC_PUB_KEY: { 2652 case PK_EC_PUB_KEY: {
2650 const EC_GROUP *group; 2653 const EC_GROUP *group;
2651 const EC_POINT *public_key; 2654 const EC_POINT *public_key;
@@ -2660,6 +2663,7 @@ static void pk_pushparam(lua_State *L, void *_key, enum pk_param which) {
2660 bn_dup(L, EC_KEY_get0_private_key(key.ec)); 2663 bn_dup(L, EC_KEY_get0_private_key(key.ec));
2661 2664
2662 break; 2665 break;
2666#endif
2663 default: 2667 default:
2664 luaL_error(L, "%d: invalid EVP_PKEY parameter", which); 2668 luaL_error(L, "%d: invalid EVP_PKEY parameter", which);
2665 } 2669 }