mirror of https://github.com/ARMmbed/mbed-os.git
TLSSocket: print certificate info only when tracing is enabled
Flagging these functions out will reduce flash size more than 3k.pull/10864/head
parent
14b77c9a2e
commit
b5661ff16c
|
|
@ -264,7 +264,7 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
|
||||||
tr_info("TLS connection established");
|
tr_info("TLS connection established");
|
||||||
#endif
|
#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. */
|
/* Prints the server certificate and verify it. */
|
||||||
const size_t buf_size = 1024;
|
const size_t buf_size = 1024;
|
||||||
char *buf = new char[buf_size];
|
char *buf = new char[buf_size];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue