Lines Matching refs:cert
602 static int tls_match_alt_subject_component(WOLFSSL_X509 *cert, int type, in tls_match_alt_subject_component() argument
610 ext = wolfSSL_X509_get_ext_d2i(cert, ALT_NAMES_OID, NULL, NULL); in tls_match_alt_subject_component()
628 static int tls_match_alt_subject(WOLFSSL_X509 *cert, const char *match) in tls_match_alt_subject() argument
663 if (tls_match_alt_subject_component(cert, type, pos, len) > 0) in tls_match_alt_subject()
703 static int tls_match_suffix_helper(WOLFSSL_X509 *cert, const char *match, in tls_match_suffix_helper() argument
716 ext = wolfSSL_X509_get_ext_d2i(cert, ALT_NAMES_OID, NULL, NULL); in tls_match_suffix_helper()
743 name = wolfSSL_X509_get_subject_name(cert); in tls_match_suffix_helper()
774 static int tls_match_suffix(WOLFSSL_X509 *cert, const char *match, int full) in tls_match_suffix() argument
780 if (tls_match_suffix_helper(cert, token, last - token, full)) in tls_match_suffix()
841 static struct wpabuf * get_x509_cert(WOLFSSL_X509 *cert) in get_x509_cert() argument
847 data = wolfSSL_X509_get_der(cert, &cert_len); in get_x509_cert()
861 struct wpabuf *cert = NULL; in wolfssl_tls_fail_event() local
867 cert = get_x509_cert(err_cert); in wolfssl_tls_fail_event()
874 ev.cert_fail.cert = cert; in wolfssl_tls_fail_event()
876 wpabuf_free(cert); in wolfssl_tls_fail_event()
884 struct wpabuf *cert = NULL; in wolfssl_tls_cert_event() local
902 cert = get_x509_cert(err_cert); in wolfssl_tls_cert_event()
903 ev.peer_cert.cert = cert; in wolfssl_tls_cert_event()
907 if (cert) { in wolfssl_tls_cert_event()
911 addr[0] = wpabuf_head(cert); in wolfssl_tls_cert_event()
912 len[0] = wpabuf_len(cert); in wolfssl_tls_cert_event()
969 wpabuf_free(cert); in wolfssl_tls_cert_event()
1039 struct wpabuf *cert; in tls_verify_cb() local
1041 cert = get_x509_cert(err_cert); in tls_verify_cb()
1042 if (!cert) { in tls_verify_cb()
1051 addr[0] = wpabuf_head(cert); in tls_verify_cb()
1052 len[0] = wpabuf_len(cert); in tls_verify_cb()
1067 wpabuf_free(cert); in tls_verify_cb()