mirror of
https://github.com/espressif/mbedtls.git
synced 2025-06-12 22:45:20 +08:00
Add getter access to endpoint field in mbedtls_ssl_config
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
918ebf3975
commit
accd53ff6a
@ -1918,6 +1918,19 @@ int mbedtls_ssl_session_reset(mbedtls_ssl_context *ssl);
|
|||||||
*/
|
*/
|
||||||
void mbedtls_ssl_conf_endpoint(mbedtls_ssl_config *conf, int endpoint);
|
void mbedtls_ssl_conf_endpoint(mbedtls_ssl_config *conf, int endpoint);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the current endpoint type
|
||||||
|
*
|
||||||
|
* \param conf SSL configuration
|
||||||
|
*
|
||||||
|
* \return Endpoint type, either MBEDTLS_SSL_IS_CLIENT
|
||||||
|
* or MBEDTLS_SSL_IS_SERVER
|
||||||
|
*/
|
||||||
|
static inline int mbedtls_ssl_conf_get_endpoint(mbedtls_ssl_config *conf)
|
||||||
|
{
|
||||||
|
return conf->MBEDTLS_PRIVATE(endpoint);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Set the transport type (TLS or DTLS).
|
* \brief Set the transport type (TLS or DTLS).
|
||||||
* Default: TLS
|
* Default: TLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user