Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | #include <stdio.h> | - |
62 | | - |
63 | #include <openssl/opensslconf.h> | - |
64 | | - |
65 | #include <openssl/err.h> | - |
66 | #include <openssl/engine.h> | - |
67 | | - |
68 | | - |
69 | #ifndef OPENSSL_NO_ERR | - |
70 | | - |
71 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_ENGINE,func,0) | - |
72 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_ENGINE,0,reason) | - |
73 | | - |
74 | static ERR_STRING_DATA ENGINE_str_functs[] = { | - |
75 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, | - |
76 | {0, NULL} | - |
77 | }; | - |
78 | | - |
79 | static ERR_STRING_DATA ENGINE_str_reasons[] = { | - |
80 | {ERR_REASON(ENGINE_R_ALREADY_LOADED) , "already loaded"}, | - |
81 | {ERR_REASON(ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER), "argument is not a number"}, | - |
82 | {ERR_REASON(ENGINE_R_CMD_NOT_EXECUTABLE) , "cmd not executable"}, | - |
83 | {ERR_REASON(ENGINE_R_COMMAND_TAKES_INPUT), "command takes input"}, | - |
84 | {ERR_REASON(ENGINE_R_COMMAND_TAKES_NO_INPUT), "command takes no input"}, | - |
85 | {ERR_REASON(ENGINE_R_CONFLICTING_ENGINE_ID), "conflicting engine id"}, | - |
86 | {ERR_REASON(ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED), "ctrl command not implemented"}, | - |
87 | {ERR_REASON(ENGINE_R_DH_NOT_IMPLEMENTED) , "dh not implemented"}, | - |
88 | {ERR_REASON(ENGINE_R_DSA_NOT_IMPLEMENTED), "dsa not implemented"}, | - |
89 | {ERR_REASON(ENGINE_R_DSO_FAILURE) , "DSO failure"}, | - |
90 | {ERR_REASON(ENGINE_R_DSO_NOT_FOUND) , "dso not found"}, | - |
91 | {ERR_REASON(ENGINE_R_ENGINES_SECTION_ERROR), "engines section error"}, | - |
92 | {ERR_REASON(ENGINE_R_ENGINE_CONFIGURATION_ERROR), "engine configuration error"}, | - |
93 | {ERR_REASON(ENGINE_R_ENGINE_IS_NOT_IN_LIST), "engine is not in the list"}, | - |
94 | {ERR_REASON(ENGINE_R_ENGINE_SECTION_ERROR), "engine section error"}, | - |
95 | {ERR_REASON(ENGINE_R_FAILED_LOADING_PRIVATE_KEY), "failed loading private key"}, | - |
96 | {ERR_REASON(ENGINE_R_FAILED_LOADING_PUBLIC_KEY), "failed loading public key"}, | - |
97 | {ERR_REASON(ENGINE_R_FINISH_FAILED) , "finish failed"}, | - |
98 | {ERR_REASON(ENGINE_R_GET_HANDLE_FAILED) , "could not obtain hardware handle"}, | - |
99 | {ERR_REASON(ENGINE_R_ID_OR_NAME_MISSING) , "'id' or 'name' missing"}, | - |
100 | {ERR_REASON(ENGINE_R_INIT_FAILED) , "init failed"}, | - |
101 | {ERR_REASON(ENGINE_R_INTERNAL_LIST_ERROR), "internal list error"}, | - |
102 | {ERR_REASON(ENGINE_R_INVALID_ARGUMENT) , "invalid argument"}, | - |
103 | {ERR_REASON(ENGINE_R_INVALID_CMD_NAME) , "invalid cmd name"}, | - |
104 | {ERR_REASON(ENGINE_R_INVALID_CMD_NUMBER) , "invalid cmd number"}, | - |
105 | {ERR_REASON(ENGINE_R_INVALID_INIT_VALUE) , "invalid init value"}, | - |
106 | {ERR_REASON(ENGINE_R_INVALID_STRING) , "invalid string"}, | - |
107 | {ERR_REASON(ENGINE_R_NOT_INITIALISED) , "not initialised"}, | - |
108 | {ERR_REASON(ENGINE_R_NOT_LOADED) , "not loaded"}, | - |
109 | {ERR_REASON(ENGINE_R_NO_CONTROL_FUNCTION), "no control function"}, | - |
110 | {ERR_REASON(ENGINE_R_NO_INDEX) , "no index"}, | - |
111 | {ERR_REASON(ENGINE_R_NO_LOAD_FUNCTION) , "no load function"}, | - |
112 | {ERR_REASON(ENGINE_R_NO_REFERENCE) , "no reference"}, | - |
113 | {ERR_REASON(ENGINE_R_NO_SUCH_ENGINE) , "no such engine"}, | - |
114 | {ERR_REASON(ENGINE_R_NO_UNLOAD_FUNCTION) , "no unload function"}, | - |
115 | {ERR_REASON(ENGINE_R_PROVIDE_PARAMETERS) , "provide parameters"}, | - |
116 | {ERR_REASON(ENGINE_R_RSA_NOT_IMPLEMENTED), "rsa not implemented"}, | - |
117 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_CIPHER), "unimplemented cipher"}, | - |
118 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_DIGEST), "unimplemented digest"}, | - |
119 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD), "unimplemented public key method"}, | - |
120 | {ERR_REASON(ENGINE_R_VERSION_INCOMPATIBILITY), "version incompatibility"}, | - |
121 | {0, NULL} | - |
122 | }; | - |
123 | | - |
124 | #endif | - |
125 | | - |
126 | void | - |
127 | ERR_load_ENGINE_strings(void) | - |
128 | { | - |
129 | #ifndef OPENSSL_NO_ERR | - |
130 | if (ERR_func_error_string(ENGINE_str_functs[0].error) == NULL) {TRUE | evaluated 290 times by 31 testsEvaluated by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| FALSE | never evaluated |
| 0-290 |
131 | ERR_load_strings(0, ENGINE_str_functs); | - |
132 | ERR_load_strings(0, ENGINE_str_reasons); | - |
133 | }executed 290 times by 31 tests: end of block Executed by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
134 | #endif | - |
135 | }executed 290 times by 31 tests: end of block Executed by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
| | |