1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-25 14:45:52 +00:00

rpki-client regress: remove unnecessary libcrypto init/cleanup

This commit is contained in:
tb
2025-10-23 05:26:25 +00:00
parent e6ab74e3ac
commit 1886fa31e0
11 changed files with 11 additions and 90 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: test-aspa.c,v 1.10 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-aspa.c,v 1.11 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2022 Job Snijders <job@fastly.com>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -45,9 +45,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -88,10 +85,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-cert.c,v 1.26 2025/07/15 09:26:19 tb Exp $ */
/* $Id: test-cert.c,v 1.27 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -43,9 +43,6 @@ main(int argc, char *argv[])
int c, i, verb = 0, ta = 0;
struct cert *p;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "tv")) != -1)
@@ -113,10 +110,6 @@ main(int argc, char *argv[])
}
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-gbr.c,v 1.20 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-gbr.c,v 1.21 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -44,10 +44,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -88,10 +84,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-geofeed.c,v 1.9 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-geofeed.c,v 1.10 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -44,10 +44,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -88,10 +84,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-ip.c,v 1.11 2024/08/23 12:56:26 anton Exp $ */
/* $Id: test-ip.c,v 1.12 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -81,10 +81,6 @@ test(const char *res, uint16_t afiv, size_t sz, size_t unused, ...)
int
main(int argc, char *argv[])
{
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
test("10.5.0.4/32",
1, 0x04, 0x00, 0x0a, 0x05, 0x00, 0x04);
@@ -124,8 +120,6 @@ main(int argc, char *argv[])
test("129.64.0.0/10",
1, 0x02, 0x06, 0x81, 0x40);
ERR_free_strings();
printf("OK\n");
return 0;
}

View File

@@ -1,4 +1,4 @@
/* $Id: test-mft.c,v 1.31 2025/07/20 12:01:40 tb Exp $ */
/* $Id: test-mft.c,v 1.32 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -47,9 +47,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while (-1 != (c = getopt(argc, argv, "pv")))
@@ -90,10 +87,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-roa.c,v 1.28 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-roa.c,v 1.29 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -44,9 +44,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -87,10 +84,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-rsc.c,v 1.13 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-rsc.c,v 1.14 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -47,9 +47,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while (-1 != (c = getopt(argc, argv, "pv")))
@@ -90,10 +87,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-spl.c,v 1.5 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-spl.c,v 1.6 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2024 Job Snijders <job@fastly.com>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -45,9 +45,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -88,10 +85,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-tak.c,v 1.10 2025/07/20 07:49:47 tb Exp $ */
/* $Id: test-tak.c,v 1.11 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2022 Job Snijders <job@fastly.com>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -45,9 +45,6 @@ main(int argc, char *argv[])
unsigned char *buf;
size_t len;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
x509_init_oid();
while ((c = getopt(argc, argv, "pv")) != -1)
@@ -88,10 +85,6 @@ main(int argc, char *argv[])
cert = NULL;
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);

View File

@@ -1,4 +1,4 @@
/* $Id: test-tal.c,v 1.14 2024/04/22 05:54:01 claudio Exp $ */
/* $Id: test-tal.c,v 1.15 2025/10/23 05:26:25 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -42,10 +42,6 @@ main(int argc, char *argv[])
size_t len;
struct tal *tal;
ERR_load_crypto_strings();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
while ((c = getopt(argc, argv, "v")) != -1)
switch (c) {
case 'v':
@@ -72,10 +68,6 @@ main(int argc, char *argv[])
tal_free(tal);
}
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
if (i < argc)
errx(1, "test failed for %s", argv[i]);