Skip to content

Commit 68c3dc6

Browse files
authored
Merge pull request #10864 from anttiylitokola/tlssocket-cert-debug-info
TLSSocket: print certificate info only when tracing is enabled
2 parents 5350948 + b5661ff commit 68c3dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/netsocket/TLSSocketWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
264264
tr_info("TLS connection established");
265265
#endif
266266

267-
#ifdef MBEDTLS_X509_CRT_PARSE_C
267+
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(FEA_TRACE_SUPPORT)
268268
/* Prints the server certificate and verify it. */
269269
const size_t buf_size = 1024;
270270
char *buf = new char[buf_size];

0 commit comments

Comments
 (0)