Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/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.c372 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
471 cert_len = WPA_GET_BE24(pos); in tls_process_certificate()
474 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate()
476 (unsigned long) cert_len, in tls_process_certificate()
485 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
489 if (tls_parse_cert(pos, cert_len, in tls_process_certificate()
499 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate()
515 pos += cert_len; in tls_process_certificate()
Dtlsv1_client_write.c34 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len()
294 if (3 + cert->cert_len > (size_t) (end - pos)) { in tls_write_client_certificate()
297 (unsigned long) cert->cert_len, in tls_write_client_certificate()
303 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_client_certificate()
305 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate()
306 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()
227 if (3 + cert->cert_len > (size_t) (end - pos)) { in tls_write_server_certificate()
230 (unsigned long) cert->cert_len, in tls_write_server_certificate()
236 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_server_certificate()
238 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_server_certificate()
239 pos += cert->cert_len; in tls_write_server_certificate()
Dx509v3.h106 size_t cert_len; member
Dx509v3.c1631 cert->cert_len = len; in x509_certificate_parse()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c559 const u8 *cert, size_t cert_len) in ikev2_process_cert() argument
571 if (cert_len < 1) { in ikev2_process_cert()
578 cert_len--; in ikev2_process_cert()
581 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Certificate Data", cert, cert_len); in ikev2_process_cert()
704 ikev2_process_cert(data, pl.cert, pl.cert_len) < 0 || in ikev2_process_sa_auth_decrypted()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c491 const u8 *cert, size_t cert_len) in ikev2_process_cert() argument
503 if (cert_len < 1) { in ikev2_process_cert()
510 cert_len--; in ikev2_process_cert()
513 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Certificate Data", cert, cert_len); in ikev2_process_cert()
638 ikev2_process_cert(data, pl.cert, pl.cert_len) < 0 || in ikev2_process_sa_auth_decrypted()
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.h305 size_t cert_len; member
Dikev2_common.c307 payloads->cert_len = pdatalen; in ikev2_parse_payloads()
/external/boringssl/src/ssl/
Dssl_x509.cc374 int cert_len = i2d_X509(x509, &buf); in x509_to_buffer() local
375 if (cert_len <= 0) { in x509_to_buffer()
379 CRYPTO_BUFFER *buffer = CRYPTO_BUFFER_new(buf, cert_len, NULL); in x509_to_buffer()
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c1654 int cert_len = i2d_X509(cert, NULL); in get_x509_cert() local
1655 if (cert_len <= 0) in get_x509_cert()
1658 buf = wpabuf_alloc(cert_len); in get_x509_cert()
1662 tmp = wpabuf_put(buf, cert_len); in get_x509_cert()