Report load failure of cert files only with --debug

Fixes #41331
This commit is contained in:
Tim Rühsen 2014-11-18 14:23:27 +01:00
parent 50ec4d9c3d
commit f518d6cea1
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* gnutls.c (ssl_init): Report load failure of cert files from
cert directory only with --debug. Fixes #41331.
2014-11-18 Tim Ruehsen <tim.ruehsen@gmx.de>
* Fix warnings from clang-analyzer 3.6

View File

@ -138,8 +138,7 @@ ssl_init (void)
hash_table_put (inode_map, (void *)(intptr_t) st.st_ino, NULL);
if ((rc = gnutls_certificate_set_x509_trust_file (credentials, ca_file,
GNUTLS_X509_FMT_PEM)) <= 0)
logprintf (LOG_NOTQUIET, _("ERROR: Failed to open cert %s: (%d).\n"),
ca_file, rc);
DEBUGP (("WARNING: Failed to open cert %s: (%d).\n", ca_file, rc));
else
ncerts += rc;
}