aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-11-27 13:14:15 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-11-27 13:14:15 -0500
commitb29ecac1d63aacab6a914ccf49a6a9ef52c23530 (patch)
treef37d43931b93ec17197d10e30c295c075004a475 /src
parent5aeb33c74956c392815a814b5839adc693463882 (diff)
downloadlite-xl-plugin-manager-b29ecac1d63aacab6a914ccf49a6a9ef52c23530.tar.gz
lite-xl-plugin-manager-b29ecac1d63aacab6a914ccf49a6a9ef52c23530.zip
Won't actually have an error so simplified.
Diffstat (limited to 'src')
-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);