mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix EC cert handling. Fixes #541
This commit is contained in:
@@ -123,6 +123,7 @@
|
|||||||
/* $Id:$ */
|
/* $Id:$ */
|
||||||
|
|
||||||
#include "nbase.h"
|
#include "nbase.h"
|
||||||
|
#include "nmap_config.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -587,7 +588,7 @@ static int parse_ssl_cert(lua_State *L, X509 *cert)
|
|||||||
}
|
}
|
||||||
lua_pushstring(L, pkey_type_to_string(pkey_type));
|
lua_pushstring(L, pkey_type_to_string(pkey_type));
|
||||||
lua_setfield(L, -2, "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, "bits");
|
||||||
lua_setfield(L, -2, "pubkey");
|
lua_setfield(L, -2, "pubkey");
|
||||||
EVP_PKEY_free(pubkey);
|
EVP_PKEY_free(pubkey);
|
||||||
|
|||||||
Reference in New Issue
Block a user