Parses PEM/DER or PKCS#12 certificate files to retrieve information needed by eurephia. This feature requires OpenSSL to be available. More...
#include <certinfo.h>
Include dependency graph for parse_certificate_files.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Defines | |
| #define | CERTFILE_PEM 0x01 |
| #define | CERTFILE_PKCS12 0x02 |
| #define | Cert_ParseFile(cfile, cformat) _Cert_ParseFile(MODULE, cfile, cformat) |
Functions | |
| certinfo * | _Cert_ParseFile (const char *module, const char *certfile, int certfile_format) |
Parses PEM/DER or PKCS#12 certificate files to retrieve information needed by eurephia. This feature requires OpenSSL to be available.
Definition in file parse_certificate_files.h.
| #define Cert_ParseFile | ( | cfile, | ||
| cformat | ||||
| ) | _Cert_ParseFile(MODULE, cfile, cformat) |
Macro to _Cert_ParseFile(...). Parses a certificate file of a given format.
| cfile | File name of the input file | |
| cformat | Certificate format of the file |
Definition at line 51 of file parse_certificate_files.h.
| #define CERTFILE_PEM 0x01 |
Input certificate is in PEM/DER format
Definition at line 38 of file parse_certificate_files.h.
| #define CERTFILE_PKCS12 0x02 |
Input certificate is in PKCS#12 format
Definition at line 39 of file parse_certificate_files.h.
| certinfo* _Cert_ParseFile | ( | const char * | module, | |
| const char * | certfile, | |||
| int | certfile_format | |||
| ) |
Internal function, usually called via the Cert_ParseFile(...) macro. Parses a certificate file of a given format.
| module | String containing a module name, only used in error situations | |
| certfile | File name of the input file | |
| certfile_format | Certificate format of the file |
< Input certificate is in PEM/DER format
< Input certificate is in PKCS#12 format
Definition at line 118 of file parse_certificate_files.c.
Here is the call graph for this function:
1.7.1