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 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) 65 # ifndef OPENSSL_NO_CMS 66 IMPLEMENT_LEGACY_ERR_LOAD(CMS) 67 # endif 68 # ifndef OPENSSL_NO_COMP 69 IMPLEMENT_LEGACY_ERR_LOAD(COMP) 70 # endif 71 IMPLEMENT_LEGACY_ERR_LOAD(CONF) 72 IMPLEMENT_LEGACY_ERR_LOAD(CRYPTO) 73 # ifndef OPENSSL_NO_CT 74 IMPLEMENT_LEGACY_ERR_LOAD(CT) 75 # endif 76 # ifndef OPENSSL_NO_DH 77 IMPLEMENT_LEGACY_ERR_LOAD(DH) 78 # endif 79 # ifndef OPENSSL_NO_DSA 80 IMPLEMENT_LEGACY_ERR_LOAD(DSA) 81 # endif 82 # ifndef OPENSSL_NO_EC 83 IMPLEMENT_LEGACY_ERR_LOAD(EC) 84 # endif 85 # ifndef OPENSSL_NO_ENGINE 86 IMPLEMENT_LEGACY_ERR_LOAD(ENGINE) 87 # endif 88 IMPLEMENT_LEGACY_ERR_LOAD(ERR) 89 IMPLEMENT_LEGACY_ERR_LOAD(EVP) 90 IMPLEMENT_LEGACY_ERR_LOAD(OBJ) 91 # ifndef OPENSSL_NO_OCSP 92 IMPLEMENT_LEGACY_ERR_LOAD(OCSP) 93 # endif 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) 100 # ifndef OPENSSL_NO_TS 101 IMPLEMENT_LEGACY_ERR_LOAD(TS) 102 # endif 103 IMPLEMENT_LEGACY_ERR_LOAD(UI) 104 IMPLEMENT_LEGACY_ERR_LOAD(X509) 105 IMPLEMENT_LEGACY_ERR_LOAD(X509V3) 106 #endif /* OPENSSL_NO_DEPRECATED_3_0 */ 107