/netbsd/external/bsd/wpa/dist/src/tls/ |
H A D | tlsv1_client_read.c | 295 cert->cert_len); in tls_peer_cert_event() 339 cert->cert_len); in tls_cert_chain_failure_event() 350 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local 449 cert_len = WPA_GET_BE24(pos); in tls_process_certificate() 452 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate() 455 (unsigned long) cert_len, in tls_process_certificate() 464 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate() 468 if (tls_parse_cert(pos, cert_len, in tls_process_certificate() 479 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate() 498 pos += cert_len; in tls_process_certificate() [all …]
|
H A D | tlsv1_server_read.c | 400 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local 499 cert_len = WPA_GET_BE24(pos); in tls_process_certificate() 502 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate() 504 (unsigned long) cert_len, in tls_process_certificate() 513 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate() 517 if (tls_parse_cert(pos, cert_len, in tls_process_certificate() 527 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate() 543 pos += cert_len; in tls_process_certificate()
|
H A D | tlsv1_client_write.c | 34 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len() 297 if (3 + cert->cert_len > (size_t) (end - pos)) { in tls_write_client_certificate() 300 (unsigned long) cert->cert_len, in tls_write_client_certificate() 306 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_client_certificate() 308 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate() 309 pos += cert->cert_len; in tls_write_client_certificate()
|
H A D | tlsv1_server_write.c | 31 len += 3 + cert->cert_len; in tls_server_cert_chain_der_len() 230 if (3 + cert->cert_len > (size_t) (end - pos)) { in tls_write_server_certificate() 233 (unsigned long) cert->cert_len, in tls_write_server_certificate() 239 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_server_certificate() 241 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_server_certificate() 242 pos += cert->cert_len; in tls_write_server_certificate()
|
H A D | x509v3.h | 106 size_t cert_len; member
|
H A D | x509v3.c | 1664 cert->cert_len = len; in x509_certificate_parse()
|
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | resolve.c | 325 size_t cert_len; in parse_record() local 332 cert_len = size - 5; in parse_record() 333 rr->u.cert = malloc (sizeof(*rr->u.cert) + cert_len - 1); in parse_record() 342 rr->u.cert->cert_len = cert_len; in parse_record() 343 memcpy (rr->u.cert->cert_data, p + 5, cert_len); in parse_record()
|
H A D | resolve.h | 166 size_t cert_len; member
|
/netbsd/external/bsd/wpa/dist/src/eap_peer/ |
H A D | ikev2.c | 490 const u8 *cert, size_t cert_len) in ikev2_process_cert() argument 502 if (cert_len < 1) { in ikev2_process_cert() 509 cert_len--; in ikev2_process_cert() 512 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Certificate Data", cert, cert_len); in ikev2_process_cert() 637 ikev2_process_cert(data, pl.cert, pl.cert_len) < 0 || in ikev2_process_sa_auth_decrypted()
|
/netbsd/external/bsd/wpa/dist/src/eap_server/ |
H A D | ikev2.c | 558 const u8 *cert, size_t cert_len) in ikev2_process_cert() argument 570 if (cert_len < 1) { in ikev2_process_cert() 577 cert_len--; in ikev2_process_cert() 580 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Certificate Data", cert, cert_len); in ikev2_process_cert() 703 ikev2_process_cert(data, pl.cert, pl.cert_len) < 0 || in ikev2_process_sa_auth_decrypted()
|
/netbsd/external/bsd/wpa/dist/src/eap_common/ |
H A D | ikev2_common.h | 305 size_t cert_len; member
|
H A D | ikev2_common.c | 307 payloads->cert_len = pdatalen; in ikev2_parse_payloads()
|
/netbsd/external/bsd/wpa/dist/src/crypto/ |
H A D | tls_wolfssl.c | 817 int cert_len; in get_x509_cert() local 819 data = wolfSSL_X509_get_der(cert, &cert_len); in get_x509_cert() 821 buf = wpabuf_alloc_copy(data, cert_len); in get_x509_cert()
|
H A D | tls_openssl.c | 2129 int cert_len = i2d_X509(cert, NULL); in get_x509_cert() local 2130 if (cert_len <= 0) in get_x509_cert() 2133 buf = wpabuf_alloc(cert_len); in get_x509_cert() 2137 tmp = wpabuf_put(buf, cert_len); in get_x509_cert()
|
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/statem/ |
H A D | statem_clnt.c | 1824 unsigned long cert_list_len, cert_len; in tls_process_server_certificate() local 1849 if (!PACKET_get_net_3(pkt, &cert_len) in tls_process_server_certificate() 1850 || !PACKET_get_bytes(pkt, &certbytes, cert_len)) { in tls_process_server_certificate() 1858 x = d2i_X509(NULL, (const unsigned char **)&certbytes, cert_len); in tls_process_server_certificate() 1864 if (certbytes != (certstart + cert_len)) { in tls_process_server_certificate()
|
/netbsd/crypto/external/bsd/openssl/dist/ssl/statem/ |
H A D | statem_clnt.c | 1775 unsigned long cert_list_len, cert_len; in tls_process_server_certificate() local 1795 if (!PACKET_get_net_3(pkt, &cert_len) in tls_process_server_certificate() 1796 || !PACKET_get_bytes(pkt, &certbytes, cert_len)) { in tls_process_server_certificate() 1809 cert_len) == NULL) { in tls_process_server_certificate() 1814 if (certbytes != (certstart + cert_len)) { in tls_process_server_certificate()
|