When a file couldn't be retrieved because of an bad HTTPS certificate
find-debuginfod currently says:
Server query failed: No such file or directory
With this patch it will say:
Server query failed: Connection refused
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-10-25 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod-client.c (debuginfod_query_server): Translate
+ CURLE_PEER_FAILED_VERIFICATION to ECONNREFUSED.
+
2020-10-20 Frank Ch. Eigler <fche@redhat.com>
PR26756: more prometheus metrics
case CURLE_COULDNT_RESOLVE_HOST: rc = -EHOSTUNREACH; break; // no NXDOMAIN
case CURLE_URL_MALFORMAT: rc = -EINVAL; break;
case CURLE_COULDNT_CONNECT: rc = -ECONNREFUSED; break;
+ case CURLE_PEER_FAILED_VERIFICATION: rc = -ECONNREFUSED; break;
case CURLE_REMOTE_ACCESS_DENIED: rc = -EACCES; break;
case CURLE_WRITE_ERROR: rc = -EIO; break;
case CURLE_OUT_OF_MEMORY: rc = -ENOMEM; break;
+2020-10-25 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod_find_debuginfo.3 (ECONNREFUSED): Document that this
+ is also returned for a bad HTTPS server certificate.
+
2020-10-07 Frank Ch. Eigler <fche@redhat.com>
* debuginfod-find.1: Add missing .br for SYNOPSIS section.
.TP
.BR ECONNREFUSED
-Unable to connect to remote host.
+Unable to connect to remote host. Also returned when an HTTPS connection
+couldn't be verified (bad certificate).
.TP
.BR ECONNRESET