Coverage Report

Created: 2018-08-29 13:53

/src/openssl/crypto/err/err_all.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
3
 *
4
 * Licensed under the OpenSSL license (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 "internal/err_int.h"
12
#include <openssl/asn1err.h>
13
#include <openssl/bnerr.h>
14
#include <openssl/ecerr.h>
15
#include <openssl/buffererr.h>
16
#include <openssl/bioerr.h>
17
#include <openssl/comperr.h>
18
#include <openssl/rsaerr.h>
19
#include <openssl/dherr.h>
20
#include <openssl/dsaerr.h>
21
#include <openssl/evperr.h>
22
#include <openssl/objectserr.h>
23
#include <openssl/pemerr.h>
24
#include <openssl/pkcs7err.h>
25
#include <openssl/x509err.h>
26
#include <openssl/x509v3err.h>
27
#include <openssl/conferr.h>
28
#include <openssl/pkcs12err.h>
29
#include <openssl/randerr.h>
30
#include "internal/dso.h"
31
#include <openssl/engineerr.h>
32
#include <openssl/uierr.h>
33
#include <openssl/ocsperr.h>
34
#include <openssl/err.h>
35
#include <openssl/tserr.h>
36
#include <openssl/cmserr.h>
37
#include <openssl/cterr.h>
38
#include <openssl/asyncerr.h>
39
#include <openssl/kdferr.h>
40
#include <openssl/storeerr.h>
41
42
int err_load_crypto_strings_int(void)
43
8
{
44
8
    if (
45
8
#ifndef OPENSSL_NO_ERR
46
8
        ERR_load_ERR_strings() == 0 ||    /* include error strings for SYSerr */
47
8
        ERR_load_BN_strings() == 0 ||
48
8
# ifndef OPENSSL_NO_RSA
49
8
        ERR_load_RSA_strings() == 0 ||
50
8
# endif
51
8
# ifndef OPENSSL_NO_DH
52
8
        ERR_load_DH_strings() == 0 ||
53
8
# endif
54
8
        ERR_load_EVP_strings() == 0 ||
55
8
        ERR_load_BUF_strings() == 0 ||
56
8
        ERR_load_OBJ_strings() == 0 ||
57
8
        ERR_load_PEM_strings() == 0 ||
58
8
# ifndef OPENSSL_NO_DSA
59
8
        ERR_load_DSA_strings() == 0 ||
60
8
# endif
61
8
        ERR_load_X509_strings() == 0 ||
62
8
        ERR_load_ASN1_strings() == 0 ||
63
8
        ERR_load_CONF_strings() == 0 ||
64
8
        ERR_load_CRYPTO_strings() == 0 ||
65
8
# ifndef OPENSSL_NO_COMP
66
8
        ERR_load_COMP_strings() == 0 ||
67
8
# endif
68
8
# ifndef OPENSSL_NO_EC
69
8
        ERR_load_EC_strings() == 0 ||
70
8
# endif
71
8
        /* skip ERR_load_SSL_strings() because it is not in this library */
72
8
        ERR_load_BIO_strings() == 0 ||
73
8
        ERR_load_PKCS7_strings() == 0 ||
74
8
        ERR_load_X509V3_strings() == 0 ||
75
8
        ERR_load_PKCS12_strings() == 0 ||
76
8
        ERR_load_RAND_strings() == 0 ||
77
8
        ERR_load_DSO_strings() == 0 ||
78
8
# ifndef OPENSSL_NO_TS
79
8
        ERR_load_TS_strings() == 0 ||
80
8
# endif
81
8
# ifndef OPENSSL_NO_ENGINE
82
8
        ERR_load_ENGINE_strings() == 0 ||
83
8
# endif
84
8
# ifndef OPENSSL_NO_OCSP
85
8
        ERR_load_OCSP_strings() == 0 ||
86
8
# endif
87
8
        ERR_load_UI_strings() == 0 ||
88
8
# ifndef OPENSSL_NO_CMS
89
8
        ERR_load_CMS_strings() == 0 ||
90
8
# endif
91
8
# ifndef OPENSSL_NO_CT
92
8
        ERR_load_CT_strings() == 0 ||
93
8
# endif
94
8
        ERR_load_ASYNC_strings() == 0 ||
95
8
#endif
96
8
        ERR_load_KDF_strings() == 0 ||
97
8
        ERR_load_OSSL_STORE_strings() == 0)
98
0
        return 0;
99
8
100
8
    return 1;
101
8
}