mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix EC cert handling. Fixes #541
This commit is contained in:
parent
916647d375
commit
85e6ebc64e
1 changed files with 2 additions and 1 deletions
|
|
@ -123,6 +123,7 @@
|
|||
/* $Id:$ */
|
||||
|
||||
#include "nbase.h"
|
||||
#include "nmap_config.h"
|
||||
|
||||
#include <assert.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_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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue