Coverage Report

Created: 2024-11-21 07:03

/src/openssl/crypto/err/err_all.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 1995-2023 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
#include <stdio.h>
11
#include <openssl/err.h>
12
#include "crypto/err.h"
13
#include "crypto/cryptoerr.h"
14
#include "crypto/asn1err.h"
15
#include "crypto/bnerr.h"
16
#include "crypto/ecerr.h"
17
#include "crypto/buffererr.h"
18
#include "crypto/bioerr.h"
19
#include "crypto/comperr.h"
20
#include "crypto/rsaerr.h"
21
#include "crypto/dherr.h"
22
#include "crypto/dsaerr.h"
23
#include "crypto/evperr.h"
24
#include "crypto/objectserr.h"
25
#include "crypto/pemerr.h"
26
#include "crypto/pkcs7err.h"
27
#include "crypto/x509err.h"
28
#include "crypto/x509v3err.h"
29
#include "crypto/conferr.h"
30
#include "crypto/pkcs12err.h"
31
#include "crypto/randerr.h"
32
#include "internal/dsoerr.h"
33
#include "crypto/engineerr.h"
34
#include "crypto/uierr.h"
35
#include "crypto/httperr.h"
36
#include "crypto/ocsperr.h"
37
#include "crypto/tserr.h"
38
#include "crypto/cmserr.h"
39
#include "crypto/crmferr.h"
40
#include "crypto/cmperr.h"
41
#include "crypto/cterr.h"
42
#include "crypto/asyncerr.h"
43
#include "crypto/storeerr.h"
44
#include "crypto/esserr.h"
45
#include "internal/propertyerr.h"
46
#include "prov/proverr.h"
47
48
int ossl_err_load_crypto_strings(void)
49
4
{
50
4
    if (0
51
4
#ifndef OPENSSL_NO_ERR
52
4
        || ossl_err_load_ERR_strings() == 0 /* include error strings for SYSerr */
53
4
        || ossl_err_load_BN_strings() == 0
54
4
        || ossl_err_load_RSA_strings() == 0
55
4
# ifndef OPENSSL_NO_DH
56
4
        || ossl_err_load_DH_strings() == 0
57
4
# endif
58
4
        || ossl_err_load_EVP_strings() == 0
59
4
        || ossl_err_load_BUF_strings() == 0
60
4
        || ossl_err_load_OBJ_strings() == 0
61
4
        || ossl_err_load_PEM_strings() == 0
62
4
# ifndef OPENSSL_NO_DSA
63
4
        || ossl_err_load_DSA_strings() == 0
64
4
# endif
65
4
        || ossl_err_load_X509_strings() == 0
66
4
        || ossl_err_load_ASN1_strings() == 0
67
4
        || ossl_err_load_CONF_strings() == 0
68
4
        || ossl_err_load_CRYPTO_strings() == 0
69
4
# ifndef OPENSSL_NO_COMP
70
4
        || ossl_err_load_COMP_strings() == 0
71
4
# endif
72
4
# ifndef OPENSSL_NO_EC
73
4
        || ossl_err_load_EC_strings() == 0
74
4
# endif
75
        /* skip ossl_err_load_SSL_strings() because it is not in this library */
76
4
        || ossl_err_load_BIO_strings() == 0
77
4
        || ossl_err_load_PKCS7_strings() == 0
78
4
        || ossl_err_load_X509V3_strings() == 0
79
4
        || ossl_err_load_PKCS12_strings() == 0
80
4
        || ossl_err_load_RAND_strings() == 0
81
4
        || ossl_err_load_DSO_strings() == 0
82
4
# ifndef OPENSSL_NO_TS
83
4
        || ossl_err_load_TS_strings() == 0
84
4
# endif
85
4
# ifndef OPENSSL_NO_ENGINE
86
4
        || ossl_err_load_ENGINE_strings() == 0
87
4
# endif
88
4
# ifndef OPENSSL_NO_HTTP
89
4
        || ossl_err_load_HTTP_strings() == 0
90
4
# endif
91
4
# ifndef OPENSSL_NO_OCSP
92
4
        || ossl_err_load_OCSP_strings() == 0
93
4
# endif
94
4
        || ossl_err_load_UI_strings() == 0
95
4
# ifndef OPENSSL_NO_CMS
96
4
        || ossl_err_load_CMS_strings() == 0
97
4
# endif
98
4
# ifndef OPENSSL_NO_CRMF
99
4
        || ossl_err_load_CRMF_strings() == 0
100
4
        || ossl_err_load_CMP_strings() == 0
101
4
# endif
102
4
# ifndef OPENSSL_NO_CT
103
4
        || ossl_err_load_CT_strings() == 0
104
4
# endif
105
4
        || ossl_err_load_ESS_strings() == 0
106
4
        || ossl_err_load_ASYNC_strings() == 0
107
4
        || ossl_err_load_OSSL_STORE_strings() == 0
108
4
        || ossl_err_load_PROP_strings() == 0
109
4
        || ossl_err_load_PROV_strings() == 0
110
4
#endif
111
4
        )
112
0
        return 0;
113
114
4
    return 1;
115
4
}