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

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 int eid_vwr_check_data_validity (const void *photo, int plen, const void *photohash, int hashlen, const void *datafile, int datfilelen, const void *datasig, int datsiglen, const void *addrfile, int addfilelen, const void *addrsig, int addsiglen, const void *rrncert, int certlen)
 Check that the data on the card is correctly signed. 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.