diff --git a/nse_nsock.cc b/nse_nsock.cc index d2b29650b..e0a16f881 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -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; diff --git a/nse_ssl_cert.cc b/nse_ssl_cert.cc index 818b657ed..1417d5bc5 100644 --- a/nse_ssl_cert.cc +++ b/nse_ssl_cert.cc @@ -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;