From 107f4f2e9b343a8bc94737754ae1176c9ac3df2b Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 2 Aug 2016 11:47:04 +0000 Subject: [PATCH] Correct problem --- nse_ssl_cert.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nse_ssl_cert.cc b/nse_ssl_cert.cc index d25c7c204..3867a88f1 100644 --- a/nse_ssl_cert.cc +++ b/nse_ssl_cert.cc @@ -570,9 +570,9 @@ static int parse_ssl_cert(lua_State *L, X509 *cert) #if OPENSSL_VERSION_NUMBER < 0x10100000L data->bn = rsa->e; #else - const BIGNUM *n, *e, *d; + BIGNUM *n, *e, *d; RSA_get0_key(rsa, &n, &e, &d); - data->bn = (BIGNUM*) e; + data->bn = e; #endif lua_setfield(L, -2, "exponent"); }