1 | /*
|
---|
2 | * Generated by util/mkerr.pl DO NOT EDIT
|
---|
3 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Licensed under the OpenSSL license (the "License"). You may not use
|
---|
6 | * this file except in compliance with the License. You can obtain a copy
|
---|
7 | * in the file LICENSE in the source distribution or at
|
---|
8 | * https://www.openssl.org/source/license.html
|
---|
9 | */
|
---|
10 |
|
---|
11 | #include <openssl/err.h>
|
---|
12 | #include <openssl/storeerr.h>
|
---|
13 |
|
---|
14 | #ifndef OPENSSL_NO_ERR
|
---|
15 |
|
---|
16 | static const ERR_STRING_DATA OSSL_STORE_str_functs[] = {
|
---|
17 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_CTRL, 0), "file_ctrl"},
|
---|
18 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_FIND, 0), "file_find"},
|
---|
19 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_GET_PASS, 0),
|
---|
20 | "file_get_pass"},
|
---|
21 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_LOAD, 0), "file_load"},
|
---|
22 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_LOAD_TRY_DECODE, 0),
|
---|
23 | "file_load_try_decode"},
|
---|
24 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_NAME_TO_URI, 0),
|
---|
25 | "file_name_to_uri"},
|
---|
26 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_OPEN, 0), "file_open"},
|
---|
27 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO, 0),
|
---|
28 | "ossl_store_attach_pem_bio"},
|
---|
29 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_EXPECT, 0),
|
---|
30 | "OSSL_STORE_expect"},
|
---|
31 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT, 0),
|
---|
32 | "ossl_store_file_attach_pem_bio_int"},
|
---|
33 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_FIND, 0),
|
---|
34 | "OSSL_STORE_find"},
|
---|
35 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT, 0),
|
---|
36 | "ossl_store_get0_loader_int"},
|
---|
37 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT, 0),
|
---|
38 | "OSSL_STORE_INFO_get1_CERT"},
|
---|
39 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL, 0),
|
---|
40 | "OSSL_STORE_INFO_get1_CRL"},
|
---|
41 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME, 0),
|
---|
42 | "OSSL_STORE_INFO_get1_NAME"},
|
---|
43 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION, 0),
|
---|
44 | "OSSL_STORE_INFO_get1_NAME_description"},
|
---|
45 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS, 0),
|
---|
46 | "OSSL_STORE_INFO_get1_PARAMS"},
|
---|
47 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY, 0),
|
---|
48 | "OSSL_STORE_INFO_get1_PKEY"},
|
---|
49 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT, 0),
|
---|
50 | "OSSL_STORE_INFO_new_CERT"},
|
---|
51 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL, 0),
|
---|
52 | "OSSL_STORE_INFO_new_CRL"},
|
---|
53 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED, 0),
|
---|
54 | "ossl_store_info_new_EMBEDDED"},
|
---|
55 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME, 0),
|
---|
56 | "OSSL_STORE_INFO_new_NAME"},
|
---|
57 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS, 0),
|
---|
58 | "OSSL_STORE_INFO_new_PARAMS"},
|
---|
59 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY, 0),
|
---|
60 | "OSSL_STORE_INFO_new_PKEY"},
|
---|
61 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION, 0),
|
---|
62 | "OSSL_STORE_INFO_set0_NAME_description"},
|
---|
63 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INIT_ONCE, 0),
|
---|
64 | "ossl_store_init_once"},
|
---|
65 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_LOADER_NEW, 0),
|
---|
66 | "OSSL_STORE_LOADER_new"},
|
---|
67 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_OPEN, 0),
|
---|
68 | "OSSL_STORE_open"},
|
---|
69 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_OPEN_INT, 0), ""},
|
---|
70 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT, 0),
|
---|
71 | "ossl_store_register_loader_int"},
|
---|
72 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS, 0),
|
---|
73 | "OSSL_STORE_SEARCH_by_alias"},
|
---|
74 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL, 0),
|
---|
75 | "OSSL_STORE_SEARCH_by_issuer_serial"},
|
---|
76 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT, 0),
|
---|
77 | "OSSL_STORE_SEARCH_by_key_fingerprint"},
|
---|
78 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME, 0),
|
---|
79 | "OSSL_STORE_SEARCH_by_name"},
|
---|
80 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT, 0),
|
---|
81 | "ossl_store_unregister_loader_int"},
|
---|
82 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_TRY_DECODE_PARAMS, 0),
|
---|
83 | "try_decode_params"},
|
---|
84 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_TRY_DECODE_PKCS12, 0),
|
---|
85 | "try_decode_PKCS12"},
|
---|
86 | {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED, 0),
|
---|
87 | "try_decode_PKCS8Encrypted"},
|
---|
88 | {0, NULL}
|
---|
89 | };
|
---|
90 |
|
---|
91 | static const ERR_STRING_DATA OSSL_STORE_str_reasons[] = {
|
---|
92 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE),
|
---|
93 | "ambiguous content type"},
|
---|
94 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_BAD_PASSWORD_READ),
|
---|
95 | "bad password read"},
|
---|
96 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC),
|
---|
97 | "error verifying pkcs12 mac"},
|
---|
98 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST),
|
---|
99 | "fingerprint size does not match digest"},
|
---|
100 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_INVALID_SCHEME),
|
---|
101 | "invalid scheme"},
|
---|
102 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_IS_NOT_A), "is not a"},
|
---|
103 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_LOADER_INCOMPLETE),
|
---|
104 | "loader incomplete"},
|
---|
105 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_LOADING_STARTED),
|
---|
106 | "loading started"},
|
---|
107 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_NOT_A_CERTIFICATE),
|
---|
108 | "not a certificate"},
|
---|
109 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_NOT_A_CRL), "not a crl"},
|
---|
110 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_NOT_A_KEY), "not a key"},
|
---|
111 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_NOT_A_NAME), "not a name"},
|
---|
112 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_NOT_PARAMETERS),
|
---|
113 | "not parameters"},
|
---|
114 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR),
|
---|
115 | "passphrase callback error"},
|
---|
116 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE),
|
---|
117 | "path must be absolute"},
|
---|
118 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES),
|
---|
119 | "search only supported for directories"},
|
---|
120 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED),
|
---|
121 | "ui process interrupted or cancelled"},
|
---|
122 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_UNREGISTERED_SCHEME),
|
---|
123 | "unregistered scheme"},
|
---|
124 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE),
|
---|
125 | "unsupported content type"},
|
---|
126 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_UNSUPPORTED_OPERATION),
|
---|
127 | "unsupported operation"},
|
---|
128 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE),
|
---|
129 | "unsupported search type"},
|
---|
130 | {ERR_PACK(ERR_LIB_OSSL_STORE, 0, OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED),
|
---|
131 | "uri authority unsupported"},
|
---|
132 | {0, NULL}
|
---|
133 | };
|
---|
134 |
|
---|
135 | #endif
|
---|
136 |
|
---|
137 | int ERR_load_OSSL_STORE_strings(void)
|
---|
138 | {
|
---|
139 | #ifndef OPENSSL_NO_ERR
|
---|
140 | if (ERR_func_error_string(OSSL_STORE_str_functs[0].error) == NULL) {
|
---|
141 | ERR_load_strings_const(OSSL_STORE_str_functs);
|
---|
142 | ERR_load_strings_const(OSSL_STORE_str_reasons);
|
---|
143 | }
|
---|
144 | #endif
|
---|
145 | return 1;
|
---|
146 | }
|
---|