Defines | Functions

parse_certificate_files.h File Reference

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)

Detailed Description

Parses PEM/DER or PKCS#12 certificate files to retrieve information needed by eurephia. This feature requires OpenSSL to be available.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2008-12-21

Definition in file parse_certificate_files.h.


Define Documentation

#define Cert_ParseFile (   cfile,
  cformat 
)    _Cert_ParseFile(MODULE, cfile, cformat)

Macro to _Cert_ParseFile(...). Parses a certificate file of a given format.

Parameters:
cfile File name of the input file
cformat Certificate format of the file
Returns:
Returns a certinfo struct pointer with the parsed result on success, otherwise NULL.

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.


Function Documentation

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.

Parameters:
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
Returns:
Returns a certinfo struct pointer with the parsed result on success, otherwise NULL.

< 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:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines