OpenVAS Libraries
6.0+beta5
|
Protos and data structures for CERT functions used by NASL scripts. More...
Go to the source code of this file.
Functions | |
tree_cell * | nasl_cert_open (lex_ctxt *lexic) |
Create a certificate object. More... | |
tree_cell * | nasl_cert_close (lex_ctxt *lexic) |
Release a certificate object. More... | |
tree_cell * | nasl_cert_query (lex_ctxt *lexic) |
Query a certificate object. More... | |
Protos and data structures for CERT functions used by NASL scripts.
This file contains the protos for nasl_cert.c
Release a certificate object.
Takes a cert identifier as returned by cert_open and releases the associated resources.
[in] | lexic | Lexical context of the NASL interpreter. |
Create a certificate object.
Takes a string/data as unnamed argument and returns an identifier used with the other cert functions. The data is usually the BER encoded certificate but the function will also try a PEM encoding on failure to parse BER encoded one.
[in] | lexic | Lexical context of the NASL interpreter. |
Query a certificate object.
Takes a cert identifier as first unnamed argument and a command string as second argument. That commonis used to select specific information from the certificate. For certain commandss the named argument idx is used as well. Depending on this command the return value may be a number, a string, or an array of strings. Supported commands are:
[in] | lexic | Lexical context of the NASL interpreter. |