aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c4
1 files changed, 1 insertions, 3 deletions
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);