From 20808070526edf13e7767d0b1248c1a109aff2d0 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 2 Aug 2016 11:38:52 +0000 Subject: [PATCH] Correct qualifiers for arguments of RSA_get0_key, by gvanem --- 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 3867a88f1..d25c7c204 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 - BIGNUM *n, *e, *d; + const BIGNUM *n, *e, *d; RSA_get0_key(rsa, &n, &e, &d); - data->bn = e; + data->bn = (BIGNUM*) e; #endif lua_setfield(L, -2, "exponent"); }