From e6ab74e3acdce7a7879ae0eff75ac476e8301629 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 23 Oct 2025 05:16:55 +0000 Subject: [PATCH] rpki-client: remove legacy libcrypto initialization These were never needed since rpki-client only ever targeted LibreSSL and OpenSSL versions with "automatic library initialization". We do not use the ugly libcrypto error strings any longer and we never looked up ciphers and digests by name anyway. "Go for it" claudio --- usr.sbin/rpki-client/filemode.c | 5 +---- usr.sbin/rpki-client/parser.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/usr.sbin/rpki-client/filemode.c b/usr.sbin/rpki-client/filemode.c index 03d3fcdaaa9..3b46d4305ee 100644 --- a/usr.sbin/rpki-client/filemode.c +++ b/usr.sbin/rpki-client/filemode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filemode.c,v 1.70 2025/10/17 08:09:21 job Exp $ */ +/* $OpenBSD: filemode.c,v 1.71 2025/10/23 05:16:55 tb Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -806,9 +806,6 @@ proc_filemode(int fd) if (pledge("stdio rpath", NULL) == -1) err(1, "pledge"); - ERR_load_crypto_strings(); - OpenSSL_add_all_ciphers(); - OpenSSL_add_all_digests(); constraints_parse(); if ((ctx = X509_STORE_CTX_new()) == NULL) diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index c5dbc445eff..860d289efe6 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.171 2025/10/17 08:09:21 job Exp $ */ +/* $OpenBSD: parser.c,v 1.172 2025/10/23 05:16:55 tb Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -1246,9 +1246,6 @@ proc_parser(int fd, int nthreads) if (pledge("stdio rpath", NULL) == -1) err(1, "pledge"); - ERR_load_crypto_strings(); - OpenSSL_add_all_ciphers(); - OpenSSL_add_all_digests(); constraints_parse(); if ((globalmsgq = ibufq_new()) == NULL)