Lines Matching refs:conf
175 if( ssl->conf->max_minor_ver != MBEDTLS_SSL_MINOR_VERSION_3 ) in ssl_write_signature_algorithms_ext()
180 for( md = ssl->conf->sig_hashes; *md != MBEDTLS_MD_NONE; md++ ) in ssl_write_signature_algorithms_ext()
201 for( md = ssl->conf->sig_hashes; *md != MBEDTLS_MD_NONE; md++ ) in ssl_write_signature_algorithms_ext()
266 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ )
291 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ )
387 ssl->conf->f_rng, ssl->conf->p_rng );
436 if( ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE ) {
454 *p++ = ssl->conf->mfl_code;
469 if( ssl->conf->trunc_hmac == MBEDTLS_SSL_TRUNC_HMAC_DISABLED )
501 if( ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED ||
502 ssl->conf->max_minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 )
535 if( ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_DISABLED ||
536 ssl->conf->max_minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 )
570 if( ssl->conf->session_tickets == MBEDTLS_SSL_SESSION_TICKETS_DISABLED )
615 if( ssl->conf->alpn_list == NULL )
622 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ )
645 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ )
679 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM &&
695 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 4 ) ) != 0 )
701 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 28 ) ) != 0 )
719 if( ssl->conf->f_rng == NULL )
729 ssl->major_ver = ssl->conf->min_major_ver;
730 ssl->minor_ver = ssl->conf->min_minor_ver;
733 if( ssl->conf->max_major_ver == 0 )
750 mbedtls_ssl_write_version( ssl->conf->max_major_ver, ssl->conf->max_minor_ver,
751 ssl->conf->transport, p );
802 ret = ssl->conf->f_rng( ssl->conf->p_rng, ssl->session_negotiate->id, 32 );
824 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
848 ciphersuites = ssl->conf->ciphersuite_list[ssl->minor_ver];
862 if( ciphersuite_info->min_minor_ver > ssl->conf->max_minor_ver ||
863 ciphersuite_info->max_minor_ver < ssl->conf->min_minor_ver )
867 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM &&
873 if( ssl->conf->arc4_disabled == MBEDTLS_SSL_ARC4_DISABLED &&
906 if( ssl->conf->fallback == MBEDTLS_SSL_IS_FALLBACK )
933 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1039 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1107 if( ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE ||
1109 buf[0] != ssl->conf->mfl_code )
1123 if( ssl->conf->trunc_hmac == MBEDTLS_SSL_TRUNC_HMAC_DISABLED ||
1142 if( ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED ||
1162 if( ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_DISABLED ||
1182 if( ssl->conf->session_tickets == MBEDTLS_SSL_SESSION_TICKETS_DISABLED ||
1276 if( ssl->conf->alpn_list == NULL )
1302 for( p = ssl->conf->alpn_list; *p != NULL; p++ )
1335 mbedtls_ssl_read_version( &major_ver, &minor_ver, ssl->conf->transport, p );
1344 major_ver > ssl->conf->max_major_ver ||
1345 minor_ver > ssl->conf->max_minor_ver )
1427 if( ssl->conf->renego_max_records >= 0 &&
1428 ssl->renego_records_seen > ssl->conf->renego_max_records )
1445 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1485 ssl->conf->transport, buf + 0 );
1487 if( ssl->major_ver < ssl->conf->min_major_ver ||
1488 ssl->minor_ver < ssl->conf->min_minor_ver ||
1489 ssl->major_ver > ssl->conf->max_major_ver ||
1490 ssl->minor_ver > ssl->conf->max_minor_ver )
1494 ssl->conf->min_major_ver, ssl->conf->min_minor_ver,
1496 ssl->conf->max_major_ver, ssl->conf->max_minor_ver ) );
1557 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
1631 || ( ssl->conf->arc4_disabled &&
1645 if( ssl->conf->ciphersuite_list[ssl->minor_ver][i] == 0 )
1651 if( ssl->conf->ciphersuite_list[ssl->minor_ver][i++] ==
1822 ssl->conf->allow_legacy_renegotiation == MBEDTLS_SSL_LEGACY_BREAK_HANDSHAKE )
1837 ssl->conf->allow_legacy_renegotiation == MBEDTLS_SSL_LEGACY_NO_RENEGOTIATION )
1886 if( ssl->handshake->dhm_ctx.len * 8 < ssl->conf->dhm_min_bitlen )
1890 ssl->conf->dhm_min_bitlen ) );
2036 mbedtls_ssl_write_version( ssl->conf->max_major_ver, ssl->conf->max_minor_ver,
2037 ssl->conf->transport, p );
2039 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p + 2, 46 ) ) != 0 )
2067 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
2717 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
2749 ssl->conf->f_rng, ssl->conf->p_rng );
2763 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
2790 ssl->conf->f_rng, ssl->conf->p_rng );
2803 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
2825 if( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL )
2832 n = ssl->conf->psk_identity_len;
2844 memcpy( ssl->out_msg + i, ssl->conf->psk_identity, ssl->conf->psk_identity_len );
2845 i += ssl->conf->psk_identity_len;
2883 ssl->conf->f_rng, ssl->conf->p_rng );
2900 ssl->conf->f_rng, ssl->conf->p_rng );
2941 ssl->conf->f_rng, ssl->conf->p_rng );
2950 ssl->conf->f_rng, ssl->conf->p_rng );
3139 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 )
3285 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM &&