Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_read.c218 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
317 cert_len = WPA_GET_BE24(pos); in tls_process_certificate()
320 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate()
323 (unsigned long) cert_len, in tls_process_certificate()
332 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
336 if (tls_parse_cert(pos, cert_len, in tls_process_certificate()
347 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate()
364 pos += cert_len; in tls_process_certificate()
Dtlsv1_server_read.c295 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
394 cert_len = WPA_GET_BE24(pos); in tls_process_certificate()
397 if ((size_t) (end - pos) < cert_len) { in tls_process_certificate()
399 (unsigned long) cert_len, in tls_process_certificate()
408 (unsigned long) idx, (unsigned long) cert_len); in tls_process_certificate()
412 if (tls_parse_cert(pos, cert_len, in tls_process_certificate()
422 cert = x509_certificate_parse(pos, cert_len); in tls_process_certificate()
438 pos += cert_len; in tls_process_certificate()
Dtlsv1_client_write.c34 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len()
157 if (pos + 3 + cert->cert_len > end) { in tls_write_client_certificate()
160 (unsigned long) cert->cert_len, in tls_write_client_certificate()
166 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_client_certificate()
168 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate()
169 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()
191 if (pos + 3 + cert->cert_len > end) { in tls_write_server_certificate()
194 (unsigned long) cert->cert_len, in tls_write_server_certificate()
200 WPA_PUT_BE24(pos, cert->cert_len); in tls_write_server_certificate()
202 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_server_certificate()
203 pos += cert->cert_len; in tls_write_server_certificate()
Dx509v3.h93 size_t cert_len; member
Dx509v3.c1487 cert->cert_len = len; in x509_certificate_parse()
/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_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_common/
Dikev2_common.h305 size_t cert_len; member
Dikev2_common.c308 payloads->cert_len = pdatalen; in ikev2_parse_payloads()
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c1371 int cert_len = i2d_X509(cert, NULL); in get_x509_cert() local
1372 if (cert_len <= 0) in get_x509_cert()
1375 buf = wpabuf_alloc(cert_len); in get_x509_cert()
1379 tmp = wpabuf_put(buf, cert_len); in get_x509_cert()