Make endpoint getter parameter a pointer to const
It would be convenient for users to query the endpoint type directly from a ssl context: ``` mbedtls_ssl_conf_get_endpoint( mbedtls_ssl_context_get_config(&ssl)) ``` Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
accd53ff6a
commit
08daebb410
1 changed files with 1 additions and 1 deletions
|
@ -1926,7 +1926,7 @@ void mbedtls_ssl_conf_endpoint(mbedtls_ssl_config *conf, int endpoint);
|
||||||
* \return Endpoint type, either MBEDTLS_SSL_IS_CLIENT
|
* \return Endpoint type, either MBEDTLS_SSL_IS_CLIENT
|
||||||
* or MBEDTLS_SSL_IS_SERVER
|
* or MBEDTLS_SSL_IS_SERVER
|
||||||
*/
|
*/
|
||||||
static inline int mbedtls_ssl_conf_get_endpoint(mbedtls_ssl_config *conf)
|
static inline int mbedtls_ssl_conf_get_endpoint(const mbedtls_ssl_config *conf)
|
||||||
{
|
{
|
||||||
return conf->MBEDTLS_PRIVATE(endpoint);
|
return conf->MBEDTLS_PRIVATE(endpoint);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue