Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | #include <openssl/err.h> | - |
12 | #include <openssl/pkcs12err.h> | - |
13 | | - |
14 | #ifndef OPENSSL_NO_ERR | - |
15 | | - |
16 | static const ERR_STRING_DATA PKCS12_str_functs[] = { | - |
17 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_OPENSSL_ASC2UNI, 0), "OPENSSL_asc2uni"}, | - |
18 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_OPENSSL_UNI2ASC, 0), "OPENSSL_uni2asc"}, | - |
19 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_OPENSSL_UNI2UTF8, 0), | - |
20 | "OPENSSL_uni2utf8"}, | - |
21 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_OPENSSL_UTF82UNI, 0), | - |
22 | "OPENSSL_utf82uni"}, | - |
23 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_CREATE, 0), "PKCS12_create"}, | - |
24 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_GEN_MAC, 0), "PKCS12_gen_mac"}, | - |
25 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_INIT, 0), "PKCS12_init"}, | - |
26 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_ITEM_DECRYPT_D2I, 0), | - |
27 | "PKCS12_item_decrypt_d2i"}, | - |
28 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT, 0), | - |
29 | "PKCS12_item_i2d_encrypt"}, | - |
30 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG, 0), | - |
31 | "PKCS12_item_pack_safebag"}, | - |
32 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_KEY_GEN_ASC, 0), | - |
33 | "PKCS12_key_gen_asc"}, | - |
34 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_KEY_GEN_UNI, 0), | - |
35 | "PKCS12_key_gen_uni"}, | - |
36 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_KEY_GEN_UTF8, 0), | - |
37 | "PKCS12_key_gen_utf8"}, | - |
38 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_NEWPASS, 0), "PKCS12_newpass"}, | - |
39 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_PACK_P7DATA, 0), | - |
40 | "PKCS12_pack_p7data"}, | - |
41 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_PACK_P7ENCDATA, 0), | - |
42 | "PKCS12_pack_p7encdata"}, | - |
43 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_PARSE, 0), "PKCS12_parse"}, | - |
44 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_PBE_CRYPT, 0), | - |
45 | "PKCS12_pbe_crypt"}, | - |
46 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_PBE_KEYIVGEN, 0), | - |
47 | "PKCS12_PBE_keyivgen"}, | - |
48 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_SAFEBAG_CREATE0_P8INF, 0), | - |
49 | "PKCS12_SAFEBAG_create0_p8inf"}, | - |
50 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8, 0), | - |
51 | "PKCS12_SAFEBAG_create0_pkcs8"}, | - |
52 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_SAFEBAG_CREATE_PKCS8_ENCRYPT, 0), | - |
53 | "PKCS12_SAFEBAG_create_pkcs8_encrypt"}, | - |
54 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_SETUP_MAC, 0), | - |
55 | "PKCS12_setup_mac"}, | - |
56 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_SET_MAC, 0), "PKCS12_set_mac"}, | - |
57 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_UNPACK_AUTHSAFES, 0), | - |
58 | "PKCS12_unpack_authsafes"}, | - |
59 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_UNPACK_P7DATA, 0), | - |
60 | "PKCS12_unpack_p7data"}, | - |
61 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS12_VERIFY_MAC, 0), | - |
62 | "PKCS12_verify_mac"}, | - |
63 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS8_ENCRYPT, 0), "PKCS8_encrypt"}, | - |
64 | {ERR_PACK(ERR_LIB_PKCS12, PKCS12_F_PKCS8_SET0_PBE, 0), "PKCS8_set0_pbe"}, | - |
65 | {0, NULL} | - |
66 | }; | - |
67 | | - |
68 | static const ERR_STRING_DATA PKCS12_str_reasons[] = { | - |
69 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CANT_PACK_STRUCTURE), | - |
70 | "cant pack structure"}, | - |
71 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CONTENT_TYPE_NOT_DATA), | - |
72 | "content type not data"}, | - |
73 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_DECODE_ERROR), "decode error"}, | - |
74 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCODE_ERROR), "encode error"}, | - |
75 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCRYPT_ERROR), "encrypt error"}, | - |
76 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE), | - |
77 | "error setting encrypted data type"}, | - |
78 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_ARGUMENT), | - |
79 | "invalid null argument"}, | - |
80 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_PKCS12_POINTER), | - |
81 | "invalid null pkcs12 pointer"}, | - |
82 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_IV_GEN_ERROR), "iv gen error"}, | - |
83 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_KEY_GEN_ERROR), "key gen error"}, | - |
84 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_ABSENT), "mac absent"}, | - |
85 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_GENERATION_ERROR), | - |
86 | "mac generation error"}, | - |
87 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_SETUP_ERROR), "mac setup error"}, | - |
88 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_STRING_SET_ERROR), | - |
89 | "mac string set error"}, | - |
90 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_VERIFY_FAILURE), | - |
91 | "mac verify failure"}, | - |
92 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PARSE_ERROR), "parse error"}, | - |
93 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR), | - |
94 | "pkcs12 algor cipherinit error"}, | - |
95 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_CIPHERFINAL_ERROR), | - |
96 | "pkcs12 cipherfinal error"}, | - |
97 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_PBE_CRYPT_ERROR), | - |
98 | "pkcs12 pbe crypt error"}, | - |
99 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNKNOWN_DIGEST_ALGORITHM), | - |
100 | "unknown digest algorithm"}, | - |
101 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNSUPPORTED_PKCS12_MODE), | - |
102 | "unsupported pkcs12 mode"}, | - |
103 | {0, NULL} | - |
104 | }; | - |
105 | | - |
106 | #endif | - |
107 | | - |
108 | int ERR_load_PKCS12_strings(void) | - |
109 | { | - |
110 | #ifndef OPENSSL_NO_ERR | - |
111 | if (ERR_func_error_string(PKCS12_str_functs[0].error) == NULL) {TRUE | evaluated 2074 times by 11 testsEvaluated by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| FALSE | never evaluated |
| 0-2074 |
112 | ERR_load_strings_const(PKCS12_str_functs); | - |
113 | ERR_load_strings_const(PKCS12_str_reasons); | - |
114 | }executed 2074 times by 11 tests: end of block Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
115 | #endif | - |
116 | return 1;executed 2074 times by 11 tests: return 1; Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
117 | } | - |
| | |