eid-viewer
eid-viewer library
Enumerations | Functions
certhelpers.h File Reference

Certificate helper functions. Linux/OSX only. More...

#include <openssl/x509.h>
#include <eid-viewer/macros.h>

Go to the source code of this file.

Enumerations

enum  dump_type { DUMP_DER, DUMP_PEM }
 

Functions

DllExport char * eid_vwr_get_use_flags (const char *label, X509 *cert)
 Get the X.509v3 Key Usage field of the given certificate. More...
 
DllExport char * eid_vwr_detail_cert (const char *label, X509 *cert)
 Get a printable version of the certificate's distinguished name (DN). More...
 
DllExport char * eid_vwr_describe_cert (const char *label, X509 *cert)
 Get a useful label for the certificate. More...
 
DllExport void eid_vwr_dumpcert (int fd, const void *derdata, int len, enum dump_type how)
 Write the given certificate to a file descriptor. More...
 

Detailed Description

Certificate helper functions. Linux/OSX only.

This file contains some helper functions to deal with certificates and data integrity using OpenSSL. It is for Linux and OSX only.

Note
Some functions in this file share a common function signature, so as to allow them to be used as callbacks from the same function.