-/* $OpenBSD: dsatest.c,v 1.9 2023/08/20 22:22:55 tb Exp $ */
+/* $OpenBSD: dsatest.c,v 1.10 2023/11/19 13:11:05 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if ((dsa = DSA_new()) == NULL)
goto end;
-#ifdef OPENSSL_NO_ENGINE
if (DSA_get0_engine(dsa) != NULL) {
BIO_printf(bio_err, "ENGINE was not NULL\n");
goto end;
}
-#endif
if (!DSA_generate_parameters_ex(dsa, 512, seed, 20, &counter, &h, cb))
goto end;
-/* $OpenBSD: ectest.c,v 1.21 2023/07/26 22:46:06 tb Exp $ */
+/* $OpenBSD: ectest.c,v 1.22 2023/11/19 13:11:05 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
#include <time.h>
#include <openssl/ec.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/err.h>
#include <openssl/obj_mac.h>
#include <openssl/objects.h>
/* test the internal curves */
internal_curve_test();
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_cleanup();
-#endif
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
ERR_remove_thread_state(NULL);
-/* $OpenBSD: ecdsatest.c,v 1.17 2023/05/04 13:50:14 tb Exp $ */
+/* $OpenBSD: ecdsatest.c,v 1.18 2023/11/19 13:11:06 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
#include <openssl/evp.h>
#include <openssl/bn.h>
#include <openssl/ecdsa.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/err.h>
int test_builtin(void);
-/* $OpenBSD: evptest.c,v 1.12 2023/03/02 20:24:51 tb Exp $ */
+/* $OpenBSD: evptest.c,v 1.13 2023/11/19 13:11:06 tb Exp $ */
/* Written by Ben Laurie, 2001 */
/*
* Copyright (c) 2001 The OpenSSL Project. All rights reserved.
#include <openssl/opensslconf.h>
#include <openssl/evp.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/err.h>
#include <openssl/conf.h>
/* Load up the software EVP_CIPHER and EVP_MD definitions */
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
-#ifndef OPENSSL_NO_ENGINE
- /* Load all compiled-in ENGINEs */
- ENGINE_load_builtin_engines();
-#endif
-#if 0
- OPENSSL_config();
-#endif
-#ifndef OPENSSL_NO_ENGINE
- /* Register all available ENGINE implementations of ciphers and digests.
- * This could perhaps be changed to "ENGINE_register_all_complete()"? */
- ENGINE_register_all_ciphers();
- ENGINE_register_all_digests();
- /* If we add command-line options, this statement should be switchable.
- * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if
- * they weren't already initialised. */
- /* ENGINE_set_cipher_flags(ENGINE_CIPHER_FLAG_NOINIT); */
-#endif
for (;;) {
char line[8 * 1024];
}
fclose(f);
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_cleanup();
-#endif
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_remove_thread_state(NULL);
-# $OpenBSD: freenull.awk,v 1.3 2023/07/28 18:29:26 tb Exp $
+# $OpenBSD: freenull.awk,v 1.4 2023/11/19 13:11:06 tb Exp $
# Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
next
}
-/^ENGINE_free$/ {
- printf("#ifndef OPENSSL_NO_ENGINE\n")
- printf("\tENGINE_free(NULL);\n")
- printf("#endif\n")
- next
-}
-
/_free$/ {
printf("\t%s(NULL);\n", $0)
}
-/* $OpenBSD: freenull.c.head,v 1.6 2023/07/28 17:13:56 tb Exp $ */
+/* $OpenBSD: freenull.c.head,v 1.7 2023/11/19 13:11:06 tb Exp $ */
#include <openssl/asn1.h>
#include <openssl/cmac.h>
#include <openssl/comp.h>
#include <openssl/conf_api.h>
#include <openssl/ct.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/gost.h>
#include <openssl/hmac.h>
#include <openssl/ocsp.h>
-/* $OpenBSD: gost2814789t.c,v 1.9 2023/06/19 18:51:47 tb Exp $ */
+/* $OpenBSD: gost2814789t.c,v 1.10 2023/11/19 13:11:06 tb Exp $ */
/* vim: set fileencoding=ascii : Charset: ASCII */
/* test/gostr2814789t.c */
/* ====================================================================
#include <inttypes.h>
#include <openssl/conf.h>
#include <openssl/crypto.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
}
ERR_load_crypto_strings();
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_load_builtin_engines();
-#endif
OPENSSL_load_builtin_modules();
OpenSSL_add_all_algorithms();
-/* $OpenBSD: pbkdf2.c,v 1.2 2018/07/17 17:06:49 tb Exp $ */
+/* $OpenBSD: pbkdf2.c,v 1.3 2023/11/19 13:11:06 tb Exp $ */
/* Written by Christian Heimes, 2013 */
/*
* Copyright (c) 2013 The OpenSSL Project. All rights reserved.
#include <openssl/opensslconf.h>
#include <openssl/evp.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
#include <openssl/err.h>
#include <openssl/conf.h>
const testdata *test = test_cases;
OpenSSL_add_all_digests();
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_load_builtin_engines();
- ENGINE_register_all_digests();
-#endif
for (n = 0; test->pass != NULL; n++, test++) {
test_p5_pbkdf2(n, "sha1", test, sha1_results[n]);
test_p5_pbkdf2(n, "sha512", test, sha512_results[n]);
}
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_cleanup();
-#endif
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_remove_thread_state(NULL);