1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Remove the const qualifier from the SSL pointer returned from

nse_nsock_get_ssl. In older versions of OpenSSL (I don't know how old)
the argument to SSL_get_peer_certificate is not const and it caused a
compiler error reported by Ron Bowes.
This commit is contained in:
david
2009-08-19 16:33:11 +00:00
parent b904a3864d
commit 7d87fe7aa5
2 changed files with 3 additions and 3 deletions

View File

@@ -1744,7 +1744,7 @@ int ncap_restore_lua(ncap_request * nr)
}
#if HAVE_OPENSSL
const SSL *nse_nsock_get_ssl(lua_State *L)
SSL *nse_nsock_get_ssl(lua_State *L)
{
const l_nsock_udata *udata;

View File

@@ -112,7 +112,7 @@ struct cert_userdata {
int attributes_table;
};
const SSL *nse_nsock_get_ssl(lua_State *L);
SSL *nse_nsock_get_ssl(lua_State *L);
/* This is a reference to a table that will be used as the metatable for
certificate attribute tables. It has an __index entry that points to the
@@ -367,7 +367,7 @@ static void cert_pem_to_string(lua_State *L, X509 *cert)
int l_get_ssl_certificate(lua_State *L)
{
const SSL *ssl;
SSL *ssl;
struct cert_userdata *udata;
X509 *cert;
X509_NAME *subject, *issuer;