Nmap Development mailing list archives
Re: SSL certificate key length in ssl-cert.nse
From: Matt Selsky <selsky () columbia edu>
Date: Tue, 19 Oct 2010 03:01:44 -0400 (EDT)
On Mon, 18 Oct 2010, David Fifield wrote:
I haven't tested this but it should be something like /* Certificate table is at position -1 */ lua_newtable(L); /* Table T at position -1 */ lua_pushstring(pkey_type); /* T now at position -2 */ lua_setfield(L, -2, "type"); /* T now at position -1 */ lua_pushnumber(pkey_bits); /* T now at position -2 */ lua_setfield(L, -2, "bits"); /* T now at position -1 */ lua_setfield(L, -2, "pubkey"); /* Assign T in the certificate table */ You don't need to add all those comments.
I did something similar.
Yes it does. But you don't have to worry about it. Just define a function pkey_type_to_string that returns "rsa" for EVP_PKEY_RSA, "dsa" for EVP_PKEY_DSA, and so on.
OK. How does this version look? -- Matt
Attachment:
0001-Show-the-type-size-of-the-SSL-public-key.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 01)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 01)
- Re: SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 01)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 04)
- Re: SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 18)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 18)
- Re: SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 19)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 19)
- Re: SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 20)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 20)
- Re: SSL certificate key length in ssl-cert.nse Matt Selsky (Oct 01)
- Re: SSL certificate key length in ssl-cert.nse David Fifield (Oct 01)