xref: /onnv-gate/usr/src/common/openssl/crypto/store/str_err.c (revision 2139:6243c3338933)
1*2139Sjp161948 /* crypto/store/str_err.c */
2*2139Sjp161948 /* ====================================================================
3*2139Sjp161948  * Copyright (c) 1999-2005 The OpenSSL Project.  All rights reserved.
4*2139Sjp161948  *
5*2139Sjp161948  * Redistribution and use in source and binary forms, with or without
6*2139Sjp161948  * modification, are permitted provided that the following conditions
7*2139Sjp161948  * are met:
8*2139Sjp161948  *
9*2139Sjp161948  * 1. Redistributions of source code must retain the above copyright
10*2139Sjp161948  *    notice, this list of conditions and the following disclaimer.
11*2139Sjp161948  *
12*2139Sjp161948  * 2. Redistributions in binary form must reproduce the above copyright
13*2139Sjp161948  *    notice, this list of conditions and the following disclaimer in
14*2139Sjp161948  *    the documentation and/or other materials provided with the
15*2139Sjp161948  *    distribution.
16*2139Sjp161948  *
17*2139Sjp161948  * 3. All advertising materials mentioning features or use of this
18*2139Sjp161948  *    software must display the following acknowledgment:
19*2139Sjp161948  *    "This product includes software developed by the OpenSSL Project
20*2139Sjp161948  *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
21*2139Sjp161948  *
22*2139Sjp161948  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
23*2139Sjp161948  *    endorse or promote products derived from this software without
24*2139Sjp161948  *    prior written permission. For written permission, please contact
25*2139Sjp161948  *    openssl-core@OpenSSL.org.
26*2139Sjp161948  *
27*2139Sjp161948  * 5. Products derived from this software may not be called "OpenSSL"
28*2139Sjp161948  *    nor may "OpenSSL" appear in their names without prior written
29*2139Sjp161948  *    permission of the OpenSSL Project.
30*2139Sjp161948  *
31*2139Sjp161948  * 6. Redistributions of any form whatsoever must retain the following
32*2139Sjp161948  *    acknowledgment:
33*2139Sjp161948  *    "This product includes software developed by the OpenSSL Project
34*2139Sjp161948  *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
35*2139Sjp161948  *
36*2139Sjp161948  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
37*2139Sjp161948  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38*2139Sjp161948  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39*2139Sjp161948  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
40*2139Sjp161948  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41*2139Sjp161948  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42*2139Sjp161948  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43*2139Sjp161948  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44*2139Sjp161948  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
45*2139Sjp161948  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46*2139Sjp161948  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
47*2139Sjp161948  * OF THE POSSIBILITY OF SUCH DAMAGE.
48*2139Sjp161948  * ====================================================================
49*2139Sjp161948  *
50*2139Sjp161948  * This product includes cryptographic software written by Eric Young
51*2139Sjp161948  * (eay@cryptsoft.com).  This product includes software written by Tim
52*2139Sjp161948  * Hudson (tjh@cryptsoft.com).
53*2139Sjp161948  *
54*2139Sjp161948  */
55*2139Sjp161948 
56*2139Sjp161948 /* NOTE: this file was auto generated by the mkerr.pl script: any changes
57*2139Sjp161948  * made to it will be overwritten when the script next updates this file,
58*2139Sjp161948  * only reason strings will be preserved.
59*2139Sjp161948  */
60*2139Sjp161948 
61*2139Sjp161948 #include <stdio.h>
62*2139Sjp161948 #include <openssl/err.h>
63*2139Sjp161948 #include <openssl/store.h>
64*2139Sjp161948 
65*2139Sjp161948 /* BEGIN ERROR CODES */
66*2139Sjp161948 #ifndef OPENSSL_NO_ERR
67*2139Sjp161948 
68*2139Sjp161948 #define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0)
69*2139Sjp161948 #define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason)
70*2139Sjp161948 
71*2139Sjp161948 static ERR_STRING_DATA STORE_str_functs[]=
72*2139Sjp161948 	{
73*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_DELETE),	"MEM_DELETE"},
74*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_GENERATE),	"MEM_GENERATE"},
75*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_LIST_END),	"MEM_LIST_END"},
76*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_LIST_NEXT),	"MEM_LIST_NEXT"},
77*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_LIST_START),	"MEM_LIST_START"},
78*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_MODIFY),	"MEM_MODIFY"},
79*2139Sjp161948 {ERR_FUNC(STORE_F_MEM_STORE),	"MEM_STORE"},
80*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_CSTR),	"STORE_ATTR_INFO_get0_cstr"},
81*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_DN),	"STORE_ATTR_INFO_get0_dn"},
82*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_NUMBER),	"STORE_ATTR_INFO_get0_number"},
83*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR),	"STORE_ATTR_INFO_get0_sha1str"},
84*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR),	"STORE_ATTR_INFO_modify_cstr"},
85*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_DN),	"STORE_ATTR_INFO_modify_dn"},
86*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER),	"STORE_ATTR_INFO_modify_number"},
87*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR),	"STORE_ATTR_INFO_modify_sha1str"},
88*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_CSTR),	"STORE_ATTR_INFO_set_cstr"},
89*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_DN),	"STORE_ATTR_INFO_set_dn"},
90*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_NUMBER),	"STORE_ATTR_INFO_set_number"},
91*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_SHA1STR),	"STORE_ATTR_INFO_set_sha1str"},
92*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_CERTIFICATE),	"STORE_CERTIFICATE"},
93*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_CTRL),	"STORE_ctrl"},
94*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_ARBITRARY),	"STORE_delete_arbitrary"},
95*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_CERTIFICATE),	"STORE_delete_certificate"},
96*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_CRL),	"STORE_delete_crl"},
97*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_NUMBER),	"STORE_delete_number"},
98*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_PRIVATE_KEY),	"STORE_delete_private_key"},
99*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_DELETE_PUBLIC_KEY),	"STORE_delete_public_key"},
100*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GENERATE_CRL),	"STORE_generate_crl"},
101*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GENERATE_KEY),	"STORE_generate_key"},
102*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_ARBITRARY),	"STORE_get_arbitrary"},
103*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_CERTIFICATE),	"STORE_get_certificate"},
104*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_CRL),	"STORE_get_crl"},
105*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_NUMBER),	"STORE_get_number"},
106*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_PRIVATE_KEY),	"STORE_get_private_key"},
107*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_GET_PUBLIC_KEY),	"STORE_get_public_key"},
108*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_END),	"STORE_list_certificate_end"},
109*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_ENDP),	"STORE_list_certificate_endp"},
110*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_NEXT),	"STORE_list_certificate_next"},
111*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_START),	"STORE_list_certificate_start"},
112*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CRL_END),	"STORE_list_crl_end"},
113*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CRL_ENDP),	"STORE_list_crl_endp"},
114*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CRL_NEXT),	"STORE_list_crl_next"},
115*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_CRL_START),	"STORE_list_crl_start"},
116*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_END),	"STORE_list_private_key_end"},
117*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP),	"STORE_list_private_key_endp"},
118*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT),	"STORE_list_private_key_next"},
119*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_START),	"STORE_list_private_key_start"},
120*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_END),	"STORE_list_public_key_end"},
121*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP),	"STORE_list_public_key_endp"},
122*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT),	"STORE_list_public_key_next"},
123*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_START),	"STORE_list_public_key_start"},
124*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_ARBITRARY),	"STORE_modify_arbitrary"},
125*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_CERTIFICATE),	"STORE_modify_certificate"},
126*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_CRL),	"STORE_modify_crl"},
127*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_NUMBER),	"STORE_modify_number"},
128*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_PRIVATE_KEY),	"STORE_modify_private_key"},
129*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_MODIFY_PUBLIC_KEY),	"STORE_modify_public_key"},
130*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_NEW_ENGINE),	"STORE_new_engine"},
131*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_NEW_METHOD),	"STORE_new_method"},
132*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_END),	"STORE_parse_attrs_end"},
133*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_ENDP),	"STORE_parse_attrs_endp"},
134*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_NEXT),	"STORE_parse_attrs_next"},
135*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_START),	"STORE_parse_attrs_start"},
136*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_REVOKE_CERTIFICATE),	"STORE_revoke_certificate"},
137*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_REVOKE_PRIVATE_KEY),	"STORE_revoke_private_key"},
138*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_REVOKE_PUBLIC_KEY),	"STORE_revoke_public_key"},
139*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_ARBITRARY),	"STORE_store_arbitrary"},
140*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_CERTIFICATE),	"STORE_store_certificate"},
141*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_CRL),	"STORE_store_crl"},
142*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_NUMBER),	"STORE_store_number"},
143*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_PRIVATE_KEY),	"STORE_store_private_key"},
144*2139Sjp161948 {ERR_FUNC(STORE_F_STORE_STORE_PUBLIC_KEY),	"STORE_store_public_key"},
145*2139Sjp161948 {0,NULL}
146*2139Sjp161948 	};
147*2139Sjp161948 
148*2139Sjp161948 static ERR_STRING_DATA STORE_str_reasons[]=
149*2139Sjp161948 	{
150*2139Sjp161948 {ERR_REASON(STORE_R_ALREADY_HAS_A_VALUE) ,"already has a value"},
151*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_DELETING_ARBITRARY),"failed deleting arbitrary"},
152*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_DELETING_CERTIFICATE),"failed deleting certificate"},
153*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_DELETING_KEY) ,"failed deleting key"},
154*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_DELETING_NUMBER),"failed deleting number"},
155*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GENERATING_CRL),"failed generating crl"},
156*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GENERATING_KEY),"failed generating key"},
157*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GETTING_ARBITRARY),"failed getting arbitrary"},
158*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GETTING_CERTIFICATE),"failed getting certificate"},
159*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GETTING_KEY)  ,"failed getting key"},
160*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_GETTING_NUMBER),"failed getting number"},
161*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_LISTING_CERTIFICATES),"failed listing certificates"},
162*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_LISTING_KEYS) ,"failed listing keys"},
163*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_ARBITRARY),"failed modifying arbitrary"},
164*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_CERTIFICATE),"failed modifying certificate"},
165*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_CRL),"failed modifying crl"},
166*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_NUMBER),"failed modifying number"},
167*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_PRIVATE_KEY),"failed modifying private key"},
168*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_MODIFYING_PUBLIC_KEY),"failed modifying public key"},
169*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_REVOKING_CERTIFICATE),"failed revoking certificate"},
170*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_REVOKING_KEY) ,"failed revoking key"},
171*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_STORING_ARBITRARY),"failed storing arbitrary"},
172*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_STORING_CERTIFICATE),"failed storing certificate"},
173*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_STORING_KEY)  ,"failed storing key"},
174*2139Sjp161948 {ERR_REASON(STORE_R_FAILED_STORING_NUMBER),"failed storing number"},
175*2139Sjp161948 {ERR_REASON(STORE_R_NOT_IMPLEMENTED)     ,"not implemented"},
176*2139Sjp161948 {ERR_REASON(STORE_R_NO_CONTROL_FUNCTION) ,"no control function"},
177*2139Sjp161948 {ERR_REASON(STORE_R_NO_DELETE_ARBITRARY_FUNCTION),"no delete arbitrary function"},
178*2139Sjp161948 {ERR_REASON(STORE_R_NO_DELETE_NUMBER_FUNCTION),"no delete number function"},
179*2139Sjp161948 {ERR_REASON(STORE_R_NO_DELETE_OBJECT_FUNCTION),"no delete object function"},
180*2139Sjp161948 {ERR_REASON(STORE_R_NO_GENERATE_CRL_FUNCTION),"no generate crl function"},
181*2139Sjp161948 {ERR_REASON(STORE_R_NO_GENERATE_OBJECT_FUNCTION),"no generate object function"},
182*2139Sjp161948 {ERR_REASON(STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION),"no get object arbitrary function"},
183*2139Sjp161948 {ERR_REASON(STORE_R_NO_GET_OBJECT_FUNCTION),"no get object function"},
184*2139Sjp161948 {ERR_REASON(STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION),"no get object number function"},
185*2139Sjp161948 {ERR_REASON(STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION),"no list object endp function"},
186*2139Sjp161948 {ERR_REASON(STORE_R_NO_LIST_OBJECT_END_FUNCTION),"no list object end function"},
187*2139Sjp161948 {ERR_REASON(STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION),"no list object next function"},
188*2139Sjp161948 {ERR_REASON(STORE_R_NO_LIST_OBJECT_START_FUNCTION),"no list object start function"},
189*2139Sjp161948 {ERR_REASON(STORE_R_NO_MODIFY_OBJECT_FUNCTION),"no modify object function"},
190*2139Sjp161948 {ERR_REASON(STORE_R_NO_REVOKE_OBJECT_FUNCTION),"no revoke object function"},
191*2139Sjp161948 {ERR_REASON(STORE_R_NO_STORE)            ,"no store"},
192*2139Sjp161948 {ERR_REASON(STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION),"no store object arbitrary function"},
193*2139Sjp161948 {ERR_REASON(STORE_R_NO_STORE_OBJECT_FUNCTION),"no store object function"},
194*2139Sjp161948 {ERR_REASON(STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION),"no store object number function"},
195*2139Sjp161948 {ERR_REASON(STORE_R_NO_VALUE)            ,"no value"},
196*2139Sjp161948 {0,NULL}
197*2139Sjp161948 	};
198*2139Sjp161948 
199*2139Sjp161948 #endif
200*2139Sjp161948 
ERR_load_STORE_strings(void)201*2139Sjp161948 void ERR_load_STORE_strings(void)
202*2139Sjp161948 	{
203*2139Sjp161948 	static int init=1;
204*2139Sjp161948 
205*2139Sjp161948 	if (init)
206*2139Sjp161948 		{
207*2139Sjp161948 		init=0;
208*2139Sjp161948 #ifndef OPENSSL_NO_ERR
209*2139Sjp161948 		ERR_load_strings(0,STORE_str_functs);
210*2139Sjp161948 		ERR_load_strings(0,STORE_str_reasons);
211*2139Sjp161948 #endif
212*2139Sjp161948 
213*2139Sjp161948 		}
214*2139Sjp161948 	}
215