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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user