Lines Matching refs:peer_cert
2567 const mbedtls_x509_crt *peer_cert = mbedtls_ssl_get_peer_cert(&conn->ssl); in tls_connection_get_peer_subject() local
2568 if (peer_cert) in tls_connection_get_peer_subject()
2569 tls_mbedtls_set_peer_subject(conn, peer_cert); in tls_connection_get_peer_subject()
2975 ev.peer_cert.hash = hash; in tls_mbedtls_verify_cert_event()
2976 ev.peer_cert.hash_len = sizeof(hash); in tls_mbedtls_verify_cert_event()
2979 ev.peer_cert.depth = depth; in tls_mbedtls_verify_cert_event()
2982 ev.peer_cert.subject = conn->peer_subject; in tls_mbedtls_verify_cert_event()
2983 if (ev.peer_cert.subject == NULL) in tls_mbedtls_verify_cert_event()
2985 ev.peer_cert.subject = subject; in tls_mbedtls_verify_cert_event()
2991 ev.peer_cert.serial_num = tls_mbedtls_peer_serial_num(crt, serial_num, sizeof(serial_num)); in tls_mbedtls_verify_cert_event()
3022 ev.peer_cert.altsubject[ev.peer_cert.num_altsubject] = pos; in tls_mbedtls_verify_cert_event()
3036 if (++ev.peer_cert.num_altsubject == TLS_MAX_ALT_SUBJECT) in tls_mbedtls_verify_cert_event()
3053 ev.peer_cert.tod = 1; /* TOD-STRICT */ in tls_mbedtls_verify_cert_event()
3058 ev.peer_cert.tod = 2; /* TOD-TOFU */ in tls_mbedtls_verify_cert_event()
3067 ev.peer_cert.cert = certbuf; in tls_mbedtls_verify_cert_event()
3074 *(const char ***)&altsubject = ev.peer_cert.altsubject; in tls_mbedtls_verify_cert_event()
3075 for (size_t i = 0; i < ev.peer_cert.num_altsubject; ++i) in tls_mbedtls_verify_cert_event()