1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix build when building without OpenSSL (since r33781)

This commit is contained in:
dmiller
2015-01-01 21:09:02 +00:00
parent 10822d1633
commit 2f02fa2935

View File

@@ -770,11 +770,16 @@ SSL *nse_nsock_get_ssl (lua_State *L)
return (SSL *) nsi_getssl(nu->nsiod); return (SSL *) nsi_getssl(nu->nsiod);
} }
#else #else
/* If HAVE_OPENSSL is defined, this comes from nse_ssl_cert.cc. */ /* If HAVE_OPENSSL is defined, these come from nse_ssl_cert.cc. */
int l_get_ssl_certificate (lua_State *L) int l_get_ssl_certificate (lua_State *L)
{ {
return luaL_error(L, "SSL is not available"); return luaL_error(L, "SSL is not available");
} }
int l_parse_ssl_certificate(lua_State *L)
{
return luaL_error(L, "SSL is not available");
}
#endif #endif
/* Set the local address for socket operations. The two optional parameters /* Set the local address for socket operations. The two optional parameters