Go to the documentation of this file.
29 #ifndef SSL_VERIFY_BACKEND_H_
30 #define SSL_VERIFY_BACKEND_H_
127 #ifdef ENABLE_X509ALTUSERNAME
132 bool x509_username_field_ext_supported(
const char *extname);
172 const char *filename);
void cert_hash_remember(struct tls_session *session, const int cert_depth, const struct buffer *cert_hash)
result_t x509_verify_cert_eku(openvpn_x509_cert_t *x509, const char *const expected_oid)
struct buffer x509_get_sha256_fingerprint(openvpn_x509_cert_t *cert, struct gc_arena *gc)
Retrieve the certificate's SHA256 fingerprint.
result_t verify_cert(struct tls_session *session, openvpn_x509_cert_t *cert, int cert_depth)
result_t backend_x509_get_username(char *common_name, int cn_len, char *x509_username_field, openvpn_x509_cert_t *peer_cert)
void x509_setenv_track(const struct x509_track *xt, struct env_set *es, const int depth, openvpn_x509_cert_t *x509)
result_t
Result of verification function.
char * backend_x509_get_serial(openvpn_x509_cert_t *cert, struct gc_arena *gc)
bool tls_verify_crl_missing(const struct tls_options *opt)
Return true iff a CRL is configured, but is not loaded.
result_t backend_x509_write_pem(openvpn_x509_cert_t *cert, const char *filename)
result_t x509_verify_cert_ku(openvpn_x509_cert_t *x509, const unsigned *const expected_ku, int expected_len)
struct buffer x509_get_sha1_fingerprint(openvpn_x509_cert_t *cert, struct gc_arena *gc)
Retrieve the certificate's SHA1 fingerprint.
Wrapper structure for dynamically allocated memory.
void x509_setenv(struct env_set *es, int cert_depth, openvpn_x509_cert_t *cert)
Security parameter state of a single session within a VPN tunnel.
Garbage collection arena used to keep track of dynamically allocated memory.
result_t x509_verify_ns_cert_type(openvpn_x509_cert_t *cert, const int usage)
Structure containing the hash for a single certificate.
char * x509_get_subject(openvpn_x509_cert_t *cert, struct gc_arena *gc)
void x509_track_add(const struct x509_track **ll_head, const char *name, int msglevel, struct gc_arena *gc)
char * backend_x509_get_serial_hex(openvpn_x509_cert_t *cert, struct gc_arena *gc)