From d1a748c9320b73155907489f344a9ce8111c01a1 Mon Sep 17 00:00:00 2001
From: William Ahern <william+solaris@25thandClement.com>
Date: Fri, 18 Dec 2015 02:48:48 -0800
Subject: fix Solaris build

---
 src/openssl.c | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src')

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);
 	}
-- 
cgit v1.2.3-55-g6feb