Copyright consolidation 05/10
[openssl.git] / crypto / err / err_all.c
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
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
8  */
9
10 #include <stdio.h>
11 #include "internal/err_int.h"
12 #include <openssl/asn1.h>
13 #include <openssl/bn.h>
14 #include <openssl/ec.h>
15 #include <openssl/buffer.h>
16 #include <openssl/bio.h>
17 #include <openssl/comp.h>
18 #include <openssl/rsa.h>
19 #include <openssl/dh.h>
20 #include <openssl/dsa.h>
21 #include <openssl/evp.h>
22 #include <openssl/objects.h>
23 #include <openssl/pem2.h>
24 #include <openssl/x509.h>
25 #include <openssl/x509v3.h>
26 #include <openssl/conf.h>
27 #include <openssl/pkcs12.h>
28 #include <openssl/rand.h>
29 #include "internal/dso.h"
30 #include <openssl/engine.h>
31 #include <openssl/ui.h>
32 #include <openssl/ocsp.h>
33 #include <openssl/err.h>
34 #ifdef OPENSSL_FIPS
35 # include <openssl/fips.h>
36 #endif
37 #include <openssl/ts.h>
38 #include <openssl/cms.h>
39 #include <openssl/ct.h>
40 #include <openssl/async.h>
41 #include <openssl/kdf.h>
42
43 void err_load_crypto_strings_int(void)
44 {
45 #ifdef OPENSSL_FIPS
46     FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
47 #endif
48 #ifndef OPENSSL_NO_ERR
49     ERR_load_ERR_strings();     /* include error strings for SYSerr */
50     ERR_load_BN_strings();
51 # ifndef OPENSSL_NO_RSA
52     ERR_load_RSA_strings();
53 # endif
54 # ifndef OPENSSL_NO_DH
55     ERR_load_DH_strings();
56 # endif
57     ERR_load_EVP_strings();
58     ERR_load_BUF_strings();
59     ERR_load_OBJ_strings();
60     ERR_load_PEM_strings();
61 # ifndef OPENSSL_NO_DSA
62     ERR_load_DSA_strings();
63 # endif
64     ERR_load_X509_strings();
65     ERR_load_ASN1_strings();
66     ERR_load_CONF_strings();
67     ERR_load_CRYPTO_strings();
68 # ifndef OPENSSL_NO_COMP
69     ERR_load_COMP_strings();
70 # endif
71 # ifndef OPENSSL_NO_EC
72     ERR_load_EC_strings();
73 # endif
74     /* skip ERR_load_SSL_strings() because it is not in this library */
75     ERR_load_BIO_strings();
76     ERR_load_PKCS7_strings();
77     ERR_load_X509V3_strings();
78     ERR_load_PKCS12_strings();
79     ERR_load_RAND_strings();
80     ERR_load_DSO_strings();
81 # ifndef OPENSSL_NO_TS
82     ERR_load_TS_strings();
83 # endif
84 # ifndef OPENSSL_NO_ENGINE
85     ERR_load_ENGINE_strings();
86 # endif
87 # ifndef OPENSSL_NO_OCSP
88     ERR_load_OCSP_strings();
89 # endif
90 #ifndef OPENSSL_NO_UI
91     ERR_load_UI_strings();
92 #endif
93 # ifdef OPENSSL_FIPS
94     ERR_load_FIPS_strings();
95 # endif
96 # ifndef OPENSSL_NO_CMS
97     ERR_load_CMS_strings();
98 # endif
99 # ifndef OPENSSL_NO_CT
100     ERR_load_CT_strings();
101 # endif
102     ERR_load_ASYNC_strings();
103 #endif
104     ERR_load_KDF_strings();
105 }