2 * Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include "internal/cryptlib.h"
13 void ENGINE_load_builtin_engines(void)
15 /* Some ENGINEs need this */
16 OPENSSL_cpuid_setup();
18 OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
21 #if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)) && !defined(OPENSSL_NO_DEPRECATED)
22 void ENGINE_setup_bsd_cryptodev(void)
24 static int bsd_cryptodev_default_loaded = 0;
25 if (!bsd_cryptodev_default_loaded) {
26 OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CRYPTODEV, NULL);
27 ENGINE_register_all_complete();
29 bsd_cryptodev_default_loaded = 1;