Lines Matching refs:conf

180                                               ssl->conf->f_rng, ssl->conf->p_rng);  in ssl_write_ecjpake_kkpp_ext()
231 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM || in ssl_write_cid_ext()
268 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE) { in ssl_write_max_fragment_length_ext()
283 *p++ = ssl->conf->mfl_code; in ssl_write_max_fragment_length_ext()
302 if (ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED) { in ssl_write_encrypt_then_mac_ext()
334 if (ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_DISABLED) { in ssl_write_extended_ms_ext()
367 if (mbedtls_ssl_conf_get_session_tickets(ssl->conf) == in ssl_write_session_ticket_ext()
414 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_write_use_srtp_ext()
415 (ssl->conf->dtls_srtp_profile_list == NULL) || in ssl_write_use_srtp_ext()
416 (ssl->conf->dtls_srtp_profile_list_len == 0)) { in ssl_write_use_srtp_ext()
429 if (ssl->conf->dtls_srtp_mki_support == MBEDTLS_SSL_DTLS_SRTP_MKI_SUPPORTED) { in ssl_write_use_srtp_ext()
436 ext_len = 2 + 2 * (ssl->conf->dtls_srtp_profile_list_len) + 1 + mki_len; in ssl_write_use_srtp_ext()
461 *p++ = MBEDTLS_BYTE_0(2 * ssl->conf->dtls_srtp_profile_list_len); in ssl_write_use_srtp_ext()
464 protection_profiles_index < ssl->conf->dtls_srtp_profile_list_len; in ssl_write_use_srtp_ext()
467 (ssl->conf->dtls_srtp_profile_list[protection_profiles_index]); in ssl_write_use_srtp_ext()
481 ssl->conf->dtls_srtp_profile_list[protection_profiles_index] in ssl_write_use_srtp_ext()
666 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE || in ssl_parse_max_fragment_length_ext()
668 buf[0] != ssl->conf->mfl_code) { in ssl_parse_max_fragment_length_ext()
691 ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM || in ssl_parse_cid_ext()
741 if (ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED || in ssl_parse_encrypt_then_mac_ext()
766 if (ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_DISABLED || in ssl_parse_extended_ms_ext()
791 if ((mbedtls_ssl_conf_get_session_tickets(ssl->conf) == in ssl_parse_session_ticket_ext()
920 if (ssl->conf->alpn_list == NULL) { in ssl_parse_alpn_ext()
961 for (p = ssl->conf->alpn_list; *p != NULL; p++) { in ssl_parse_alpn_ext()
987 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_parse_use_srtp_ext()
988 (ssl->conf->dtls_srtp_profile_list == NULL) || in ssl_parse_use_srtp_ext()
989 (ssl->conf->dtls_srtp_profile_list_len == 0)) { in ssl_parse_use_srtp_ext()
1004 if (ssl->conf->dtls_srtp_mki_support == MBEDTLS_SSL_DTLS_SRTP_MKI_SUPPORTED) { in ssl_parse_use_srtp_ext()
1044 for (i = 0; i < ssl->conf->dtls_srtp_profile_list_len; i++) { in ssl_parse_use_srtp_ext()
1045 if (server_protection == ssl->conf->dtls_srtp_profile_list[i]) { in ssl_parse_use_srtp_ext()
1046 ssl->dtls_srtp_info.chosen_dtls_srtp_profile = ssl->conf->dtls_srtp_profile_list[i]; in ssl_parse_use_srtp_ext()
1210 if (ssl->conf->renego_max_records >= 0 && in ssl_parse_server_hello()
1211 ssl->renego_records_seen > ssl->conf->renego_max_records) { in ssl_parse_server_hello()
1234 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_server_hello()
1271 … ssl->conf->transport); in ssl_parse_server_hello()
1273 ssl->session_negotiate->endpoint = ssl->conf->endpoint; in ssl_parse_server_hello()
1275 if (ssl->tls_version < ssl->conf->min_tls_version || in ssl_parse_server_hello()
1276 ssl->tls_version > ssl->conf->max_tls_version) { in ssl_parse_server_hello()
1280 (unsigned) ssl->conf->min_tls_version, in ssl_parse_server_hello()
1282 (unsigned) ssl->conf->max_tls_version)); in ssl_parse_server_hello()
1399 if (ssl->conf->ciphersuite_list[i] == 0) { in ssl_parse_server_hello()
1408 if (ssl->conf->ciphersuite_list[i++] == in ssl_parse_server_hello()
1625 ssl->conf->allow_legacy_renegotiation == in ssl_parse_server_hello()
1640 ssl->conf->allow_legacy_renegotiation == in ssl_parse_server_hello()
1692 if (dhm_actual_bitlen < ssl->conf->dhm_min_bitlen) { in ssl_parse_server_dh_params()
1695 ssl->conf->dhm_min_bitlen)); in ssl_parse_server_dh_params()
1933 mbedtls_ssl_write_version(p, ssl->conf->transport, in ssl_write_encrypted_pms()
1936 if ((ret = ssl->conf->f_rng(ssl->conf->p_rng, p + 2, 46)) != 0) { in ssl_write_encrypted_pms()
1966 ssl->conf->f_rng, ssl->conf->p_rng)) != 0) { in ssl_write_encrypted_pms()
2694 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_server_hello_done()
2729 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
2742 ssl->conf->f_rng, ssl->conf->p_rng)) != 0) { in ssl_write_client_key_exchange()
2849 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
2878 ssl->conf->f_rng, ssl->conf->p_rng)) != 0) { in ssl_write_client_key_exchange()
2908 if (mbedtls_ssl_conf_has_static_psk(ssl->conf) == 0) { in ssl_write_client_key_exchange()
2920 if (header_len + content_len_size + ssl->conf->psk_identity_len in ssl_write_client_key_exchange()
2929 *p++ = MBEDTLS_BYTE_1(ssl->conf->psk_identity_len); in ssl_write_client_key_exchange()
2930 *p++ = MBEDTLS_BYTE_0(ssl->conf->psk_identity_len); in ssl_write_client_key_exchange()
2933 memcpy(p, ssl->conf->psk_identity, in ssl_write_client_key_exchange()
2934 ssl->conf->psk_identity_len); in ssl_write_client_key_exchange()
2935 p += ssl->conf->psk_identity_len; in ssl_write_client_key_exchange()
2937 header_len += ssl->conf->psk_identity_len; in ssl_write_client_key_exchange()
3027 if (mbedtls_ssl_conf_has_static_psk(ssl->conf) == 0) { in ssl_write_client_key_exchange()
3035 content_len = ssl->conf->psk_identity_len; in ssl_write_client_key_exchange()
3047 ssl->conf->psk_identity, in ssl_write_client_key_exchange()
3048 ssl->conf->psk_identity_len); in ssl_write_client_key_exchange()
3049 header_len += ssl->conf->psk_identity_len; in ssl_write_client_key_exchange()
3084 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
3098 ssl->conf->f_rng, ssl->conf->p_rng)) != 0) { in ssl_write_client_key_exchange()
3119 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
3176 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
3184 ssl->conf->f_rng, ssl->conf->p_rng); in ssl_write_client_key_exchange()
3346 ssl->conf->f_rng, ssl->conf->p_rng, rs_ctx)) != 0) { in ssl_write_certificate_verify()