1 #ifndef EID_VWR_VERIFY_H
2 #define EID_VWR_VERIFY_H
58 (*perform_ocsp_request)
84 (*perform_ocsp_request)
90 (
void *), uint64_t flags);
91 #define EID_VWR_NO_OCSP_ALLOWLIST (1 << 0)
122 *(*perform_http_request)
186 size_t pubkeylen,
const void *signature,
187 size_t siglen,
const void *data,
size_t datalen);
189 DllExport
void eid_vwr_challenge_result(
const unsigned char *response,
int responselen,
enum eid_vwr_result res);
DllExport enum eid_vwr_result eid_vwr_verify_rrncert(const void *certificate, size_t certlen, const void *root_cert, size_t rootlen)
Verify the validity of the RRN certificate.
Definition: verify.c:322
DllExport char * eid_vwr_x509_get_details(const void *certificate, size_t certlen)
Produce a human-readable version of the certificate.
Definition: verify.c:387
DllExport enum eid_vwr_result eid_vwr_verify_int_cert(const void *certificate, size_t certlen, const void *root, size_t rootlen, const void *(*perform_http_request)(char *, long *, void **), void(free_http_request)(void *))
Verify the validity of an intermediate certificate.
DllExport enum eid_vwr_result eid_vwr_verify_cert_full(const void *certificate, size_t certlen, const void *ca, size_t calen, const void *(*perform_ocsp_request)(char *, void *, long, long *, void **), void(*free_ocsp_request)(void *), uint64_t flags)
Verify the validity of a leaf certificate, specifying options.
Definition: verify.c:153
DllExport enum eid_vwr_result eid_vwr_verify_root_cert(const void *certificate, size_t certlen)
Verify the validity of the root certificate.
Definition: verify.c:407
DllExport void eid_vwr_check_signature(const void *pubkey, size_t pubkeylen, const void *signature, size_t siglen, const void *data, size_t datalen)
helper function to verify that an ECDSA signature is correct.
Definition: verify.c:445
DllExport enum eid_vwr_result eid_vwr_verify_cert(const void *certificate, size_t certlen, const void *ca, size_t calen, const void *(*perform_ocsp_request)(char *, void *, long, long *, void **), void(*free_ocsp_request)(void *))
Verify the validity of a leaf certificate.
Definition: verify.c:318
eid_vwr_result
Definition: oslayer.h:63
contains the functions, enums and structures that need to be known by the ui