diff options
-rw-r--r-- | src/regress/lib/libcrypto/dsa/dsatest.c | 4 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/ec/ectest.c | 8 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/ecdsa/ecdsatest.c | 5 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/evp/evptest.c | 25 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/free/freenull.awk | 9 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/free/freenull.c.head | 5 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/gost/gost2814789t.c | 8 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/pbkdf2/pbkdf2.c | 12 |
8 files changed, 8 insertions, 68 deletions
diff --git a/src/regress/lib/libcrypto/dsa/dsatest.c b/src/regress/lib/libcrypto/dsa/dsatest.c index 62343455f3..10ebc3a9f8 100644 --- a/src/regress/lib/libcrypto/dsa/dsatest.c +++ b/src/regress/lib/libcrypto/dsa/dsatest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsatest.c,v 1.9 2023/08/20 22:22:55 tb Exp $ */ | 1 | /* $OpenBSD: dsatest.c,v 1.10 2023/11/19 13:11:05 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -137,12 +137,10 @@ main(int argc, char **argv) | |||
137 | if ((dsa = DSA_new()) == NULL) | 137 | if ((dsa = DSA_new()) == NULL) |
138 | goto end; | 138 | goto end; |
139 | 139 | ||
140 | #ifdef OPENSSL_NO_ENGINE | ||
141 | if (DSA_get0_engine(dsa) != NULL) { | 140 | if (DSA_get0_engine(dsa) != NULL) { |
142 | BIO_printf(bio_err, "ENGINE was not NULL\n"); | 141 | BIO_printf(bio_err, "ENGINE was not NULL\n"); |
143 | goto end; | 142 | goto end; |
144 | } | 143 | } |
145 | #endif | ||
146 | 144 | ||
147 | if (!DSA_generate_parameters_ex(dsa, 512, seed, 20, &counter, &h, cb)) | 145 | if (!DSA_generate_parameters_ex(dsa, 512, seed, 20, &counter, &h, cb)) |
148 | goto end; | 146 | goto end; |
diff --git a/src/regress/lib/libcrypto/ec/ectest.c b/src/regress/lib/libcrypto/ec/ectest.c index f0b1028f48..b32b007b30 100644 --- a/src/regress/lib/libcrypto/ec/ectest.c +++ b/src/regress/lib/libcrypto/ec/ectest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ectest.c,v 1.21 2023/07/26 22:46:06 tb Exp $ */ | 1 | /* $OpenBSD: ectest.c,v 1.22 2023/11/19 13:11:05 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -75,9 +75,6 @@ | |||
75 | #include <time.h> | 75 | #include <time.h> |
76 | 76 | ||
77 | #include <openssl/ec.h> | 77 | #include <openssl/ec.h> |
78 | #ifndef OPENSSL_NO_ENGINE | ||
79 | #include <openssl/engine.h> | ||
80 | #endif | ||
81 | #include <openssl/err.h> | 78 | #include <openssl/err.h> |
82 | #include <openssl/obj_mac.h> | 79 | #include <openssl/obj_mac.h> |
83 | #include <openssl/objects.h> | 80 | #include <openssl/objects.h> |
@@ -769,9 +766,6 @@ main(int argc, char *argv[]) | |||
769 | /* test the internal curves */ | 766 | /* test the internal curves */ |
770 | internal_curve_test(); | 767 | internal_curve_test(); |
771 | 768 | ||
772 | #ifndef OPENSSL_NO_ENGINE | ||
773 | ENGINE_cleanup(); | ||
774 | #endif | ||
775 | CRYPTO_cleanup_all_ex_data(); | 769 | CRYPTO_cleanup_all_ex_data(); |
776 | ERR_free_strings(); | 770 | ERR_free_strings(); |
777 | ERR_remove_thread_state(NULL); | 771 | ERR_remove_thread_state(NULL); |
diff --git a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c index b0b9bd0065..ef724c74b5 100644 --- a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c +++ b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecdsatest.c,v 1.17 2023/05/04 13:50:14 tb Exp $ */ | 1 | /* $OpenBSD: ecdsatest.c,v 1.18 2023/11/19 13:11:06 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -78,9 +78,6 @@ | |||
78 | #include <openssl/evp.h> | 78 | #include <openssl/evp.h> |
79 | #include <openssl/bn.h> | 79 | #include <openssl/bn.h> |
80 | #include <openssl/ecdsa.h> | 80 | #include <openssl/ecdsa.h> |
81 | #ifndef OPENSSL_NO_ENGINE | ||
82 | #include <openssl/engine.h> | ||
83 | #endif | ||
84 | #include <openssl/err.h> | 81 | #include <openssl/err.h> |
85 | 82 | ||
86 | int test_builtin(void); | 83 | int test_builtin(void); |
diff --git a/src/regress/lib/libcrypto/evp/evptest.c b/src/regress/lib/libcrypto/evp/evptest.c index 6f677dd959..0b9436a83f 100644 --- a/src/regress/lib/libcrypto/evp/evptest.c +++ b/src/regress/lib/libcrypto/evp/evptest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evptest.c,v 1.12 2023/03/02 20:24:51 tb Exp $ */ | 1 | /* $OpenBSD: evptest.c,v 1.13 2023/11/19 13:11:06 tb Exp $ */ |
2 | /* Written by Ben Laurie, 2001 */ | 2 | /* Written by Ben Laurie, 2001 */ |
3 | /* | 3 | /* |
4 | * Copyright (c) 2001 The OpenSSL Project. All rights reserved. | 4 | * Copyright (c) 2001 The OpenSSL Project. All rights reserved. |
@@ -53,9 +53,6 @@ | |||
53 | 53 | ||
54 | #include <openssl/opensslconf.h> | 54 | #include <openssl/opensslconf.h> |
55 | #include <openssl/evp.h> | 55 | #include <openssl/evp.h> |
56 | #ifndef OPENSSL_NO_ENGINE | ||
57 | #include <openssl/engine.h> | ||
58 | #endif | ||
59 | #include <openssl/err.h> | 56 | #include <openssl/err.h> |
60 | #include <openssl/conf.h> | 57 | #include <openssl/conf.h> |
61 | 58 | ||
@@ -350,23 +347,6 @@ main(int argc, char **argv) | |||
350 | /* Load up the software EVP_CIPHER and EVP_MD definitions */ | 347 | /* Load up the software EVP_CIPHER and EVP_MD definitions */ |
351 | OpenSSL_add_all_ciphers(); | 348 | OpenSSL_add_all_ciphers(); |
352 | OpenSSL_add_all_digests(); | 349 | OpenSSL_add_all_digests(); |
353 | #ifndef OPENSSL_NO_ENGINE | ||
354 | /* Load all compiled-in ENGINEs */ | ||
355 | ENGINE_load_builtin_engines(); | ||
356 | #endif | ||
357 | #if 0 | ||
358 | OPENSSL_config(); | ||
359 | #endif | ||
360 | #ifndef OPENSSL_NO_ENGINE | ||
361 | /* Register all available ENGINE implementations of ciphers and digests. | ||
362 | * This could perhaps be changed to "ENGINE_register_all_complete()"? */ | ||
363 | ENGINE_register_all_ciphers(); | ||
364 | ENGINE_register_all_digests(); | ||
365 | /* If we add command-line options, this statement should be switchable. | ||
366 | * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if | ||
367 | * they weren't already initialised. */ | ||
368 | /* ENGINE_set_cipher_flags(ENGINE_CIPHER_FLAG_NOINIT); */ | ||
369 | #endif | ||
370 | 350 | ||
371 | for (;;) { | 351 | for (;;) { |
372 | char line[8 * 1024]; | 352 | char line[8 * 1024]; |
@@ -457,9 +437,6 @@ main(int argc, char **argv) | |||
457 | } | 437 | } |
458 | fclose(f); | 438 | fclose(f); |
459 | 439 | ||
460 | #ifndef OPENSSL_NO_ENGINE | ||
461 | ENGINE_cleanup(); | ||
462 | #endif | ||
463 | EVP_cleanup(); | 440 | EVP_cleanup(); |
464 | CRYPTO_cleanup_all_ex_data(); | 441 | CRYPTO_cleanup_all_ex_data(); |
465 | ERR_remove_thread_state(NULL); | 442 | ERR_remove_thread_state(NULL); |
diff --git a/src/regress/lib/libcrypto/free/freenull.awk b/src/regress/lib/libcrypto/free/freenull.awk index 618034cc70..3a10d99ebb 100644 --- a/src/regress/lib/libcrypto/free/freenull.awk +++ b/src/regress/lib/libcrypto/free/freenull.awk | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: freenull.awk,v 1.3 2023/07/28 18:29:26 tb Exp $ | 1 | # $OpenBSD: freenull.awk,v 1.4 2023/11/19 13:11:06 tb Exp $ |
2 | # Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 2 | # Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
3 | # | 3 | # |
4 | # Permission to use, copy, modify, and distribute this software for any | 4 | # Permission to use, copy, modify, and distribute this software for any |
@@ -42,13 +42,6 @@ | |||
42 | next | 42 | next |
43 | } | 43 | } |
44 | 44 | ||
45 | /^ENGINE_free$/ { | ||
46 | printf("#ifndef OPENSSL_NO_ENGINE\n") | ||
47 | printf("\tENGINE_free(NULL);\n") | ||
48 | printf("#endif\n") | ||
49 | next | ||
50 | } | ||
51 | |||
52 | /_free$/ { | 45 | /_free$/ { |
53 | printf("\t%s(NULL);\n", $0) | 46 | printf("\t%s(NULL);\n", $0) |
54 | } | 47 | } |
diff --git a/src/regress/lib/libcrypto/free/freenull.c.head b/src/regress/lib/libcrypto/free/freenull.c.head index dc1a7da523..43b87598e1 100644 --- a/src/regress/lib/libcrypto/free/freenull.c.head +++ b/src/regress/lib/libcrypto/free/freenull.c.head | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: freenull.c.head,v 1.6 2023/07/28 17:13:56 tb Exp $ */ | 1 | /* $OpenBSD: freenull.c.head,v 1.7 2023/11/19 13:11:06 tb Exp $ */ |
2 | 2 | ||
3 | #include <openssl/asn1.h> | 3 | #include <openssl/asn1.h> |
4 | #include <openssl/cmac.h> | 4 | #include <openssl/cmac.h> |
@@ -6,9 +6,6 @@ | |||
6 | #include <openssl/comp.h> | 6 | #include <openssl/comp.h> |
7 | #include <openssl/conf_api.h> | 7 | #include <openssl/conf_api.h> |
8 | #include <openssl/ct.h> | 8 | #include <openssl/ct.h> |
9 | #ifndef OPENSSL_NO_ENGINE | ||
10 | #include <openssl/engine.h> | ||
11 | #endif | ||
12 | #include <openssl/gost.h> | 9 | #include <openssl/gost.h> |
13 | #include <openssl/hmac.h> | 10 | #include <openssl/hmac.h> |
14 | #include <openssl/ocsp.h> | 11 | #include <openssl/ocsp.h> |
diff --git a/src/regress/lib/libcrypto/gost/gost2814789t.c b/src/regress/lib/libcrypto/gost/gost2814789t.c index 5e439a7e36..f4914997cf 100644 --- a/src/regress/lib/libcrypto/gost/gost2814789t.c +++ b/src/regress/lib/libcrypto/gost/gost2814789t.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gost2814789t.c,v 1.9 2023/06/19 18:51:47 tb Exp $ */ | 1 | /* $OpenBSD: gost2814789t.c,v 1.10 2023/11/19 13:11:06 tb Exp $ */ |
2 | /* vim: set fileencoding=ascii : Charset: ASCII */ | 2 | /* vim: set fileencoding=ascii : Charset: ASCII */ |
3 | /* test/gostr2814789t.c */ | 3 | /* test/gostr2814789t.c */ |
4 | /* ==================================================================== | 4 | /* ==================================================================== |
@@ -24,9 +24,6 @@ int main(int argc, char *argv[]) | |||
24 | #include <inttypes.h> | 24 | #include <inttypes.h> |
25 | #include <openssl/conf.h> | 25 | #include <openssl/conf.h> |
26 | #include <openssl/crypto.h> | 26 | #include <openssl/crypto.h> |
27 | #ifndef OPENSSL_NO_ENGINE | ||
28 | #include <openssl/engine.h> | ||
29 | #endif | ||
30 | #include <openssl/err.h> | 27 | #include <openssl/err.h> |
31 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
32 | #include <openssl/hmac.h> | 29 | #include <openssl/hmac.h> |
@@ -1289,9 +1286,6 @@ int main(int argc, char *argv[]) | |||
1289 | } | 1286 | } |
1290 | 1287 | ||
1291 | ERR_load_crypto_strings(); | 1288 | ERR_load_crypto_strings(); |
1292 | #ifndef OPENSSL_NO_ENGINE | ||
1293 | ENGINE_load_builtin_engines(); | ||
1294 | #endif | ||
1295 | OPENSSL_load_builtin_modules(); | 1289 | OPENSSL_load_builtin_modules(); |
1296 | OpenSSL_add_all_algorithms(); | 1290 | OpenSSL_add_all_algorithms(); |
1297 | 1291 | ||
diff --git a/src/regress/lib/libcrypto/pbkdf2/pbkdf2.c b/src/regress/lib/libcrypto/pbkdf2/pbkdf2.c index 9cbc031821..33b683f0a0 100644 --- a/src/regress/lib/libcrypto/pbkdf2/pbkdf2.c +++ b/src/regress/lib/libcrypto/pbkdf2/pbkdf2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pbkdf2.c,v 1.2 2018/07/17 17:06:49 tb Exp $ */ | 1 | /* $OpenBSD: pbkdf2.c,v 1.3 2023/11/19 13:11:06 tb Exp $ */ |
2 | /* Written by Christian Heimes, 2013 */ | 2 | /* Written by Christian Heimes, 2013 */ |
3 | /* | 3 | /* |
4 | * Copyright (c) 2013 The OpenSSL Project. All rights reserved. | 4 | * Copyright (c) 2013 The OpenSSL Project. All rights reserved. |
@@ -56,9 +56,6 @@ | |||
56 | 56 | ||
57 | #include <openssl/opensslconf.h> | 57 | #include <openssl/opensslconf.h> |
58 | #include <openssl/evp.h> | 58 | #include <openssl/evp.h> |
59 | #ifndef OPENSSL_NO_ENGINE | ||
60 | #include <openssl/engine.h> | ||
61 | #endif | ||
62 | #include <openssl/err.h> | 59 | #include <openssl/err.h> |
63 | #include <openssl/conf.h> | 60 | #include <openssl/conf.h> |
64 | 61 | ||
@@ -192,10 +189,6 @@ main(int argc,char **argv) | |||
192 | const testdata *test = test_cases; | 189 | const testdata *test = test_cases; |
193 | 190 | ||
194 | OpenSSL_add_all_digests(); | 191 | OpenSSL_add_all_digests(); |
195 | #ifndef OPENSSL_NO_ENGINE | ||
196 | ENGINE_load_builtin_engines(); | ||
197 | ENGINE_register_all_digests(); | ||
198 | #endif | ||
199 | 192 | ||
200 | for (n = 0; test->pass != NULL; n++, test++) { | 193 | for (n = 0; test->pass != NULL; n++, test++) { |
201 | test_p5_pbkdf2(n, "sha1", test, sha1_results[n]); | 194 | test_p5_pbkdf2(n, "sha1", test, sha1_results[n]); |
@@ -203,9 +196,6 @@ main(int argc,char **argv) | |||
203 | test_p5_pbkdf2(n, "sha512", test, sha512_results[n]); | 196 | test_p5_pbkdf2(n, "sha512", test, sha512_results[n]); |
204 | } | 197 | } |
205 | 198 | ||
206 | #ifndef OPENSSL_NO_ENGINE | ||
207 | ENGINE_cleanup(); | ||
208 | #endif | ||
209 | EVP_cleanup(); | 199 | EVP_cleanup(); |
210 | CRYPTO_cleanup_all_ex_data(); | 200 | CRYPTO_cleanup_all_ex_data(); |
211 | ERR_remove_thread_state(NULL); | 201 | ERR_remove_thread_state(NULL); |