aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 7adc231..01e1840 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -3338,7 +3338,7 @@ static int pk_new(lua_State *L) {
if (!(*ud = EVP_PKEY_new()))
return auxL_error(L, auxL_EOPENSSL, "pkey.new");
- switch (EVP_PKEY_type(type)) {
+ switch (type) {
case EVP_PKEY_RSA: {
RSA *rsa;