Skip to content

Commit b5661ff

Browse files
author
Antti Yli-Tokola
committed
TLSSocket: print certificate info only when tracing is enabled
Flagging these functions out will reduce flash size more than 3k.
1 parent 14b77c9 commit b5661ff

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)