Home
last modified time | relevance | path

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

/library/
A Dssl_msg.c1955 ret = ssl->f_recv(ssl->p_bio, ssl->in_hdr, len); in mbedtls_ssl_fetch_input()
2081 ret = ssl->f_send(ssl->p_bio, buf, ssl->out_left); in mbedtls_ssl_flush_output()
3128 ret = ssl->handshake->update_checksum(ssl, ssl->in_msg, ssl->in_hslen); in mbedtls_ssl_update_handshake_status()
3462 ssl->in_buf, ssl->in_left, in ssl_handle_possible_reconnect()
3475 send_ret = ssl->f_send(ssl->p_bio, ssl->out_buf, len); in ssl_handle_possible_reconnect()
4493 memmove(ssl->in_msg, ssl->in_msg + ssl->in_hslen, in ssl_consume_current_message()
4719 ssl->in_iv = ssl->in_msg = ssl->in_len + 2; in ssl_get_next_record()
4838 ssl->in_iv = ssl->in_len + 2; in ssl_get_next_record()
5138 ssl->out_msg = ssl->out_iv; in mbedtls_ssl_update_out_pointers()
5191 ssl->in_msg = ssl->in_iv; in mbedtls_ssl_update_in_pointers()
[all …]
A Dssl_tls12_client.c79 memcpy(p, ssl->own_verify_data, ssl->verify_data_len); in ssl_write_renegotiation_ext()
229 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext()
502 (void) ssl; in mbedtls_ssl_tls12_write_client_hello_exts()
1230 if (ssl->tls_version < ssl->conf->min_tls_version || in ssl_parse_server_hello()
1231 ssl->tls_version > ssl->conf->max_tls_version) { in ssl_parse_server_hello()
1882 p = ssl->in_msg + mbedtls_ssl_hs_hdr_len(ssl); in ssl_parse_server_key_exchange()
1883 end = ssl->in_msg + ssl->in_hslen; in ssl_parse_server_key_exchange()
2226 if (ssl->in_hslen <= mbedtls_ssl_hs_hdr_len(ssl)) { in ssl_parse_certificate_request()
2349 if (ssl->in_hslen != mbedtls_ssl_hs_hdr_len(ssl) || in ssl_parse_server_hello_done()
2709 size_t out_buf_len = ssl->out_buf_len - (size_t) (ssl->out_msg - ssl->out_buf); in ssl_write_certificate_verify()
[all …]
A Dssl_tls12_server.c942 memcpy(&ssl->cur_out_ctr[2], ssl->in_ctr + 2, in ssl_parse_client_hello()
1522 if (ssl->conf->f_cert_cb && (ret = ssl->conf->f_cert_cb(ssl)) != 0) { in ssl_parse_client_hello()
1666 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext()
2014 ssl->out_msglen = (size_t) (p - ssl->out_msg); in ssl_write_hello_verify_request()
2624 int ret = ssl->conf->f_async_resume(ssl, in ssl_resume_server_key_exchange()
2659 size_t out_buf_len = ssl->out_buf_len - (size_t) (ssl->out_msg - ssl->out_buf); in ssl_prepare_server_key_exchange()
2725 ssl->out_msg[ssl->out_msglen++] = 0x00; in ssl_prepare_server_key_exchange()
2726 ssl->out_msg[ssl->out_msglen++] = 0x00; in ssl_prepare_server_key_exchange()
3158 if (ssl->conf->f_psk(ssl->conf->p_psk, ssl, *p, n) != 0) { in ssl_parse_client_psk_identity()
3199 p = ssl->in_msg + mbedtls_ssl_hs_hdr_len(ssl); in ssl_parse_client_key_exchange()
[all …]
A Dssl_tls13_server.c218 ret = ssl->conf->f_ticket_parse(ssl->conf->p_ticket, in ssl_tls13_offered_psks_check_identity_match_ticket()
384 ret = mbedtls_ssl_set_hs_psk(ssl, ssl->conf->psk, ssl->conf->psk_len); in ssl_tls13_offered_psks_check_identity_match()
999 ssl, in ssl_tls13_client_hello_has_exts_for_ephemeral_key_exchange()
1012 ssl, in ssl_tls13_client_hello_has_exts_for_psk_key_exchange()
1024 ssl, in ssl_tls13_client_hello_has_exts_for_psk_ephemeral_key_exchange()
1400 ssl->session_negotiate->endpoint = ssl->conf->endpoint; in ssl_tls13_parse_client_hello()
1881 if (ssl->conf->f_cert_cb && (ret = ssl->conf->f_cert_cb(ssl)) != 0) { in ssl_tls13_postprocess_client_hello()
2887 ssl, ssl->handshake->transform_earlydata); in ssl_tls13_write_server_finished()
2937 ssl->in_offt = ssl->in_msg; in ssl_tls13_end_of_early_data_coordinate()
3029 ssl, ssl->handshake->transform_handshake); in ssl_tls13_process_end_of_early_data()
[all …]
A Dssl_tls13_client.c101 ((void) ssl); in ssl_tls13_parse_supported_versions_ext()
242 ((void) ssl); in ssl_tls13_get_default_group_id()
445 (void) ssl; in ssl_tls13_parse_hrr_key_share_ext()
801 ((void) ssl); in ssl_tls13_write_identity()
1233 ((void) ssl); in mbedtls_ssl_tls13_finalize_client_hello()
1304 ssl, ssl->handshake->transform_earlydata); in mbedtls_ssl_tls13_finalize_client_hello()
1489 ssl->session_negotiate->tls_version = ssl->tls_version; in ssl_tls13_preprocess_server_hello()
1490 ssl->session_negotiate->endpoint = ssl->conf->endpoint; in ssl_tls13_preprocess_server_hello()
1945 ssl->session_in = ssl->session_negotiate; in ssl_tls13_postprocess_server_hello()
2271 ((void) ssl); in ssl_tls13_process_encrypted_extensions()
[all …]
A Dssl_tls.c346 written_in = ssl->in_msg - ssl->in_buf; in handle_buffer_resizing()
349 hdr_in = ssl->in_hdr - ssl->in_buf; in handle_buffer_resizing()
381 ssl->in_hdr = ssl->in_buf + hdr_in; in handle_buffer_resizing()
2848 ssl->mtu : ssl->handshake->mtu; in mbedtls_ssl_get_current_mtu()
4383 ssl->conf->f_async_cancel(ssl); in mbedtls_ssl_handshake_free()
4875 ssl->session_in = ssl->session; in ssl_context_load()
4876 ssl->session_out = ssl->session; in ssl_context_load()
4899 ssl->transform_in = ssl->transform; in ssl_context_load()
4900 ssl->transform_out = ssl->transform; in ssl_context_load()
7356 ret = ssl->handshake->calc_finished(ssl, ssl->out_msg + 4, ssl->conf->endpoint); in mbedtls_ssl_write_finished()
[all …]
A Dssl_misc.h1274 mbedtls_ssl_context *ssl,
1323 ssl->state, mbedtls_ssl_states_str(ssl->state), in mbedtls_ssl_handshake_set_state()
1330 mbedtls_ssl_handshake_set_state(ssl, ssl->state + 1); in mbedtls_ssl_handshake_increment_state()
1612 if (ssl->handshake != NULL && ssl->handshake->key_cert != NULL) { in mbedtls_ssl_own_key()
1625 if (ssl->handshake != NULL && ssl->handshake->key_cert != NULL) { in mbedtls_ssl_own_cert()
1693 ((void) ssl); in mbedtls_ssl_in_hdr_len()
1708 return (size_t) (ssl->out_iv - ssl->out_hdr); in mbedtls_ssl_out_hdr_len()
1718 ((void) ssl); in mbedtls_ssl_hs_hdr_len()
1774 ((void) ssl); in mbedtls_ssl_ep_len()
2319 ((void) ssl); in mbedtls_ssl_get_sig_algs()
[all …]
A Dssl_tls13_generic.c347 ssl, in mbedtls_ssl_tls13_process_certificate_verify()
384 ((void) ssl); in mbedtls_ssl_tls13_process_certificate_verify()
603 ((void) ssl); in mbedtls_ssl_tls13_parse_certificate()
676 ((void) ssl); in ssl_tls13_validate_certificate()
706 (void) ssl; in mbedtls_ssl_tls13_process_certificate()
903 ssl, (mbedtls_md_type_t) ssl->handshake->ciphersuite_info->mac, in ssl_tls13_write_certificate_verify_body()
1046 ssl, in ssl_tls13_preprocess_finished_message()
1214 mbedtls_ssl_set_inbound_transform(ssl, ssl->transform_application); in mbedtls_ssl_tls13_handshake_wrapup()
1226 ssl->session = ssl->session_negotiate; in mbedtls_ssl_tls13_handshake_wrapup()
1244 ((void) ssl); in ssl_tls13_write_change_cipher_spec_body()
[all …]
A Dssl_client.c35 if (ssl->hostname == NULL) { in ssl_write_hostname_ext()
43 hostname_len = strlen(ssl->hostname); in ssl_write_hostname_ext()
122 if (ssl->conf->alpn_list == NULL) { in ssl_write_alpn_ext()
317 mbedtls_ssl_context *ssl, in ssl_write_client_hello_cipher_suites() argument
507 memcpy(p, ssl->session_negotiate->id, ssl->session_negotiate->id_len); in ssl_write_client_hello_body()
771 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
777 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
779 ssl->handshake->min_tls_version = ssl->conf->min_tls_version; in ssl_prepare_client_hello()
883 ssl->handshake->resume) { in ssl_prepare_client_hello()
966 ret = ssl->handshake->update_checksum(ssl, buf, msg_len - binders_len); in mbedtls_ssl_write_client_hello()
[all …]
A Ddebug.c46 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, idstr); in debug_send_line()
48 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line()
63 if (NULL == ssl || in mbedtls_debug_print_msg()
64 NULL == ssl->conf || in mbedtls_debug_print_msg()
65 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_msg()
93 if (NULL == ssl || in mbedtls_debug_print_ret()
94 NULL == ssl->conf || in mbedtls_debug_print_ret()
95 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_ret()
123 if (NULL == ssl || in mbedtls_debug_print_buf()
124 NULL == ssl->conf || in mbedtls_debug_print_buf()
[all …]
A Dssl_tls13_keys.c847 ((void) ssl); in mbedtls_ssl_tls13_create_psk_binder()
942 (void) ssl; in mbedtls_ssl_tls13_populate_transform()
1144 ssl->f_export_keys( in ssl_tls13_generate_early_key()
1208 ssl->conf->endpoint, in mbedtls_ssl_tls13_compute_early_transform()
1211 ssl); in mbedtls_ssl_tls13_compute_early_transform()
1348 ssl->f_export_keys( in ssl_tls13_generate_handshake_keys()
1357 ssl->f_export_keys( in ssl_tls13_generate_handshake_keys()
1609 ssl->f_export_keys( in ssl_tls13_generate_application_keys()
1618 ssl->f_export_keys( in ssl_tls13_generate_application_keys()
1682 ssl); in mbedtls_ssl_tls13_compute_handshake_transform()
[all …]
A Dssl_tls13_keys.h480 int mbedtls_ssl_tls13_create_psk_binder(mbedtls_ssl_context *ssl,
519 mbedtls_ssl_context *ssl);
542 int mbedtls_ssl_tls13_key_schedule_stage_early(mbedtls_ssl_context *ssl);
555 int mbedtls_ssl_tls13_compute_resumption_master_secret(mbedtls_ssl_context *ssl);
580 int mbedtls_ssl_tls13_calculate_verify_data(mbedtls_ssl_context *ssl,
604 int mbedtls_ssl_tls13_compute_early_transform(mbedtls_ssl_context *ssl);
617 int mbedtls_ssl_tls13_compute_handshake_transform(mbedtls_ssl_context *ssl);
629 int mbedtls_ssl_tls13_compute_application_transform(mbedtls_ssl_context *ssl);
644 int mbedtls_ssl_tls13_export_handshake_psk(mbedtls_ssl_context *ssl,
A Dssl_debug_helpers.h39 void mbedtls_ssl_print_extensions(const mbedtls_ssl_context *ssl,
44 void mbedtls_ssl_print_extension(const mbedtls_ssl_context *ssl,
50 void mbedtls_ssl_print_ticket_flags(const mbedtls_ssl_context *ssl,
56 mbedtls_ssl_print_extensions(ssl, level, __FILE__, __LINE__, \
60 mbedtls_ssl_print_extension(ssl, level, __FILE__, __LINE__, \
66 mbedtls_ssl_print_ticket_flags(ssl, level, __FILE__, __LINE__, flags)
A Ddebug_internal.h30 void mbedtls_debug_print_msg(const mbedtls_ssl_context *ssl, int level,
49 void mbedtls_debug_print_ret(const mbedtls_ssl_context *ssl, int level,
70 void mbedtls_debug_print_buf(const mbedtls_ssl_context *ssl, int level,
91 void mbedtls_debug_print_mpi(const mbedtls_ssl_context *ssl, int level,
112 void mbedtls_debug_print_crt(const mbedtls_ssl_context *ssl, int level,
A Dssl_client.h16 int mbedtls_ssl_write_client_hello(mbedtls_ssl_context *ssl);
A Dssl_tls13_invasive.h16 int mbedtls_ssl_tls13_parse_certificate(mbedtls_ssl_context *ssl,

Completed in 117 milliseconds