Wrap client_auth.

The variable is used for client side only

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-01-27 18:25:04 +08:00
parent fedefdd6f9
commit 7ce0f2aa6b

View File

@ -1615,8 +1615,12 @@ struct mbedtls_ssl_context
/*
* PKI layer
*/
int MBEDTLS_PRIVATE(client_auth); /*!< flag for client auth. */
#if defined(MBEDTLS_SSL_CLI_C)
int MBEDTLS_PRIVATE(client_auth); /*!< used to check if CertificateRequest is
received from server side. If
CertificateReqeust is received, Certificate
and CertificateVerify should be sent to server */
#endif /* MBEDTLS_SSL_CLI_C */
/*
* User settings
*/