mbedtls_ssl_conf_transport() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_ssl_conf_transport() function

Set the transport type (TLS or DTLS). Default: TLS

Syntax

void mbedtls_ssl_conf_transport( mbedtls_ssl_config *conf,     int transport );
Implemented in ssl_tls.c:7069

Arguments

conf

SSL configuration

transport

transport type: MBEDTLS_SSL_TRANSPORT_STREAM for TLS, MBEDTLS_SSL_TRANSPORT_DATAGRAM for DTLS.

Notes

For DTLS, you must either provide a recv callback that doesn't block, or one that handles timeouts, see \c mbedtls_ssl_set_bio(). You also need to provide timer callbacks with \c mbedtls_ssl_set_timer_cb().

References

LocationReferrerText
ssl_tls.c:7069
void mbedtls_ssl_conf_transport( mbedtls_ssl_config *conf, int transport )
ssl.h:1286
void mbedtls_ssl_conf_transport( mbedtls_ssl_config *conf, int transport );
ssl_tls.c:9066mbedtls_ssl_config_defaults()
mbedtls_ssl_conf_transport( conf, transport );

Call Tree

Functions calling mbedtls_ssl_conf_transport()
all items filtered out
mbedtls_ssl_conf_transport()
Data read by mbedtls_ssl_conf_transport()
Data written by mbedtls_ssl_conf_transport()
mbedtls_ssl_conf_transport()
all items filtered out