From 39b05e7db3b1fd44ca5092132bb82a3799df7a9f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 31 Mar 2020 11:36:47 +0100 Subject: [PATCH] mbedtls: remove mbedtls_x509_crt_info reference Nobody uses this from the wrapper... it brings in mbedtls_x509_crt_info() even if you're using -ffunctionsections for a loss of about 1.7KB on Arm. Let's chop it out... --- lib/tls/mbedtls/wrapper/platform/ssl_pm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tls/mbedtls/wrapper/platform/ssl_pm.c b/lib/tls/mbedtls/wrapper/platform/ssl_pm.c index a5bddea20..eb4a088e2 100755 --- a/lib/tls/mbedtls/wrapper/platform/ssl_pm.c +++ b/lib/tls/mbedtls/wrapper/platform/ssl_pm.c @@ -551,6 +551,7 @@ OSSL_HANDSHAKE_STATE ssl_pm_get_state(const SSL *ssl) int x509_pm_show_info(X509 *x) { +#if 0 int ret; char *buf; mbedtls_x509_crt *x509_crt; @@ -590,6 +591,9 @@ mbedtls_err1: ssl_mem_free(buf); no_mem: return -1; +#else + return 0; +#endif } int x509_pm_new(X509 *x, X509 *m_x)