Home
last modified time | relevance | path

Searched refs:cert_len (Results 1 – 25 of 30) sorted by relevance

12

/third_party/lwip/src/include/lwip/
Daltcp_tls.h74 const u8_t *cert, size_t cert_len);
83 const u8_t *cert, size_t cert_len);
88 struct altcp_tls_config *altcp_tls_create_config_client(const u8_t *cert, size_t cert_len);
95 const u8_t *cert, size_t cert_len);
/third_party/mbedtls/programs/ssl/
Dssl_context_info.c530 uint32_t cert_len, ticket_len; in print_deserialized_ssl_session() local
613 cert_len = ((uint32_t) ssl[0] << 16) | in print_deserialized_ssl_session()
617 printf_dbg("Certificate length: %u\n", cert_len); in print_deserialized_ssl_session()
619 if (cert_len > 0) { in print_deserialized_ssl_session()
620 CHECK_SSL_END(cert_len); in print_deserialized_ssl_session()
622 print_deserialized_ssl_cert(ssl, cert_len); in print_deserialized_ssl_session()
624 ssl += cert_len; in print_deserialized_ssl_session()
661 cert_len = (uint32_t) *ssl++; in print_deserialized_ssl_session()
662 printf_dbg("Message-Digest length: %u\n", cert_len); in print_deserialized_ssl_session()
664 if (cert_len > 0) { in print_deserialized_ssl_session()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_client_read.c295 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 …]
Dtlsv1_server_read.c400 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()
Dtlsv1_client_write.c34 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()
Dtlsv1_server_write.c31 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()
Dx509v3.h106 size_t cert_len; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_client_read.c295 cert->cert_len); in tls_peer_cert_event()
347 cert->cert_len); in tls_cert_chain_failure_event()
358 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
457 cert_len = WPA_GET_BE24(pos); in tls_process_certificate()
460 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate()
463 (unsigned long) cert_len, in tls_process_certificate()
472 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
476 if (tls_parse_cert(pos, cert_len, in tls_process_certificate()
487 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate()
506 pos += cert_len; in tls_process_certificate()
[all …]
Dtlsv1_server_read.c400 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()
Dtlsv1_client_write.c34 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len()
285 if (3 + cert->cert_len > (size_t) (end - pos)) { in tls_write_client_certificate()
288 (unsigned long) cert->cert_len, in tls_write_client_certificate()
294 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_client_certificate()
296 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate()
297 pos += cert->cert_len; in tls_write_client_certificate()
Dtlsv1_server_write.c31 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()
Dx509v3.h113 size_t cert_len; member
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls.c802 const u8_t *cert, size_t cert_len) in altcp_tls_config_server_add_privkey_cert() argument
822 ret = mbedtls_x509_crt_parse(srvcert, cert, cert_len); in altcp_tls_config_server_add_privkey_cert()
855 const u8_t *cert, size_t cert_len) in altcp_tls_create_config_server_privkey_cert() argument
863 privkey_pass, privkey_pass_len, cert, cert_len) != ERR_OK) { in altcp_tls_create_config_server_privkey_cert()
906 const u8_t *cert, size_t cert_len) in altcp_tls_create_config_client_2wayauth() argument
923 ret = mbedtls_x509_crt_parse(conf->cert, cert, cert_len); in altcp_tls_create_config_client_2wayauth()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Dikev2.c492 const u8 *cert, size_t cert_len) in ikev2_process_cert() argument
504 if (cert_len < 1) { in ikev2_process_cert()
511 cert_len--; in ikev2_process_cert()
514 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Certificate Data", cert, cert_len); in ikev2_process_cert()
639 ikev2_process_cert(data, pl.cert, pl.cert_len) < 0 || in ikev2_process_sa_auth_decrypted()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Dikev2.c558 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Dikev2.c558 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Dikev2.c490 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Dikev2_common.h305 size_t cert_len; member
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Dikev2_common.h305 size_t cert_len; member
Dikev2_common.c307 payloads->cert_len = pdatalen; in ikev2_parse_payloads()
/third_party/mbedtls/library/
Dssl_tls.c8963 size_t cert_len; in ssl_tls12_session_save() local
9011 cert_len = 0; in ssl_tls12_session_save()
9013 cert_len = session->peer_cert->raw.len; in ssl_tls12_session_save()
9016 used += 3 + cert_len; in ssl_tls12_session_save()
9019 *p++ = MBEDTLS_BYTE_2(cert_len); in ssl_tls12_session_save()
9020 *p++ = MBEDTLS_BYTE_1(cert_len); in ssl_tls12_session_save()
9021 *p++ = MBEDTLS_BYTE_0(cert_len); in ssl_tls12_session_save()
9024 memcpy(p, session->peer_cert->raw.p, cert_len); in ssl_tls12_session_save()
9025 p += cert_len; in ssl_tls12_session_save()
9101 size_t cert_len; in ssl_tls12_session_load() local
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_wolfssl.c817 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_wolfssl.c821 int cert_len; in get_x509_cert() local
823 data = wolfSSL_X509_get_der(cert, &cert_len); in get_x509_cert()
825 buf = wpabuf_alloc_copy(data, cert_len); in get_x509_cert()
/third_party/openssl/ssl/statem/
Dstatem_clnt.c1775 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()
/third_party/node/deps/openssl/openssl/ssl/statem/
Dstatem_clnt.c1783 unsigned long cert_list_len, cert_len; in tls_process_server_certificate() local
1803 if (!PACKET_get_net_3(pkt, &cert_len) in tls_process_server_certificate()
1804 || !PACKET_get_bytes(pkt, &certbytes, cert_len)) { in tls_process_server_certificate()
1817 cert_len) == NULL) { in tls_process_server_certificate()
1822 if (certbytes != (certstart + cert_len)) { in tls_process_server_certificate()

12