From 163ec2f9f2e759798458040c5ff1697eb64ba24a Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 26 Oct 2017 13:07:39 +1100 Subject: src/openssl.c: Remove redundant EVP_PKEY_type --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-59-g8ed1b