1 #ifndef EID_VWR_CERT_HELPERS_H
2 #define EID_VWR_CERT_HELPERS_H
18 #include <openssl/x509.h>
19 #include <eid-viewer/macros.h>
26 CERT_COL_VALIDFROM_PAST,
28 CERT_COL_VALIDTO_FUTURE,
DllExport char * eid_vwr_detail_cert(const char *label, X509 *cert)
Get a printable version of the certificate's distinguished name (DN).
DllExport char * eid_vwr_describe_cert(const char *label, X509 *cert)
Get a useful label for the certificate.
Definition: certhelpers.c:103
dump_type
Definition: certhelpers.h:40
DllExport char * eid_vwr_get_use_flags(const char *label, X509 *cert)
Get the X.509v3 Key Usage field of the given certificate.
DllExport void eid_vwr_dumpcert(int fd, const void *derdata, int len, enum dump_type how)
Write the given certificate to a file descriptor.
Definition: certhelpers.c:253
@ DUMP_PEM
Dump in PEM format.
Definition: certhelpers.h:42
@ DUMP_DER
Dump using ASN.1 Distinguished Encoding Rules (DER)
Definition: certhelpers.h:41