TLSSocket: print certificate info only when tracing is enabled

Flagging these functions out will reduce flash size more than 3k.
pull/10864/head
Antti Yli-Tokola 2019-06-19 10:05:10 +03:00
parent 14b77c9a2e
commit b5661ff16c
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
tr_info("TLS connection established");
#endif
#ifdef MBEDTLS_X509_CRT_PARSE_C
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(FEA_TRACE_SUPPORT)
/* Prints the server certificate and verify it. */
const size_t buf_size = 1024;
char *buf = new char[buf_size];