Skip to content

Commit

Permalink
mbedtls: remove mbedtls_x509_crt_info reference
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
lws-team committed Mar 31, 2020
1 parent a0a1c9c commit 39b05e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tls/mbedtls/wrapper/platform/ssl_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -590,6 +591,9 @@ int x509_pm_show_info(X509 *x)
ssl_mem_free(buf);
no_mem:
return -1;
#else
return 0;
#endif
}

int x509_pm_new(X509 *x, X509 *m_x)
Expand Down

0 comments on commit 39b05e7

Please sign in to comment.