From b29ecac1d63aacab6a914ccf49a6a9ef52c23530 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 27 Nov 2023 13:14:15 -0500 Subject: Won't actually have an error so simplified. --- src/lpm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lpm.c') diff --git a/src/lpm.c b/src/lpm.c index 252eb7d..2b6faf2 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -620,9 +620,7 @@ static int lpm_certs(lua_State* L) { if (status < 0) return luaL_mbedtls_error(L, status, "mbedtls_x509_crt_parse_file failed to parse CA certificate %s", path); if (status > 0 && print_trace) { - char err[256]; - mbedtls_snprintf(1, err, sizeof(err), status, "failed to parse %d certificates in %s", status, path); - fprintf(stderr, "[ssl] mbedtls_x509_crt_parse_file %s: %s.\n", path, err); + fprintf(stderr, "[ssl] mbedtls_x509_crt_parse_file on %s failed to parse %d certificates, but still still succeeded.\n", path, status); fflush(stderr); } mbedtls_ssl_conf_ca_chain(&ssl_config, &x509_certificate, NULL); -- cgit v1.2.3