aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-10-26 13:07:39 +1100
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-10-26 13:07:39 +1100
commit163ec2f9f2e759798458040c5ff1697eb64ba24a (patch)
treea1c8bf656db0cde1811c5cfffd258fdcd2259a6e
parent6d20508ff16e346c85b9e6d77ba109e2312f0e46 (diff)
downloadluaossl-163ec2f9f2e759798458040c5ff1697eb64ba24a.tar.gz
luaossl-163ec2f9f2e759798458040c5ff1697eb64ba24a.tar.bz2
luaossl-163ec2f9f2e759798458040c5ff1697eb64ba24a.zip
src/openssl.c: Remove redundant EVP_PKEY_type
-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;