1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

New function, sslcert.parse_ssl_certificate

For reasons, the function is exported from nse_ssl_cert.cc into
nmap.socket, then included and documented in sslcert.lua because it fits
better there.
This commit is contained in:
dmiller
2014-11-05 05:55:52 +00:00
parent aeae800545
commit 2871ba3e6c
4 changed files with 40 additions and 3 deletions

View File

@@ -29,6 +29,14 @@ local string = require "string"
local xmpp = require "xmpp"
_ENV = stdnse.module("sslcert", stdnse.seeall)
--- Parse an X.509 certificate from DER-encoded string
--@name parse_ssl_certificate
--@class function
--@param der DER-encoded certificate
--@return table containing decoded certificate
--@see nmap.get_ssl_certificate
_ENV.parse_ssl_certificate = nmap.socket.parse_ssl_certificate
StartTLS = {
-- TODO: Implement STARTTLS for NNTP