mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
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
|
|
@ -1926,7 +1926,7 @@ void mbedtls_ssl_conf_endpoint(mbedtls_ssl_config *conf, int endpoint);
|
|||
* \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)
|
||||
static inline int mbedtls_ssl_conf_get_endpoint(const mbedtls_ssl_config *conf)
|
||||
{
|
||||
return conf->MBEDTLS_PRIVATE(endpoint);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue