From 85e6ebc64e0f84db4111bb33e88d794326f7c211 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 6 Sep 2016 16:36:30 +0000 Subject: [PATCH] Fix EC cert handling. Fixes #541 --- nse_ssl_cert.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nse_ssl_cert.cc b/nse_ssl_cert.cc index 6be29b9f7..9f0875581 100644 --- a/nse_ssl_cert.cc +++ b/nse_ssl_cert.cc @@ -123,6 +123,7 @@ /* $Id:$ */ #include "nbase.h" +#include "nmap_config.h" #include #include @@ -587,7 +588,7 @@ static int parse_ssl_cert(lua_State *L, X509 *cert) } lua_pushstring(L, pkey_type_to_string(pkey_type)); lua_setfield(L, -2, "type"); - lua_pushnumber(L, EVP_PKEY_bits(pubkey)); + lua_pushinteger(L, EVP_PKEY_bits(pubkey)); lua_setfield(L, -2, "bits"); lua_setfield(L, -2, "pubkey"); EVP_PKEY_free(pubkey);