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