diff options
author | 2021-04-02 11:35:05 +0000 | |
---|---|---|
committer | 2021-04-02 11:35:05 +0000 | |
commit | fdbc07237df911080f0fe34a743813650e78e811 (patch) | |
tree | 5b346b7e4a4dd88e1e17dbc6aa50295783f4584f | |
parent | Show DTLS1.2 message with openssl(1) s_server and s_client (diff) | |
download | wireguard-openbsd-fdbc07237df911080f0fe34a743813650e78e811.tar.xz wireguard-openbsd-fdbc07237df911080f0fe34a743813650e78e811.zip |
Include the default cert.pem file path in tls_load_file error message.
Should help for -portable where sometimes the cert.pem is missing.
-rw-r--r-- | usr.sbin/rpki-client/http.c | 4 |
1 files 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 <nils_fisher@hotmail.com> * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> @@ -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 */ |