Lines Matching refs:ret
106 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_offered_psks_check_identity_match_ticket() local
135 if ((ret = ssl->conf->f_ticket_parse(ssl->conf->p_ticket, in ssl_tls13_offered_psks_check_identity_match_ticket()
138 if (ret == MBEDTLS_ERR_SSL_INVALID_MAC) { in ssl_tls13_offered_psks_check_identity_match_ticket()
140 } else if (ret == MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED) { in ssl_tls13_offered_psks_check_identity_match_ticket()
143 MBEDTLS_SSL_DEBUG_RET(1, "ticket_parse", ret); in ssl_tls13_offered_psks_check_identity_match_ticket()
150 if (ret != 0) { in ssl_tls13_offered_psks_check_identity_match_ticket()
162 ret = MBEDTLS_ERR_ERROR_GENERIC_ERROR; in ssl_tls13_offered_psks_check_identity_match_ticket()
174 ret = MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED; in ssl_tls13_offered_psks_check_identity_match_ticket()
228 ret = 0; in ssl_tls13_offered_psks_check_identity_match_ticket()
233 if (ret != 0) { in ssl_tls13_offered_psks_check_identity_match_ticket()
238 return ret; in ssl_tls13_offered_psks_check_identity_match_ticket()
251 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_offered_psks_check_identity_match() local
266 ret = mbedtls_ssl_set_hs_psk(ssl, in ssl_tls13_offered_psks_check_identity_match()
269 if (ret != 0) { in ssl_tls13_offered_psks_check_identity_match()
270 MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_set_hs_psk", ret); in ssl_tls13_offered_psks_check_identity_match()
271 return ret; in ssl_tls13_offered_psks_check_identity_match()
298 ret = mbedtls_ssl_set_hs_psk(ssl, ssl->conf->psk, ssl->conf->psk_len); in ssl_tls13_offered_psks_check_identity_match()
299 if (ret != 0) { in ssl_tls13_offered_psks_check_identity_match()
300 MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_set_hs_psk", ret); in ssl_tls13_offered_psks_check_identity_match()
301 return ret; in ssl_tls13_offered_psks_check_identity_match()
315 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_offered_psks_check_binder_match() local
324 ret = mbedtls_ssl_get_handshake_transcript( in ssl_tls13_offered_psks_check_binder_match()
327 if (ret != 0) { in ssl_tls13_offered_psks_check_binder_match()
328 return ret; in ssl_tls13_offered_psks_check_binder_match()
331 ret = mbedtls_ssl_tls13_export_handshake_psk(ssl, &psk, &psk_len); in ssl_tls13_offered_psks_check_binder_match()
332 if (ret != 0) { in ssl_tls13_offered_psks_check_binder_match()
333 return ret; in ssl_tls13_offered_psks_check_binder_match()
336 ret = mbedtls_ssl_tls13_create_psk_binder(ssl, psk_hash_alg, in ssl_tls13_offered_psks_check_binder_match()
343 if (ret != 0) { in ssl_tls13_offered_psks_check_binder_match()
489 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_parse_pre_shared_key_ext() local
525 ret = ssl->handshake->update_checksum(ssl, pre_shared_key_ext, in ssl_tls13_parse_pre_shared_key_ext()
527 if (0 != ret) { in ssl_tls13_parse_pre_shared_key_ext()
528 MBEDTLS_SSL_DEBUG_RET(1, ("update_checksum"), ret); in ssl_tls13_parse_pre_shared_key_ext()
529 return ret; in ssl_tls13_parse_pre_shared_key_ext()
564 ret = ssl_tls13_offered_psks_check_identity_match( in ssl_tls13_parse_pre_shared_key_ext()
567 if (ret != SSL_TLS1_3_OFFERED_PSK_MATCH) { in ssl_tls13_parse_pre_shared_key_ext()
574 ret = ssl_tls13_select_ciphersuite_for_psk( in ssl_tls13_parse_pre_shared_key_ext()
580 ret = ssl_tls13_select_ciphersuite_for_resumption( in ssl_tls13_parse_pre_shared_key_ext()
583 if (ret != 0) { in ssl_tls13_parse_pre_shared_key_ext()
587 ret = MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE; in ssl_tls13_parse_pre_shared_key_ext()
593 if (ret != 0) { in ssl_tls13_parse_pre_shared_key_ext()
599 2, "ssl_tls13_select_ciphersuite", ret); in ssl_tls13_parse_pre_shared_key_ext()
600 return ret; in ssl_tls13_parse_pre_shared_key_ext()
603 ret = ssl_tls13_offered_psks_check_binder_match( in ssl_tls13_parse_pre_shared_key_ext()
606 if (ret != SSL_TLS1_3_OFFERED_PSK_MATCH) { in ssl_tls13_parse_pre_shared_key_ext()
615 1, "ssl_tls13_offered_psks_check_binder_match", ret); in ssl_tls13_parse_pre_shared_key_ext()
619 return ret; in ssl_tls13_parse_pre_shared_key_ext()
631 ret = ssl_tls13_session_copy_ticket(ssl->session_negotiate, in ssl_tls13_parse_pre_shared_key_ext()
634 if (ret != 0) { in ssl_tls13_parse_pre_shared_key_ext()
635 return ret; in ssl_tls13_parse_pre_shared_key_ext()
649 ret = ssl->handshake->update_checksum( in ssl_tls13_parse_pre_shared_key_ext()
651 if (0 != ret) { in ssl_tls13_parse_pre_shared_key_ext()
652 MBEDTLS_SSL_DEBUG_RET(1, ("update_checksum"), ret); in ssl_tls13_parse_pre_shared_key_ext()
653 return ret; in ssl_tls13_parse_pre_shared_key_ext()
847 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_parse_key_shares_ext() local
910 ret = mbedtls_ssl_tls13_read_public_xxdhe_share( in ssl_tls13_parse_key_shares_ext()
912 if (ret != 0) { in ssl_tls13_parse_key_shares_ext()
913 return ret; in ssl_tls13_parse_key_shares_ext()
1240 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_parse_client_hello() local
1354 ret = mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts( in ssl_tls13_parse_client_hello()
1357 if (ret < 0) { in ssl_tls13_parse_client_hello()
1359 ("mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts"), ret); in ssl_tls13_parse_client_hello()
1360 return ret; in ssl_tls13_parse_client_hello()
1363 if (ret == 0) { in ssl_tls13_parse_client_hello()
1367 if (ret == 1) { in ssl_tls13_parse_client_hello()
1368 ret = ssl_tls13_parse_supported_versions_ext(ssl, in ssl_tls13_parse_client_hello()
1371 if (ret < 0) { in ssl_tls13_parse_client_hello()
1373 ("ssl_tls13_parse_supported_versions_ext"), ret); in ssl_tls13_parse_client_hello()
1374 return ret; in ssl_tls13_parse_client_hello()
1384 if (MBEDTLS_SSL_VERSION_TLS1_2 == ret) { in ssl_tls13_parse_client_hello()
1514 ret = mbedtls_ssl_tls13_check_received_extension( in ssl_tls13_parse_client_hello()
1517 if (ret != 0) { in ssl_tls13_parse_client_hello()
1518 return ret; in ssl_tls13_parse_client_hello()
1525 ret = mbedtls_ssl_parse_server_name_ext(ssl, p, in ssl_tls13_parse_client_hello()
1527 if (ret != 0) { in ssl_tls13_parse_client_hello()
1529 1, "mbedtls_ssl_parse_servername_ext", ret); in ssl_tls13_parse_client_hello()
1530 return ret; in ssl_tls13_parse_client_hello()
1545 ret = ssl_tls13_parse_supported_groups_ext( in ssl_tls13_parse_client_hello()
1547 if (ret != 0) { in ssl_tls13_parse_client_hello()
1549 1, "ssl_tls13_parse_supported_groups_ext", ret); in ssl_tls13_parse_client_hello()
1550 return ret; in ssl_tls13_parse_client_hello()
1567 ret = ssl_tls13_parse_key_shares_ext( in ssl_tls13_parse_client_hello()
1569 if (ret == SSL_TLS1_3_PARSE_KEY_SHARES_EXT_NO_MATCH) { in ssl_tls13_parse_client_hello()
1574 if (ret < 0) { in ssl_tls13_parse_client_hello()
1576 1, "ssl_tls13_parse_key_shares_ext", ret); in ssl_tls13_parse_client_hello()
1577 return ret; in ssl_tls13_parse_client_hello()
1592 ret = ssl_tls13_parse_key_exchange_modes_ext( in ssl_tls13_parse_client_hello()
1594 if (ret != 0) { in ssl_tls13_parse_client_hello()
1596 1, "ssl_tls13_parse_key_exchange_modes_ext", ret); in ssl_tls13_parse_client_hello()
1597 return ret; in ssl_tls13_parse_client_hello()
1626 ret = mbedtls_ssl_parse_alpn_ext(ssl, p, extension_data_end); in ssl_tls13_parse_client_hello()
1627 if (ret != 0) { in ssl_tls13_parse_client_hello()
1629 1, ("mbedtls_ssl_parse_alpn_ext"), ret); in ssl_tls13_parse_client_hello()
1630 return ret; in ssl_tls13_parse_client_hello()
1639 ret = mbedtls_ssl_parse_sig_alg_ext( in ssl_tls13_parse_client_hello()
1641 if (ret != 0) { in ssl_tls13_parse_client_hello()
1643 1, "mbedtls_ssl_parse_sig_alg_ext", ret); in ssl_tls13_parse_client_hello()
1644 return ret; in ssl_tls13_parse_client_hello()
1653 ret = mbedtls_ssl_tls13_parse_record_size_limit_ext( in ssl_tls13_parse_client_hello()
1661 return ret; in ssl_tls13_parse_client_hello()
1679 ret = mbedtls_ssl_add_hs_hdr_to_checksum(ssl, in ssl_tls13_parse_client_hello()
1682 if (0 != ret) { in ssl_tls13_parse_client_hello()
1683 MBEDTLS_SSL_DEBUG_RET(1, ("mbedtls_ssl_add_hs_hdr_to_checksum"), ret); in ssl_tls13_parse_client_hello()
1684 return ret; in ssl_tls13_parse_client_hello()
1696 ret = handshake->update_checksum(ssl, buf, in ssl_tls13_parse_client_hello()
1698 if (0 != ret) { in ssl_tls13_parse_client_hello()
1699 MBEDTLS_SSL_DEBUG_RET(1, ("update_checksum"), ret); in ssl_tls13_parse_client_hello()
1700 return ret; in ssl_tls13_parse_client_hello()
1702 ret = ssl_tls13_parse_pre_shared_key_ext(ssl, in ssl_tls13_parse_client_hello()
1707 if (ret == MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY) { in ssl_tls13_parse_client_hello()
1709 } else if (ret != 0) { in ssl_tls13_parse_client_hello()
1711 1, "ssl_tls13_parse_pre_shared_key_ext", ret); in ssl_tls13_parse_client_hello()
1712 return ret; in ssl_tls13_parse_client_hello()
1717 ret = handshake->update_checksum(ssl, buf, p - buf); in ssl_tls13_parse_client_hello()
1718 if (0 != ret) { in ssl_tls13_parse_client_hello()
1719 MBEDTLS_SSL_DEBUG_RET(1, ("update_checksum"), ret); in ssl_tls13_parse_client_hello()
1720 return ret; in ssl_tls13_parse_client_hello()
1724 ret = ssl_tls13_determine_key_exchange_mode(ssl); in ssl_tls13_parse_client_hello()
1725 if (ret < 0) { in ssl_tls13_parse_client_hello()
1726 return ret; in ssl_tls13_parse_client_hello()
1744 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_postprocess_client_hello() local
1749 if (ssl->conf->f_cert_cb && (ret = ssl->conf->f_cert_cb(ssl)) != 0) { in ssl_tls13_postprocess_client_hello()
1750 MBEDTLS_SSL_DEBUG_RET(1, "f_cert_cb", ret); in ssl_tls13_postprocess_client_hello()
1751 return ret; in ssl_tls13_postprocess_client_hello()
1758 ret = mbedtls_ssl_tls13_key_schedule_stage_early(ssl); in ssl_tls13_postprocess_client_hello()
1759 if (ret != 0) { in ssl_tls13_postprocess_client_hello()
1761 "mbedtls_ssl_tls1_3_key_schedule_stage_early", ret); in ssl_tls13_postprocess_client_hello()
1762 return ret; in ssl_tls13_postprocess_client_hello()
1777 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_process_client_hello() local
1790 parse_client_hello_ret = ret; /* Store positive return value of in ssl_tls13_process_client_hello()
1819 return ret; in ssl_tls13_process_client_hello()
1828 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_prepare_server_hello() local
1836 if ((ret = ssl->conf->f_rng(ssl->conf->p_rng, server_randbytes, in ssl_tls13_prepare_server_hello()
1838 MBEDTLS_SSL_DEBUG_RET(1, "f_rng", ret); in ssl_tls13_prepare_server_hello()
1839 return ret; in ssl_tls13_prepare_server_hello()
1849 return ret; in ssl_tls13_prepare_server_hello()
1907 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_generate_and_write_key_share() local
1914 ret = mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange( in ssl_tls13_generate_and_write_key_share()
1916 if (ret != 0) { in ssl_tls13_generate_and_write_key_share()
1919 ret); in ssl_tls13_generate_and_write_key_share()
1920 return ret; in ssl_tls13_generate_and_write_key_share()
1930 ret = MBEDTLS_ERR_SSL_INTERNAL_ERROR; in ssl_tls13_generate_and_write_key_share()
1933 return ret; in ssl_tls13_generate_and_write_key_share()
1955 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_key_share_ext() local
1982 ret = ssl_tls13_generate_and_write_key_share( in ssl_tls13_write_key_share_ext()
1984 if (ret != 0) { in ssl_tls13_write_key_share_ext()
1985 return ret; in ssl_tls13_write_key_share_ext()
2084 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_server_hello_body() local
2169 if ((ret = ssl_tls13_write_server_hello_supported_versions_ext( in ssl_tls13_write_server_hello_body()
2172 1, "ssl_tls13_write_server_hello_supported_versions_ext", ret); in ssl_tls13_write_server_hello_body()
2173 return ret; in ssl_tls13_write_server_hello_body()
2179 ret = ssl_tls13_write_hrr_key_share_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2181 ret = ssl_tls13_write_key_share_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2183 if (ret != 0) { in ssl_tls13_write_server_hello_body()
2184 return ret; in ssl_tls13_write_server_hello_body()
2191 ret = ssl_tls13_write_server_pre_shared_key_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2192 if (ret != 0) { in ssl_tls13_write_server_hello_body()
2194 ret); in ssl_tls13_write_server_hello_body()
2195 return ret; in ssl_tls13_write_server_hello_body()
2215 return ret; in ssl_tls13_write_server_hello_body()
2221 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_finalize_server_hello() local
2222 ret = mbedtls_ssl_tls13_compute_handshake_transform(ssl); in ssl_tls13_finalize_server_hello()
2223 if (ret != 0) { in ssl_tls13_finalize_server_hello()
2226 ret); in ssl_tls13_finalize_server_hello()
2227 return ret; in ssl_tls13_finalize_server_hello()
2230 return ret; in ssl_tls13_finalize_server_hello()
2236 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_server_hello() local
2274 return ret; in ssl_tls13_write_server_hello()
2284 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_prepare_hello_retry_request() local
2296 ret = mbedtls_ssl_reset_transcript_for_hrr(ssl); in ssl_tls13_prepare_hello_retry_request()
2297 if (ret != 0) { in ssl_tls13_prepare_hello_retry_request()
2298 MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_reset_transcript_for_hrr", ret); in ssl_tls13_prepare_hello_retry_request()
2299 return ret; in ssl_tls13_prepare_hello_retry_request()
2309 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_hello_retry_request() local
2347 return ret; in ssl_tls13_write_hello_retry_request()
2366 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_encrypted_extensions_body() local
2379 ((void) ret); in ssl_tls13_write_encrypted_extensions_body()
2383 ret = mbedtls_ssl_write_alpn_ext(ssl, p, end, &output_len); in ssl_tls13_write_encrypted_extensions_body()
2384 if (ret != 0) { in ssl_tls13_write_encrypted_extensions_body()
2385 return ret; in ssl_tls13_write_encrypted_extensions_body()
2406 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_encrypted_extensions() local
2444 return ret; in ssl_tls13_write_encrypted_extensions()
2493 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_certificate_request_body() local
2522 ret = mbedtls_ssl_write_sig_alg_ext(ssl, p, end, &output_len); in ssl_tls13_write_certificate_request_body()
2523 if (ret != 0) { in ssl_tls13_write_certificate_request_body()
2524 return ret; in ssl_tls13_write_certificate_request_body()
2541 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_certificate_request() local
2547 if (ret == SSL_CERTIFICATE_REQUEST_SEND_REQUEST) { in ssl_tls13_write_certificate_request()
2564 } else if (ret == SSL_CERTIFICATE_REQUEST_SKIP) { in ssl_tls13_write_certificate_request()
2566 ret = 0; in ssl_tls13_write_certificate_request()
2569 ret = MBEDTLS_ERR_SSL_INTERNAL_ERROR; in ssl_tls13_write_certificate_request()
2577 return ret; in ssl_tls13_write_certificate_request()
2586 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_server_certificate() local
2598 ret = mbedtls_ssl_tls13_write_certificate(ssl); in ssl_tls13_write_server_certificate()
2599 if (ret != 0) { in ssl_tls13_write_server_certificate()
2600 return ret; in ssl_tls13_write_server_certificate()
2612 int ret = mbedtls_ssl_tls13_write_certificate_verify(ssl); in ssl_tls13_write_certificate_verify() local
2613 if (ret != 0) { in ssl_tls13_write_certificate_verify()
2614 return ret; in ssl_tls13_write_certificate_verify()
2627 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_server_finished() local
2629 ret = mbedtls_ssl_tls13_write_finished_message(ssl); in ssl_tls13_write_server_finished()
2630 if (ret != 0) { in ssl_tls13_write_server_finished()
2631 return ret; in ssl_tls13_write_server_finished()
2634 ret = mbedtls_ssl_tls13_compute_application_transform(ssl); in ssl_tls13_write_server_finished()
2635 if (ret != 0) { in ssl_tls13_write_server_finished()
2639 return ret; in ssl_tls13_write_server_finished()
2662 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_process_client_finished() local
2664 ret = mbedtls_ssl_tls13_process_finished_message(ssl); in ssl_tls13_process_client_finished()
2665 if (ret != 0) { in ssl_tls13_process_client_finished()
2666 return ret; in ssl_tls13_process_client_finished()
2669 ret = mbedtls_ssl_tls13_compute_resumption_master_secret(ssl); in ssl_tls13_process_client_finished()
2670 if (ret != 0) { in ssl_tls13_process_client_finished()
2672 1, "mbedtls_ssl_tls13_compute_resumption_master_secret", ret); in ssl_tls13_process_client_finished()
2742 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_prepare_new_session_ticket() local
2764 if ((ret = ssl->conf->f_rng(ssl->conf->p_rng, in ssl_tls13_prepare_new_session_ticket()
2767 MBEDTLS_SSL_DEBUG_RET(1, "generate_ticket_age_add", ret); in ssl_tls13_prepare_new_session_ticket()
2768 return ret; in ssl_tls13_prepare_new_session_ticket()
2774 ret = ssl->conf->f_rng(ssl->conf->p_rng, ticket_nonce, ticket_nonce_size); in ssl_tls13_prepare_new_session_ticket()
2775 if (ret != 0) { in ssl_tls13_prepare_new_session_ticket()
2776 MBEDTLS_SSL_DEBUG_RET(1, "generate_ticket_nonce", ret); in ssl_tls13_prepare_new_session_ticket()
2777 return ret; in ssl_tls13_prepare_new_session_ticket()
2800 ret = mbedtls_ssl_tls13_hkdf_expand_label( in ssl_tls13_prepare_new_session_ticket()
2810 if (ret != 0) { in ssl_tls13_prepare_new_session_ticket()
2813 ret); in ssl_tls13_prepare_new_session_ticket()
2814 return ret; in ssl_tls13_prepare_new_session_ticket()
2859 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_new_session_ticket_body() local
2877 ret = ssl->conf->f_ticket_write(ssl->conf->p_ticket, in ssl_tls13_write_new_session_ticket_body()
2883 if (ret != 0) { in ssl_tls13_write_new_session_ticket_body()
2884 MBEDTLS_SSL_DEBUG_RET(1, "write_ticket", ret); in ssl_tls13_write_new_session_ticket_body()
2885 return ret; in ssl_tls13_write_new_session_ticket_body()
2949 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_write_new_session_ticket() local
2953 if (ret == SSL_NEW_SESSION_TICKET_WRITE) { in ssl_tls13_write_new_session_ticket()
2990 return ret; in ssl_tls13_write_new_session_ticket()
2999 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_ssl_tls13_handshake_server_step() local
3013 ret = 0; in mbedtls_ssl_tls13_handshake_server_step()
3017 ret = ssl_tls13_process_client_hello(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3018 if (ret != 0) { in mbedtls_ssl_tls13_handshake_server_step()
3019 MBEDTLS_SSL_DEBUG_RET(1, "ssl_tls13_process_client_hello", ret); in mbedtls_ssl_tls13_handshake_server_step()
3024 ret = ssl_tls13_write_hello_retry_request(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3025 if (ret != 0) { in mbedtls_ssl_tls13_handshake_server_step()
3026 MBEDTLS_SSL_DEBUG_RET(1, "ssl_tls13_write_hello_retry_request", ret); in mbedtls_ssl_tls13_handshake_server_step()
3027 return ret; in mbedtls_ssl_tls13_handshake_server_step()
3032 ret = ssl_tls13_write_server_hello(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3036 ret = ssl_tls13_write_encrypted_extensions(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3037 if (ret != 0) { in mbedtls_ssl_tls13_handshake_server_step()
3038 MBEDTLS_SSL_DEBUG_RET(1, "ssl_tls13_write_encrypted_extensions", ret); in mbedtls_ssl_tls13_handshake_server_step()
3039 return ret; in mbedtls_ssl_tls13_handshake_server_step()
3045 ret = ssl_tls13_write_certificate_request(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3049 ret = ssl_tls13_write_server_certificate(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3053 ret = ssl_tls13_write_certificate_verify(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3062 ret = mbedtls_ssl_tls13_write_change_cipher_spec(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3063 if (ret == 0) { in mbedtls_ssl_tls13_handshake_server_step()
3069 ret = mbedtls_ssl_tls13_write_change_cipher_spec(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3070 if (ret == 0) { in mbedtls_ssl_tls13_handshake_server_step()
3077 ret = ssl_tls13_write_server_finished(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3081 ret = ssl_tls13_process_client_finished(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3085 ret = ssl_tls13_handshake_wrapup(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3090 ret = mbedtls_ssl_tls13_process_certificate(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3091 if (ret == 0) { in mbedtls_ssl_tls13_handshake_server_step()
3104 ret = mbedtls_ssl_tls13_process_certificate_verify(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3105 if (ret == 0) { in mbedtls_ssl_tls13_handshake_server_step()
3114 ret = ssl_tls13_write_new_session_ticket(ssl); in mbedtls_ssl_tls13_handshake_server_step()
3115 if (ret != 0) { in mbedtls_ssl_tls13_handshake_server_step()
3118 ret); in mbedtls_ssl_tls13_handshake_server_step()
3126 ret = 0; in mbedtls_ssl_tls13_handshake_server_step()
3143 return ret; in mbedtls_ssl_tls13_handshake_server_step()