Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/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()
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.h113 size_t cert_len; member
Dx509v3.c1793 cert->cert_len = len; in x509_certificate_parse()
/external/webrtc/rtc_base/
Dopenssl_utility_unittest.cc176 SSL* CreateSSLWithPeerCertificate(const unsigned char* cert, size_t cert_len) { in CreateSSLWithPeerCertificate() argument
178 d2i_X509(nullptr, &cert, checked_cast<long>(cert_len)); // NOLINT in CreateSSLWithPeerCertificate()
/external/openscreen/cast/sender/channel/
Dcast_auth_util.cc263 int cert_len = i2d_X509(peer_cert, nullptr); in AuthenticateChallengeReplyImpl() local
264 if (cert_len <= 0) { in AuthenticateChallengeReplyImpl()
268 std::vector<uint8_t> nonce_plus_peer_cert_der(nonce_response_size + cert_len, in AuthenticateChallengeReplyImpl()
/external/wpa_supplicant_8/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()
/external/wpa_supplicant_8/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()
/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.cc177 int cert_len = i2d_X509(x509, &buf); in x509_to_buffer() local
178 if (cert_len <= 0) { in x509_to_buffer()
182 UniquePtr<CRYPTO_BUFFER> buffer(CRYPTO_BUFFER_new(buf, cert_len, NULL)); in x509_to_buffer()
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dssl_x509.cc177 int cert_len = i2d_X509(x509, &buf); in x509_to_buffer() local
178 if (cert_len <= 0) { in x509_to_buffer()
182 UniquePtr<CRYPTO_BUFFER> buffer(CRYPTO_BUFFER_new(buf, cert_len, NULL)); in x509_to_buffer()
/external/wpa_supplicant_8/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()
Dtls_openssl.c2160 int cert_len = i2d_X509(cert, NULL); in get_x509_cert() local
2161 if (cert_len <= 0) in get_x509_cert()
2164 buf = wpabuf_alloc(cert_len); in get_x509_cert()
2168 tmp = wpabuf_put(buf, cert_len); in get_x509_cert()