OLD | NEW |
1 /* crypto/engine/eng_all.c -*- mode: C; c-file-style: "eay" -*- */ | 1 /* crypto/engine/eng_all.c -*- mode: C; c-file-style: "eay" -*- */ |
2 /* Written by Richard Levitte <richard@levitte.org> for the OpenSSL | 2 /* Written by Richard Levitte <richard@levitte.org> for the OpenSSL |
3 * project 2000. | 3 * project 2000. |
4 */ | 4 */ |
5 /* ==================================================================== | 5 /* ==================================================================== |
6 * Copyright (c) 2000-2001 The OpenSSL Project. All rights reserved. | 6 * Copyright (c) 2000-2001 The OpenSSL Project. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 * (eay@cryptsoft.com). This product includes software written by Tim | 54 * (eay@cryptsoft.com). This product includes software written by Tim |
55 * Hudson (tjh@cryptsoft.com). | 55 * Hudson (tjh@cryptsoft.com). |
56 * | 56 * |
57 */ | 57 */ |
58 | 58 |
59 #include "cryptlib.h" | 59 #include "cryptlib.h" |
60 #include "eng_int.h" | 60 #include "eng_int.h" |
61 | 61 |
62 void ENGINE_load_builtin_engines(void) | 62 void ENGINE_load_builtin_engines(void) |
63 { | 63 { |
| 64 #if 0 |
64 /* There's no longer any need for an "openssl" ENGINE unless, one day, | 65 /* There's no longer any need for an "openssl" ENGINE unless, one day, |
65 * it is the *only* way for standard builtin implementations to be be | 66 * it is the *only* way for standard builtin implementations to be be |
66 * accessed (ie. it would be possible to statically link binaries with | 67 * accessed (ie. it would be possible to statically link binaries with |
67 * *no* builtin implementations). */ | 68 * *no* builtin implementations). */ |
68 #if 0 | |
69 ENGINE_load_openssl(); | 69 ENGINE_load_openssl(); |
70 #endif | 70 #endif |
71 #if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK) | 71 #if !defined(OPENSSL_NO_HW) && (defined(__OpenBSD__) || defined(__FreeBSD__) ||
defined(HAVE_CRYPTODEV)) |
72 » ENGINE_load_padlock(); | 72 » ENGINE_load_cryptodev(); |
73 #endif | 73 #endif |
74 ENGINE_load_dynamic(); | 74 ENGINE_load_dynamic(); |
75 #ifndef OPENSSL_NO_STATIC_ENGINE | 75 #ifndef OPENSSL_NO_STATIC_ENGINE |
76 #ifndef OPENSSL_NO_HW | 76 #ifndef OPENSSL_NO_HW |
77 #ifndef OPENSSL_NO_HW_4758_CCA | 77 #ifndef OPENSSL_NO_HW_4758_CCA |
78 ENGINE_load_4758cca(); | 78 ENGINE_load_4758cca(); |
79 #endif | 79 #endif |
80 #ifndef OPENSSL_NO_HW_AEP | 80 #ifndef OPENSSL_NO_HW_AEP |
81 ENGINE_load_aep(); | 81 ENGINE_load_aep(); |
82 #endif | 82 #endif |
83 #ifndef OPENSSL_NO_HW_ATALLA | 83 #ifndef OPENSSL_NO_HW_ATALLA |
84 ENGINE_load_atalla(); | 84 ENGINE_load_atalla(); |
85 #endif | 85 #endif |
86 #ifndef OPENSSL_NO_HW_CSWIFT | 86 #ifndef OPENSSL_NO_HW_CSWIFT |
87 ENGINE_load_cswift(); | 87 ENGINE_load_cswift(); |
88 #endif | 88 #endif |
89 #ifndef OPENSSL_NO_HW_NCIPHER | 89 #ifndef OPENSSL_NO_HW_NCIPHER |
90 ENGINE_load_chil(); | 90 ENGINE_load_chil(); |
91 #endif | 91 #endif |
92 #ifndef OPENSSL_NO_HW_NURON | 92 #ifndef OPENSSL_NO_HW_NURON |
93 ENGINE_load_nuron(); | 93 ENGINE_load_nuron(); |
94 #endif | 94 #endif |
95 #ifndef OPENSSL_NO_HW_SUREWARE | 95 #ifndef OPENSSL_NO_HW_SUREWARE |
96 ENGINE_load_sureware(); | 96 ENGINE_load_sureware(); |
97 #endif | 97 #endif |
98 #ifndef OPENSSL_NO_HW_UBSEC | 98 #ifndef OPENSSL_NO_HW_UBSEC |
99 ENGINE_load_ubsec(); | 99 ENGINE_load_ubsec(); |
100 #endif | 100 #endif |
101 #endif | 101 #ifndef OPENSSL_NO_HW_PADLOCK |
102 #if !defined(OPENSSL_NO_GMP) && !defined(OPENSSL_NO_HW_GMP) | 102 » ENGINE_load_padlock(); |
103 » ENGINE_load_gmp(); | |
104 #endif | 103 #endif |
105 #endif | 104 #endif |
106 #ifndef OPENSSL_NO_HW | 105 #ifndef OPENSSL_NO_GOST |
107 #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) | 106 » ENGINE_load_gost(); |
108 » ENGINE_load_cryptodev(); | 107 #endif |
| 108 #ifndef OPENSSL_NO_GMP |
| 109 » ENGINE_load_gmp(); |
109 #endif | 110 #endif |
110 #if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) | 111 #if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) |
111 ENGINE_load_capi(); | 112 ENGINE_load_capi(); |
112 #endif | 113 #endif |
113 #endif | 114 #endif |
114 } | 115 } |
115 | 116 |
116 #if defined(__OpenBSD__) || defined(__FreeBSD__) | 117 #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) |
117 void ENGINE_setup_bsd_cryptodev(void) { | 118 void ENGINE_setup_bsd_cryptodev(void) { |
118 static int bsd_cryptodev_default_loaded = 0; | 119 static int bsd_cryptodev_default_loaded = 0; |
119 if (!bsd_cryptodev_default_loaded) { | 120 if (!bsd_cryptodev_default_loaded) { |
120 ENGINE_load_cryptodev(); | 121 ENGINE_load_cryptodev(); |
121 ENGINE_register_all_complete(); | 122 ENGINE_register_all_complete(); |
122 } | 123 } |
123 bsd_cryptodev_default_loaded=1; | 124 bsd_cryptodev_default_loaded=1; |
124 } | 125 } |
125 #endif | 126 #endif |
OLD | NEW |