1/*
2 * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
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
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"
45
46# ifdef OPENSSL_NO_ERR
47#  define IMPLEMENT_LEGACY_ERR_LOAD(lib)        \
48    int ERR_load_##lib##_strings(void)          \
49    {                                           \
50        return 1;                               \
51    }
52# else
53#  define IMPLEMENT_LEGACY_ERR_LOAD(lib)        \
54    int ERR_load_##lib##_strings(void)          \
55    {                                           \
56        return ossl_err_load_##lib##_strings(); \
57    }
58# endif
59
60IMPLEMENT_LEGACY_ERR_LOAD(ASN1)
61IMPLEMENT_LEGACY_ERR_LOAD(ASYNC)
62IMPLEMENT_LEGACY_ERR_LOAD(BIO)
63IMPLEMENT_LEGACY_ERR_LOAD(BN)
64IMPLEMENT_LEGACY_ERR_LOAD(BUF)
65# ifndef OPENSSL_NO_CMS
66IMPLEMENT_LEGACY_ERR_LOAD(CMS)
67# endif
68# ifndef OPENSSL_NO_COMP
69IMPLEMENT_LEGACY_ERR_LOAD(COMP)
70# endif
71IMPLEMENT_LEGACY_ERR_LOAD(CONF)
72IMPLEMENT_LEGACY_ERR_LOAD(CRYPTO)
73# ifndef OPENSSL_NO_CT
74IMPLEMENT_LEGACY_ERR_LOAD(CT)
75# endif
76# ifndef OPENSSL_NO_DH
77IMPLEMENT_LEGACY_ERR_LOAD(DH)
78# endif
79# ifndef OPENSSL_NO_DSA
80IMPLEMENT_LEGACY_ERR_LOAD(DSA)
81# endif
82# ifndef OPENSSL_NO_EC
83IMPLEMENT_LEGACY_ERR_LOAD(EC)
84# endif
85# ifndef OPENSSL_NO_ENGINE
86IMPLEMENT_LEGACY_ERR_LOAD(ENGINE)
87# endif
88IMPLEMENT_LEGACY_ERR_LOAD(ERR)
89IMPLEMENT_LEGACY_ERR_LOAD(EVP)
90IMPLEMENT_LEGACY_ERR_LOAD(OBJ)
91# ifndef OPENSSL_NO_OCSP
92IMPLEMENT_LEGACY_ERR_LOAD(OCSP)
93# endif
94IMPLEMENT_LEGACY_ERR_LOAD(PEM)
95IMPLEMENT_LEGACY_ERR_LOAD(PKCS12)
96IMPLEMENT_LEGACY_ERR_LOAD(PKCS7)
97IMPLEMENT_LEGACY_ERR_LOAD(RAND)
98IMPLEMENT_LEGACY_ERR_LOAD(RSA)
99IMPLEMENT_LEGACY_ERR_LOAD(OSSL_STORE)
100# ifndef OPENSSL_NO_TS
101IMPLEMENT_LEGACY_ERR_LOAD(TS)
102# endif
103IMPLEMENT_LEGACY_ERR_LOAD(UI)
104IMPLEMENT_LEGACY_ERR_LOAD(X509)
105IMPLEMENT_LEGACY_ERR_LOAD(X509V3)
106#endif /* OPENSSL_NO_DEPRECATED_3_0 */
107