Add accessor function from mbedtls_ssl_context to the configuration
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
69477b5706
commit
915896f03c
@ -1,3 +1,5 @@
|
|||||||
Features
|
Features
|
||||||
* The structures mbedtls_ssl_config and mbedtls_ssl_context have an
|
* The structures mbedtls_ssl_config and mbedtls_ssl_context have an
|
||||||
extra field user_data which is reserved for the application.
|
extra field user_data which is reserved for the application.
|
||||||
|
* Add an accessor function to get the configuration associated with
|
||||||
|
an SSL context.
|
||||||
|
@ -1850,6 +1850,22 @@ void mbedtls_ssl_conf_dbg( mbedtls_ssl_config *conf,
|
|||||||
void (*f_dbg)(void *, int, const char *, int, const char *),
|
void (*f_dbg)(void *, int, const char *, int, const char *),
|
||||||
void *p_dbg );
|
void *p_dbg );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Return the SSL configuration structure associated
|
||||||
|
* with the given SSL context.
|
||||||
|
*
|
||||||
|
* \note The pointer returned by this function is guaranteed to
|
||||||
|
* remain valid until the context is freed.
|
||||||
|
*
|
||||||
|
* \param ssl The SSL context to query.
|
||||||
|
* \return Pointer to the SSL configuration associated with \p ssl.
|
||||||
|
*/
|
||||||
|
static inline const mbedtls_ssl_config *mbedtls_ssl_context_get_config(
|
||||||
|
const mbedtls_ssl_context *ssl )
|
||||||
|
{
|
||||||
|
return( ssl->MBEDTLS_PRIVATE( conf ) );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Set the underlying BIO callbacks for write, read and
|
* \brief Set the underlying BIO callbacks for write, read and
|
||||||
* read-with-timeout.
|
* read-with-timeout.
|
||||||
|
Loading…
Reference in New Issue
Block a user