summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 04833a5..5507762 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -3224,7 +3224,7 @@ static int pk_new(lua_State *L) {
3224 if (!lua_istable(L, 1)) 3224 if (!lua_istable(L, 1))
3225 goto creat; 3225 goto creat;
3226 3226
3227 if (loadfield(L, 1, "type", LUA_TSTRING, &id)) { 3227 if (loadfield(L, 1, "type", LUA_TSTRING, (void*)&id)) {
3228 static const struct { int nid; const char *sn; } types[] = { 3228 static const struct { int nid; const char *sn; } types[] = {
3229 { EVP_PKEY_RSA, "RSA" }, 3229 { EVP_PKEY_RSA, "RSA" },
3230 { EVP_PKEY_DSA, "DSA" }, 3230 { EVP_PKEY_DSA, "DSA" },
@@ -3264,7 +3264,7 @@ static int pk_new(lua_State *L) {
3264 case EVP_PKEY_DH: 3264 case EVP_PKEY_DH:
3265 /* dhparam field can contain a PEM encoded string. 3265 /* dhparam field can contain a PEM encoded string.
3266 The "dhparam" field takes precedence over "bits" */ 3266 The "dhparam" field takes precedence over "bits" */
3267 if (loadfield(L, 1, "dhparam", LUA_TSTRING, &dhparam)) 3267 if (loadfield(L, 1, "dhparam", LUA_TSTRING, (void*)&dhparam))
3268 break; 3268 break;
3269 3269
3270 if (loadfield(L, 1, "bits", LUA_TNUMBER, &n)) { 3270 if (loadfield(L, 1, "bits", LUA_TNUMBER, &n)) {
@@ -3279,7 +3279,7 @@ static int pk_new(lua_State *L) {
3279 } 3279 }
3280 break; 3280 break;
3281 case EVP_PKEY_EC: 3281 case EVP_PKEY_EC:
3282 if (loadfield(L, 1, "curve", LUA_TSTRING, &id)) { 3282 if (loadfield(L, 1, "curve", LUA_TSTRING, (void*)&id)) {
3283 if (!auxS_txt2nid(&curve, id)) 3283 if (!auxS_txt2nid(&curve, id))
3284 luaL_argerror(L, 1, lua_pushfstring(L, "%s: invalid curve", id)); 3284 luaL_argerror(L, 1, lua_pushfstring(L, "%s: invalid curve", id));
3285 } 3285 }