Lines Matching refs:conf

64     if( ssl->conf->endpoint != MBEDTLS_SSL_IS_SERVER )  in mbedtls_ssl_set_client_transport_id()
78 void mbedtls_ssl_conf_dtls_cookies( mbedtls_ssl_config *conf, in mbedtls_ssl_conf_dtls_cookies() argument
83 conf->f_cookie_write = f_cookie_write; in mbedtls_ssl_conf_dtls_cookies()
84 conf->f_cookie_check = f_cookie_check; in mbedtls_ssl_conf_dtls_cookies()
85 conf->p_cookie = p_cookie; in mbedtls_ssl_conf_dtls_cookies()
119 ret = ssl->conf->f_sni( ssl->conf->p_sni, in ssl_parse_servername_ext()
213 for( md_cur = ssl->conf->sig_hashes; *md_cur != MBEDTLS_MD_NONE; md_cur++ ) { in ssl_parse_signature_algorithms_ext()
385 if( ssl->conf->trunc_hmac == MBEDTLS_SSL_TRUNC_HMAC_ENABLED ) in ssl_parse_truncated_hmac_ext()
405 if( ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_ENABLED && in ssl_parse_encrypt_then_mac_ext()
428 if( ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_ENABLED && in ssl_parse_extended_ms_ext()
448 if( ssl->conf->f_ticket_parse == NULL || in ssl_parse_session_ticket_ext()
449 ssl->conf->f_ticket_write == NULL ) in ssl_parse_session_ticket_ext()
473 if( ( ret = ssl->conf->f_ticket_parse( ssl->conf->p_ticket, &session, in ssl_parse_session_ticket_ext()
521 if( ssl->conf->alpn_list == NULL ) in ssl_parse_alpn_ext()
545 for( ours = ssl->conf->alpn_list; *ours != NULL; ours++ ) in ssl_parse_alpn_ext()
618 list = ssl->conf->key_cert; in ssl_pick_cert()
730 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in ssl_ciphersuite_match()
736 if( ssl->conf->arc4_disabled == MBEDTLS_SSL_ARC4_DISABLED && in ssl_ciphersuite_match()
770 ssl->conf->f_psk == NULL && in ssl_ciphersuite_match()
771 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL || in ssl_ciphersuite_match()
772 ssl->conf->psk_identity_len == 0 || ssl->conf->psk_len == 0 ) ) in ssl_ciphersuite_match()
861 ssl->minor_ver = ( buf[4] <= ssl->conf->max_minor_ver )
862 ? buf[4] : ssl->conf->max_minor_ver;
864 if( ssl->minor_ver < ssl->conf->min_minor_ver )
869 ssl->conf->min_major_ver, ssl->conf->min_minor_ver ) );
985 if( ssl->minor_ver < ssl->conf->max_minor_ver )
1001 ciphersuites = ssl->conf->ciphersuite_list[ssl->minor_ver];
1051 ssl->conf->allow_legacy_renegotiation == MBEDTLS_SSL_LEGACY_BREAK_HANDSHAKE )
1113 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_STREAM )
1145 mbedtls_ssl_read_version( &major, &minor, ssl->conf->transport, buf + 1 );
1160 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM
1215 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1262 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1343 ssl->conf->transport, buf );
1348 if( ssl->major_ver < ssl->conf->min_major_ver ||
1349 ssl->minor_ver < ssl->conf->min_minor_ver )
1354 ssl->conf->min_major_ver, ssl->conf->min_minor_ver ) );
1362 if( ssl->major_ver > ssl->conf->max_major_ver )
1364 ssl->major_ver = ssl->conf->max_major_ver;
1365 ssl->minor_ver = ssl->conf->max_minor_ver;
1367 else if( ssl->minor_ver > ssl->conf->max_minor_ver )
1368 ssl->minor_ver = ssl->conf->max_minor_ver;
1401 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1416 if( ssl->conf->f_cookie_check != NULL
1422 if( ssl->conf->f_cookie_check( ssl->conf->p_cookie,
1503 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1557 if( ssl->conf->f_sni == NULL )
1710 if( ssl->minor_ver < ssl->conf->max_minor_ver )
1753 ssl->conf->allow_legacy_renegotiation == MBEDTLS_SSL_LEGACY_BREAK_HANDSHAKE )
1768 ssl->conf->allow_legacy_renegotiation == MBEDTLS_SSL_LEGACY_NO_RENEGOTIATION )
1796 ciphersuites = ssl->conf->ciphersuite_list[ssl->minor_ver];
1846 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
2103 ssl->conf->f_rng, ssl->conf->p_rng );
2172 ssl->conf->transport, p );
2177 if( ssl->conf->f_cookie_write == NULL )
2186 if( ( ret = ssl->conf->f_cookie_write( ssl->conf->p_cookie,
2228 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM &&
2238 if( ssl->conf->f_rng == NULL )
2255 ssl->conf->transport, p );
2270 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 4 ) ) != 0 )
2276 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 28 ) ) != 0 )
2295 ssl->conf->f_get_cache != NULL &&
2296 ssl->conf->f_get_cache( ssl->conf->p_cache, ssl->session_negotiate ) == 0 )
2324 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, ssl->session_negotiate->id,
2494 authmode = ssl->conf->authmode;
2562 for( cur = ssl->conf->sig_hashes; *cur != MBEDTLS_MD_NONE; cur++ )
2596 crt = ssl->conf->ca_chain;
2722 p, end - p, &jlen, ssl->conf->f_rng, ssl->conf->p_rng );
2754 if( ssl->conf->dhm_P.p == NULL || ssl->conf->dhm_G.p == NULL )
2769 if( ( ret = mbedtls_mpi_copy( &ssl->handshake->dhm_ctx.P, &ssl->conf->dhm_P ) ) != 0 ||
2770 ( ret = mbedtls_mpi_copy( &ssl->handshake->dhm_ctx.G, &ssl->conf->dhm_G ) ) != 0 )
2778 p, &len, ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
2815 for( gid = ssl->conf->curve_list; *gid != MBEDTLS_ECP_DP_NONE; gid++ )
2838 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
3002 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
3050 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
3152 ssl->conf->transport, ver );
3161 ret = ssl->conf->f_rng( ssl->conf->p_rng, fake_pms, sizeof( fake_pms ) );
3168 ssl->conf->f_rng, ssl->conf->p_rng );
3215 if( ssl->conf->f_psk == NULL &&
3216 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL ||
3217 ssl->conf->psk_identity_len == 0 || ssl->conf->psk_len == 0 ) )
3241 if( ssl->conf->f_psk != NULL )
3243 if( ssl->conf->f_psk( ssl->conf->p_psk, ssl, *p, n ) != 0 )
3250 if( n != ssl->conf->psk_identity_len ||
3251 mbedtls_ssl_safer_memcmp( ssl->conf->psk_identity, *p, n ) != 0 )
3326 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
3358 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
3499 ssl->conf->f_rng, ssl->conf->p_rng );
3758 if( ( ret = ssl->conf->f_ticket_write( ssl->conf->p_ticket,
3812 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM &&