From fdbc07237df911080f0fe34a743813650e78e811 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 2 Apr 2021 11:35:05 +0000 Subject: [PATCH] Include the default cert.pem file path in tls_load_file error message. Should help for -portable where sometimes the cert.pem is missing. --- usr.sbin/rpki-client/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index c9a0a725d0c..0aad880b52b 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.12 2021/03/30 16:05:56 claudio Exp $ */ +/* $OpenBSD: http.c,v 1.13 2021/04/02 11:35:05 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -232,7 +232,7 @@ http_setup(void) tls_ca_mem = tls_load_file(tls_default_ca_cert_file(), &tls_ca_size, NULL); if (tls_ca_mem == NULL) - err(1, "tls_load_file"); + err(1, "tls_load_file: %s", tls_default_ca_cert_file()); tls_config_set_ca_mem(tls_config, tls_ca_mem, tls_ca_size); /* TODO initalize proxy settings */ -- 2.20.1