Home
last modified time | relevance | path

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

/mbedtls-3.6.0/library/
Dssl_msg.c329 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_STREAM) { in mbedtls_ssl_check_record()
2173 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_fetch_input()
2397 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_flush_output()
2809 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in mbedtls_ssl_write_handshake_msg_ext()
2850 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_write_handshake_msg_ext()
2893 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in mbedtls_ssl_write_handshake_msg_ext()
2968 mbedtls_ssl_write_version(ssl->out_hdr + 1, ssl->conf->transport, in mbedtls_ssl_write_record()
2983 mbedtls_ssl_write_version(rec.ver, ssl->conf->transport, tls_ver); in mbedtls_ssl_write_record()
3016 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_write_record()
3058 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in mbedtls_ssl_write_record()
[all …]
Dssl_client.c472 mbedtls_ssl_write_version(p, ssl->conf->transport, in ssl_write_client_hello_body()
520 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_write_client_hello_body()
801 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_prepare_client_hello()
938 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_write_client_hello()
Dssl_tls12_server.c366 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_cid_ext()
556 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_parse_use_srtp_ext()
968 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM in ssl_parse_client_hello()
1021 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_client_hello()
1082 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_client_hello()
1162 … ssl->conf->transport); in ssl_parse_client_hello()
1204 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_client_hello()
1663 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_client_hello()
1989 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_write_use_srtp_ext()
2060 mbedtls_ssl_write_version(p, ssl->conf->transport, ssl->tls_version); in ssl_write_hello_verify_request()
[all …]
Dssl_tls.c105 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_set_cid()
139 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_get_own_cid()
169 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM || in mbedtls_ssl_get_peer_cid()
1123 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_handshake_init()
1293 if (conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_conf_version_check()
1312 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_conf_version_check()
1604 void mbedtls_ssl_conf_transport(mbedtls_ssl_config *conf, int transport) in mbedtls_ssl_conf_transport() argument
1606 conf->transport = transport; in mbedtls_ssl_conf_transport()
3285 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_get_version()
3800 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in ssl_prepare_handshake_step()
[all …]
Dssl_misc.h1660 void mbedtls_ssl_write_version(unsigned char version[2], int transport,
1663 int transport);
1672 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_in_hdr_len()
1689 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_hs_hdr_len()
1747 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_ep_len()
Dssl_tls12_client.c231 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM || in ssl_write_cid_ext()
413 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_write_use_srtp_ext()
690 ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM || in ssl_parse_cid_ext()
985 if ((ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) || in ssl_parse_use_srtp_ext()
1232 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_server_hello()
1269 … ssl->conf->transport); in ssl_parse_server_hello()
1934 mbedtls_ssl_write_version(p, ssl->conf->transport, in ssl_write_encrypted_pms()
2697 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in ssl_parse_server_hello_done()
Dssl_tls13_server.c740 tls_version = mbedtls_ssl_read_version(p, ssl->conf->transport); in ssl_tls13_parse_supported_versions_ext()
1288 if (mbedtls_ssl_read_version(p, ssl->conf->transport) != in ssl_tls13_parse_client_hello()
1882 ssl->conf->transport, in ssl_tls13_write_server_hello_supported_versions_ext()
Dssl_tls13_client.c105 if (mbedtls_ssl_read_version(buf, ssl->conf->transport) != in ssl_tls13_parse_supported_versions_ext()
1620 if (mbedtls_ssl_read_version(p, ssl->conf->transport) != in ssl_tls13_parse_server_hello()
/mbedtls-3.6.0/programs/ssl/
Dssl_client2.c521 int transport; /* TLS or DTLS? */ member
608 if (opt.transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in report_cid_usage()
942 opt.transport = DFL_TRANSPORT; in main()
980 opt.transport = MBEDTLS_SSL_TRANSPORT_STREAM; in main()
982 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
1251 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
1441 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in main()
1718 opt.transport, in main()
2035 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in main()
2089 opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ? "tcp" : "udp", in main()
[all …]
Dssl_server2.c672 int transport; /* TLS or DTLS? */ member
1335 if (opt.transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in report_cid_usage()
1731 opt.transport = DFL_TRANSPORT; in main()
1770 opt.transport = MBEDTLS_SSL_TRANSPORT_STREAM; in main()
1772 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
2037 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
2715 opt.transport, in main()
2926 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in main()
3205 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in main()
3232 opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ? "tcp" : "udp", in main()
[all …]
Dssl_test_common_source.c214 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in recv_cb()
239 if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in recv_timeout_cb()
/mbedtls-3.6.0/include/mbedtls/
Dssl.h1348 uint8_t MBEDTLS_PRIVATE(transport); /*!< 0: stream (TLS), 1: datagram (DTLS) */
1953 void mbedtls_ssl_conf_transport(mbedtls_ssl_config *conf, int transport);
5317 int endpoint, int transport, int preset);
/mbedtls-3.6.0/tests/src/test_helpers/
Dssl_helpers.c924 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_write_fragment()
971 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_read_fragment()
1791 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in check_ssl_version()
/mbedtls-3.6.0/tests/suites/
Dtest_suite_ssl.data76 Message transport mock - uninitialized structures
79 Message transport mock - basic test
82 Message transport mock - queue overflow/underflow
85 Message transport mock - socket overflow
88 Message transport mock - truncated message
91 Message transport mock - socket read error
94 Message transport mock - one-way interleaved sends/reads
97 Message transport mock - two-way interleaved sends/reads
Dtest_suite_ssl.function2805 void conf_version(int endpoint, int transport,
2817 mbedtls_ssl_conf_transport(&conf, transport);
3058 /* Can't use CID functions with stream transport. */
/mbedtls-3.6.0/
DChangeLog2525 lifetime of the underlying transport by adding a connection identifier
3166 underlying transport in case event-driven IO is used.
3190 where data needs to be fetched from the underlying transport in order