mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 10:59:02 +00:00
Correct qualifiers for arguments of RSA_get0_key, by gvanem
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user