From 7ce0f2aa6b21a4f703169ad9bc829eabcac09532 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Thu, 27 Jan 2022 18:25:04 +0800 Subject: [PATCH] Wrap client_auth. The variable is used for client side only Signed-off-by: Jerry Yu --- include/mbedtls/ssl.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 350ee2cb24..d11db3f550 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -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 */