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> 25 CERT_COL_VALIDFROM_PAST,
27 CERT_COL_VALIDTO_FUTURE,
115 const void* photohash,
int hashlen,
116 const void* datafile,
int datfilelen,
117 const void* datasig,
int datsiglen,
118 const void* addrfile,
int addfilelen,
119 const void* addrsig,
int addsiglen,
120 const void* rrncert,
int certlen);
133 void ensure_inited();
DllExport char * eid_vwr_describe_cert(const char *label, X509 *cert)
Get a useful label for the certificate.
Definition: certhelpers.c:97
dump_type
Definition: certhelpers.h:38
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:194
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.
Definition: certhelpers.c:111
Dump in PEM format.
Definition: certhelpers.h:40
DllExport char * eid_vwr_detail_cert(const char *label, X509 *cert)
Get a printable version of the certificate's distinguished name (DN).
Definition: certhelpers.c:60
DllExport char * eid_vwr_get_use_flags(const char *label, X509 *cert)
Get the X.509v3 Key Usage field of the given certificate.
Definition: certhelpers.c:30
Dump using ASN.1 Distinguished Encoding Rules (DER)
Definition: certhelpers.h:39