]>
Commit | Line | Data |
---|---|---|
f5a46ed7 | 1 | /* |
38fc02a7 | 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. |
f5a46ed7 RL |
3 | * |
4 | * Licensed under the Apache License 2.0 (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 | /* This is the C source file where we include this header directly */ | |
11 | #include <openssl/cryptoerr_legacy.h> | |
12 | ||
13 | #ifndef OPENSSL_NO_DEPRECATED_3_0 | |
14 | ||
e0b5058c MC |
15 | # include "crypto/err.h" |
16 | # include "crypto/asn1err.h" | |
17 | # include "crypto/asyncerr.h" | |
18 | # include "crypto/bnerr.h" | |
19 | # include "crypto/buffererr.h" | |
20 | # include "crypto/bioerr.h" | |
21 | # include "crypto/cmserr.h" | |
22 | # include "crypto/comperr.h" | |
23 | # include "crypto/conferr.h" | |
24 | # include "crypto/cryptoerr.h" | |
25 | # include "crypto/cterr.h" | |
26 | # include "crypto/dherr.h" | |
27 | # include "crypto/dsaerr.h" | |
28 | # include "internal/dsoerr.h" | |
29 | # include "crypto/ecerr.h" | |
30 | # include "crypto/engineerr.h" | |
31 | # include "crypto/evperr.h" | |
32 | # include "crypto/httperr.h" | |
33 | # include "crypto/objectserr.h" | |
34 | # include "crypto/ocsperr.h" | |
35 | # include "crypto/pemerr.h" | |
36 | # include "crypto/pkcs12err.h" | |
37 | # include "crypto/pkcs7err.h" | |
38 | # include "crypto/randerr.h" | |
39 | # include "crypto/rsaerr.h" | |
40 | # include "crypto/storeerr.h" | |
41 | # include "crypto/tserr.h" | |
42 | # include "crypto/uierr.h" | |
43 | # include "crypto/x509err.h" | |
44 | # include "crypto/x509v3err.h" | |
f5a46ed7 | 45 | |
e0b5058c | 46 | # ifdef OPENSSL_NO_ERR |
b93f6c2d | 47 | # define IMPLEMENT_LEGACY_ERR_LOAD(lib) \ |
e0b5058c MC |
48 | int ERR_load_##lib##_strings(void) \ |
49 | { \ | |
50 | return 1; \ | |
51 | } | |
52 | # else | |
b93f6c2d | 53 | # define IMPLEMENT_LEGACY_ERR_LOAD(lib) \ |
f5a46ed7 RL |
54 | int ERR_load_##lib##_strings(void) \ |
55 | { \ | |
b93f6c2d | 56 | return ossl_err_load_##lib##_strings(); \ |
f5a46ed7 | 57 | } |
e0b5058c | 58 | # endif |
f5a46ed7 | 59 | |
f5a46ed7 RL |
60 | IMPLEMENT_LEGACY_ERR_LOAD(ASN1) |
61 | IMPLEMENT_LEGACY_ERR_LOAD(ASYNC) | |
62 | IMPLEMENT_LEGACY_ERR_LOAD(BIO) | |
63 | IMPLEMENT_LEGACY_ERR_LOAD(BN) | |
64 | IMPLEMENT_LEGACY_ERR_LOAD(BUF) | |
e0b5058c | 65 | # ifndef OPENSSL_NO_CMS |
f5a46ed7 | 66 | IMPLEMENT_LEGACY_ERR_LOAD(CMS) |
e0b5058c MC |
67 | # endif |
68 | # ifndef OPENSSL_NO_COMP | |
f5a46ed7 | 69 | IMPLEMENT_LEGACY_ERR_LOAD(COMP) |
e0b5058c | 70 | # endif |
f5a46ed7 RL |
71 | IMPLEMENT_LEGACY_ERR_LOAD(CONF) |
72 | IMPLEMENT_LEGACY_ERR_LOAD(CRYPTO) | |
e0b5058c | 73 | # ifndef OPENSSL_NO_CT |
f5a46ed7 | 74 | IMPLEMENT_LEGACY_ERR_LOAD(CT) |
e0b5058c MC |
75 | # endif |
76 | # ifndef OPENSSL_NO_DH | |
f5a46ed7 | 77 | IMPLEMENT_LEGACY_ERR_LOAD(DH) |
e0b5058c MC |
78 | # endif |
79 | # ifndef OPENSSL_NO_DSA | |
f5a46ed7 | 80 | IMPLEMENT_LEGACY_ERR_LOAD(DSA) |
e0b5058c MC |
81 | # endif |
82 | # ifndef OPENSSL_NO_EC | |
f5a46ed7 | 83 | IMPLEMENT_LEGACY_ERR_LOAD(EC) |
e0b5058c MC |
84 | # endif |
85 | # ifndef OPENSSL_NO_ENGINE | |
f5a46ed7 | 86 | IMPLEMENT_LEGACY_ERR_LOAD(ENGINE) |
e0b5058c | 87 | # endif |
f5a46ed7 RL |
88 | IMPLEMENT_LEGACY_ERR_LOAD(ERR) |
89 | IMPLEMENT_LEGACY_ERR_LOAD(EVP) | |
90 | IMPLEMENT_LEGACY_ERR_LOAD(OBJ) | |
e0b5058c | 91 | # ifndef OPENSSL_NO_OCSP |
f5a46ed7 | 92 | IMPLEMENT_LEGACY_ERR_LOAD(OCSP) |
e0b5058c | 93 | # endif |
f5a46ed7 RL |
94 | IMPLEMENT_LEGACY_ERR_LOAD(PEM) |
95 | IMPLEMENT_LEGACY_ERR_LOAD(PKCS12) | |
96 | IMPLEMENT_LEGACY_ERR_LOAD(PKCS7) | |
97 | IMPLEMENT_LEGACY_ERR_LOAD(RAND) | |
98 | IMPLEMENT_LEGACY_ERR_LOAD(RSA) | |
99 | IMPLEMENT_LEGACY_ERR_LOAD(OSSL_STORE) | |
e0b5058c | 100 | # ifndef OPENSSL_NO_TS |
f5a46ed7 | 101 | IMPLEMENT_LEGACY_ERR_LOAD(TS) |
e0b5058c | 102 | # endif |
f5a46ed7 RL |
103 | IMPLEMENT_LEGACY_ERR_LOAD(UI) |
104 | IMPLEMENT_LEGACY_ERR_LOAD(X509) | |
105 | IMPLEMENT_LEGACY_ERR_LOAD(X509V3) | |
e0b5058c | 106 | #endif /* OPENSSL_NO_DEPRECATED_3_0 */ |