eid-viewer
eid-viewer library
Functions
verify_cert.h File Reference

Helper functions to deal with certificate validation using OpenSSL. Linux/OSX only. More...

#include <eid-viewer/oslayer.h>
#include <stdint.h>

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
DllExport enum eid_vwr_result eid_vwr_verify_root_cert (const void *certificate, size_t certlen)
 Verify the validity of the root certificate. More...
 
DllExport char * eid_vwr_x509_get_details (const void *certificate, size_t certlen)
 Produce a human-readable version of the certificate. More...
 
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. More...
 

Detailed Description

Helper functions to deal with certificate validation using OpenSSL. Linux/OSX only.