From 2f02fa29358089f85d58c4eb1892f48b215a1f7b Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 1 Jan 2015 21:09:02 +0000 Subject: [PATCH] Fix build when building without OpenSSL (since r33781) --- nse_nsock.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nse_nsock.cc b/nse_nsock.cc index 9cda82d9a..0f02a1e9c 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -770,11 +770,16 @@ SSL *nse_nsock_get_ssl (lua_State *L) return (SSL *) nsi_getssl(nu->nsiod); } #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) { 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 /* Set the local address for socket operations. The two optional parameters