summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err/err_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/err/err_all.c')
-rw-r--r--src/lib/libcrypto/err/err_all.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/lib/libcrypto/err/err_all.c b/src/lib/libcrypto/err/err_all.c
index 5813060ce2..4dc9300892 100644
--- a/src/lib/libcrypto/err/err_all.c
+++ b/src/lib/libcrypto/err/err_all.c
@@ -73,12 +73,6 @@
73#ifndef OPENSSL_NO_DSA 73#ifndef OPENSSL_NO_DSA
74#include <openssl/dsa.h> 74#include <openssl/dsa.h>
75#endif 75#endif
76#ifndef OPENSSL_NO_ECDSA
77#include <openssl/ecdsa.h>
78#endif
79#ifndef OPENSSL_NO_ECDH
80#include <openssl/ecdh.h>
81#endif
82#include <openssl/evp.h> 76#include <openssl/evp.h>
83#include <openssl/objects.h> 77#include <openssl/objects.h>
84#include <openssl/pem2.h> 78#include <openssl/pem2.h>
@@ -91,15 +85,16 @@
91#ifndef OPENSSL_NO_ENGINE 85#ifndef OPENSSL_NO_ENGINE
92#include <openssl/engine.h> 86#include <openssl/engine.h>
93#endif 87#endif
94#include <openssl/ui.h>
95#include <openssl/ocsp.h> 88#include <openssl/ocsp.h>
96#include <openssl/err.h> 89#include <openssl/err.h>
97#ifndef OPENSSL_NO_CMS 90#include <openssl/fips.h>
98#include <openssl/cms.h>
99#endif
100 91
101void ERR_load_crypto_strings(void) 92void ERR_load_crypto_strings(void)
102 { 93 {
94 static int done=0;
95
96 if (done) return;
97 done=1;
103#ifndef OPENSSL_NO_ERR 98#ifndef OPENSSL_NO_ERR
104 ERR_load_ERR_strings(); /* include error strings for SYSerr */ 99 ERR_load_ERR_strings(); /* include error strings for SYSerr */
105 ERR_load_BN_strings(); 100 ERR_load_BN_strings();
@@ -123,12 +118,6 @@ void ERR_load_crypto_strings(void)
123#ifndef OPENSSL_NO_EC 118#ifndef OPENSSL_NO_EC
124 ERR_load_EC_strings(); 119 ERR_load_EC_strings();
125#endif 120#endif
126#ifndef OPENSSL_NO_ECDSA
127 ERR_load_ECDSA_strings();
128#endif
129#ifndef OPENSSL_NO_ECDH
130 ERR_load_ECDH_strings();
131#endif
132 /* skip ERR_load_SSL_strings() because it is not in this library */ 121 /* skip ERR_load_SSL_strings() because it is not in this library */
133 ERR_load_BIO_strings(); 122 ERR_load_BIO_strings();
134 ERR_load_PKCS7_strings(); 123 ERR_load_PKCS7_strings();
@@ -141,8 +130,8 @@ void ERR_load_crypto_strings(void)
141#endif 130#endif
142 ERR_load_OCSP_strings(); 131 ERR_load_OCSP_strings();
143 ERR_load_UI_strings(); 132 ERR_load_UI_strings();
144#ifndef OPENSSL_NO_CMS
145 ERR_load_CMS_strings();
146#endif 133#endif
134#ifdef OPENSSL_FIPS
135 ERR_load_FIPS_strings();
147#endif 136#endif
148 } 137 }