os/ossrv/ssl/libcrypto/src/crypto/store/str_err.c
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ssl/libcrypto/src/crypto/store/str_err.c	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,211 @@
     1.4 +/* crypto/store/str_err.c */
     1.5 +/* ====================================================================
     1.6 + * Copyright (c) 1999-2005 The OpenSSL Project.  All rights reserved.
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + *
    1.12 + * 1. Redistributions of source code must retain the above copyright
    1.13 + *    notice, this list of conditions and the following disclaimer. 
    1.14 + *
    1.15 + * 2. Redistributions in binary form must reproduce the above copyright
    1.16 + *    notice, this list of conditions and the following disclaimer in
    1.17 + *    the documentation and/or other materials provided with the
    1.18 + *    distribution.
    1.19 + *
    1.20 + * 3. All advertising materials mentioning features or use of this
    1.21 + *    software must display the following acknowledgment:
    1.22 + *    "This product includes software developed by the OpenSSL Project
    1.23 + *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
    1.24 + *
    1.25 + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
    1.26 + *    endorse or promote products derived from this software without
    1.27 + *    prior written permission. For written permission, please contact
    1.28 + *    openssl-core@OpenSSL.org.
    1.29 + *
    1.30 + * 5. Products derived from this software may not be called "OpenSSL"
    1.31 + *    nor may "OpenSSL" appear in their names without prior written
    1.32 + *    permission of the OpenSSL Project.
    1.33 + *
    1.34 + * 6. Redistributions of any form whatsoever must retain the following
    1.35 + *    acknowledgment:
    1.36 + *    "This product includes software developed by the OpenSSL Project
    1.37 + *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
    1.38 + *
    1.39 + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
    1.40 + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.41 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    1.42 + * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
    1.43 + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.44 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    1.45 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    1.46 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.47 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
    1.48 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.49 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
    1.50 + * OF THE POSSIBILITY OF SUCH DAMAGE.
    1.51 + * ====================================================================
    1.52 + *
    1.53 + * This product includes cryptographic software written by Eric Young
    1.54 + * (eay@cryptsoft.com).  This product includes software written by Tim
    1.55 + * Hudson (tjh@cryptsoft.com).
    1.56 + *
    1.57 + */
    1.58 +
    1.59 +/* NOTE: this file was auto generated by the mkerr.pl script: any changes
    1.60 + * made to it will be overwritten when the script next updates this file,
    1.61 + * only reason strings will be preserved.
    1.62 + */
    1.63 +
    1.64 +#include <stdio.h>
    1.65 +#include <openssl/err.h>
    1.66 +#include <openssl/store.h>
    1.67 +
    1.68 +/* BEGIN ERROR CODES */
    1.69 +#ifndef OPENSSL_NO_ERR
    1.70 +
    1.71 +#define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0)
    1.72 +#define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason)
    1.73 +
    1.74 +static ERR_STRING_DATA STORE_str_functs[]=
    1.75 +	{
    1.76 +{ERR_FUNC(STORE_F_MEM_DELETE),	"MEM_DELETE"},
    1.77 +{ERR_FUNC(STORE_F_MEM_GENERATE),	"MEM_GENERATE"},
    1.78 +{ERR_FUNC(STORE_F_MEM_LIST_END),	"MEM_LIST_END"},
    1.79 +{ERR_FUNC(STORE_F_MEM_LIST_NEXT),	"MEM_LIST_NEXT"},
    1.80 +{ERR_FUNC(STORE_F_MEM_LIST_START),	"MEM_LIST_START"},
    1.81 +{ERR_FUNC(STORE_F_MEM_MODIFY),	"MEM_MODIFY"},
    1.82 +{ERR_FUNC(STORE_F_MEM_STORE),	"MEM_STORE"},
    1.83 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_CSTR),	"STORE_ATTR_INFO_get0_cstr"},
    1.84 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_DN),	"STORE_ATTR_INFO_get0_dn"},
    1.85 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_NUMBER),	"STORE_ATTR_INFO_get0_number"},
    1.86 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR),	"STORE_ATTR_INFO_get0_sha1str"},
    1.87 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR),	"STORE_ATTR_INFO_modify_cstr"},
    1.88 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_DN),	"STORE_ATTR_INFO_modify_dn"},
    1.89 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER),	"STORE_ATTR_INFO_modify_number"},
    1.90 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR),	"STORE_ATTR_INFO_modify_sha1str"},
    1.91 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_CSTR),	"STORE_ATTR_INFO_set_cstr"},
    1.92 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_DN),	"STORE_ATTR_INFO_set_dn"},
    1.93 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_NUMBER),	"STORE_ATTR_INFO_set_number"},
    1.94 +{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_SHA1STR),	"STORE_ATTR_INFO_set_sha1str"},
    1.95 +{ERR_FUNC(STORE_F_STORE_CERTIFICATE),	"STORE_CERTIFICATE"},
    1.96 +{ERR_FUNC(STORE_F_STORE_CTRL),	"STORE_ctrl"},
    1.97 +{ERR_FUNC(STORE_F_STORE_DELETE_ARBITRARY),	"STORE_delete_arbitrary"},
    1.98 +{ERR_FUNC(STORE_F_STORE_DELETE_CERTIFICATE),	"STORE_delete_certificate"},
    1.99 +{ERR_FUNC(STORE_F_STORE_DELETE_CRL),	"STORE_delete_crl"},
   1.100 +{ERR_FUNC(STORE_F_STORE_DELETE_NUMBER),	"STORE_delete_number"},
   1.101 +{ERR_FUNC(STORE_F_STORE_DELETE_PRIVATE_KEY),	"STORE_delete_private_key"},
   1.102 +{ERR_FUNC(STORE_F_STORE_DELETE_PUBLIC_KEY),	"STORE_delete_public_key"},
   1.103 +{ERR_FUNC(STORE_F_STORE_GENERATE_CRL),	"STORE_generate_crl"},
   1.104 +{ERR_FUNC(STORE_F_STORE_GENERATE_KEY),	"STORE_generate_key"},
   1.105 +{ERR_FUNC(STORE_F_STORE_GET_ARBITRARY),	"STORE_get_arbitrary"},
   1.106 +{ERR_FUNC(STORE_F_STORE_GET_CERTIFICATE),	"STORE_get_certificate"},
   1.107 +{ERR_FUNC(STORE_F_STORE_GET_CRL),	"STORE_get_crl"},
   1.108 +{ERR_FUNC(STORE_F_STORE_GET_NUMBER),	"STORE_get_number"},
   1.109 +{ERR_FUNC(STORE_F_STORE_GET_PRIVATE_KEY),	"STORE_get_private_key"},
   1.110 +{ERR_FUNC(STORE_F_STORE_GET_PUBLIC_KEY),	"STORE_get_public_key"},
   1.111 +{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_END),	"STORE_list_certificate_end"},
   1.112 +{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_ENDP),	"STORE_list_certificate_endp"},
   1.113 +{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_NEXT),	"STORE_list_certificate_next"},
   1.114 +{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_START),	"STORE_list_certificate_start"},
   1.115 +{ERR_FUNC(STORE_F_STORE_LIST_CRL_END),	"STORE_list_crl_end"},
   1.116 +{ERR_FUNC(STORE_F_STORE_LIST_CRL_ENDP),	"STORE_list_crl_endp"},
   1.117 +{ERR_FUNC(STORE_F_STORE_LIST_CRL_NEXT),	"STORE_list_crl_next"},
   1.118 +{ERR_FUNC(STORE_F_STORE_LIST_CRL_START),	"STORE_list_crl_start"},
   1.119 +{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_END),	"STORE_list_private_key_end"},
   1.120 +{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP),	"STORE_list_private_key_endp"},
   1.121 +{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT),	"STORE_list_private_key_next"},
   1.122 +{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_START),	"STORE_list_private_key_start"},
   1.123 +{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_END),	"STORE_list_public_key_end"},
   1.124 +{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP),	"STORE_list_public_key_endp"},
   1.125 +{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT),	"STORE_list_public_key_next"},
   1.126 +{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_START),	"STORE_list_public_key_start"},
   1.127 +{ERR_FUNC(STORE_F_STORE_MODIFY_ARBITRARY),	"STORE_modify_arbitrary"},
   1.128 +{ERR_FUNC(STORE_F_STORE_MODIFY_CERTIFICATE),	"STORE_modify_certificate"},
   1.129 +{ERR_FUNC(STORE_F_STORE_MODIFY_CRL),	"STORE_modify_crl"},
   1.130 +{ERR_FUNC(STORE_F_STORE_MODIFY_NUMBER),	"STORE_modify_number"},
   1.131 +{ERR_FUNC(STORE_F_STORE_MODIFY_PRIVATE_KEY),	"STORE_modify_private_key"},
   1.132 +{ERR_FUNC(STORE_F_STORE_MODIFY_PUBLIC_KEY),	"STORE_modify_public_key"},
   1.133 +{ERR_FUNC(STORE_F_STORE_NEW_ENGINE),	"STORE_new_engine"},
   1.134 +{ERR_FUNC(STORE_F_STORE_NEW_METHOD),	"STORE_new_method"},
   1.135 +{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_END),	"STORE_parse_attrs_end"},
   1.136 +{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_ENDP),	"STORE_parse_attrs_endp"},
   1.137 +{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_NEXT),	"STORE_parse_attrs_next"},
   1.138 +{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_START),	"STORE_parse_attrs_start"},
   1.139 +{ERR_FUNC(STORE_F_STORE_REVOKE_CERTIFICATE),	"STORE_revoke_certificate"},
   1.140 +{ERR_FUNC(STORE_F_STORE_REVOKE_PRIVATE_KEY),	"STORE_revoke_private_key"},
   1.141 +{ERR_FUNC(STORE_F_STORE_REVOKE_PUBLIC_KEY),	"STORE_revoke_public_key"},
   1.142 +{ERR_FUNC(STORE_F_STORE_STORE_ARBITRARY),	"STORE_store_arbitrary"},
   1.143 +{ERR_FUNC(STORE_F_STORE_STORE_CERTIFICATE),	"STORE_store_certificate"},
   1.144 +{ERR_FUNC(STORE_F_STORE_STORE_CRL),	"STORE_store_crl"},
   1.145 +{ERR_FUNC(STORE_F_STORE_STORE_NUMBER),	"STORE_store_number"},
   1.146 +{ERR_FUNC(STORE_F_STORE_STORE_PRIVATE_KEY),	"STORE_store_private_key"},
   1.147 +{ERR_FUNC(STORE_F_STORE_STORE_PUBLIC_KEY),	"STORE_store_public_key"},
   1.148 +{0,NULL}
   1.149 +	};
   1.150 +
   1.151 +static ERR_STRING_DATA STORE_str_reasons[]=
   1.152 +	{
   1.153 +{ERR_REASON(STORE_R_ALREADY_HAS_A_VALUE) ,"already has a value"},
   1.154 +{ERR_REASON(STORE_R_FAILED_DELETING_ARBITRARY),"failed deleting arbitrary"},
   1.155 +{ERR_REASON(STORE_R_FAILED_DELETING_CERTIFICATE),"failed deleting certificate"},
   1.156 +{ERR_REASON(STORE_R_FAILED_DELETING_KEY) ,"failed deleting key"},
   1.157 +{ERR_REASON(STORE_R_FAILED_DELETING_NUMBER),"failed deleting number"},
   1.158 +{ERR_REASON(STORE_R_FAILED_GENERATING_CRL),"failed generating crl"},
   1.159 +{ERR_REASON(STORE_R_FAILED_GENERATING_KEY),"failed generating key"},
   1.160 +{ERR_REASON(STORE_R_FAILED_GETTING_ARBITRARY),"failed getting arbitrary"},
   1.161 +{ERR_REASON(STORE_R_FAILED_GETTING_CERTIFICATE),"failed getting certificate"},
   1.162 +{ERR_REASON(STORE_R_FAILED_GETTING_KEY)  ,"failed getting key"},
   1.163 +{ERR_REASON(STORE_R_FAILED_GETTING_NUMBER),"failed getting number"},
   1.164 +{ERR_REASON(STORE_R_FAILED_LISTING_CERTIFICATES),"failed listing certificates"},
   1.165 +{ERR_REASON(STORE_R_FAILED_LISTING_KEYS) ,"failed listing keys"},
   1.166 +{ERR_REASON(STORE_R_FAILED_MODIFYING_ARBITRARY),"failed modifying arbitrary"},
   1.167 +{ERR_REASON(STORE_R_FAILED_MODIFYING_CERTIFICATE),"failed modifying certificate"},
   1.168 +{ERR_REASON(STORE_R_FAILED_MODIFYING_CRL),"failed modifying crl"},
   1.169 +{ERR_REASON(STORE_R_FAILED_MODIFYING_NUMBER),"failed modifying number"},
   1.170 +{ERR_REASON(STORE_R_FAILED_MODIFYING_PRIVATE_KEY),"failed modifying private key"},
   1.171 +{ERR_REASON(STORE_R_FAILED_MODIFYING_PUBLIC_KEY),"failed modifying public key"},
   1.172 +{ERR_REASON(STORE_R_FAILED_REVOKING_CERTIFICATE),"failed revoking certificate"},
   1.173 +{ERR_REASON(STORE_R_FAILED_REVOKING_KEY) ,"failed revoking key"},
   1.174 +{ERR_REASON(STORE_R_FAILED_STORING_ARBITRARY),"failed storing arbitrary"},
   1.175 +{ERR_REASON(STORE_R_FAILED_STORING_CERTIFICATE),"failed storing certificate"},
   1.176 +{ERR_REASON(STORE_R_FAILED_STORING_KEY)  ,"failed storing key"},
   1.177 +{ERR_REASON(STORE_R_FAILED_STORING_NUMBER),"failed storing number"},
   1.178 +{ERR_REASON(STORE_R_NOT_IMPLEMENTED)     ,"not implemented"},
   1.179 +{ERR_REASON(STORE_R_NO_CONTROL_FUNCTION) ,"no control function"},
   1.180 +{ERR_REASON(STORE_R_NO_DELETE_ARBITRARY_FUNCTION),"no delete arbitrary function"},
   1.181 +{ERR_REASON(STORE_R_NO_DELETE_NUMBER_FUNCTION),"no delete number function"},
   1.182 +{ERR_REASON(STORE_R_NO_DELETE_OBJECT_FUNCTION),"no delete object function"},
   1.183 +{ERR_REASON(STORE_R_NO_GENERATE_CRL_FUNCTION),"no generate crl function"},
   1.184 +{ERR_REASON(STORE_R_NO_GENERATE_OBJECT_FUNCTION),"no generate object function"},
   1.185 +{ERR_REASON(STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION),"no get object arbitrary function"},
   1.186 +{ERR_REASON(STORE_R_NO_GET_OBJECT_FUNCTION),"no get object function"},
   1.187 +{ERR_REASON(STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION),"no get object number function"},
   1.188 +{ERR_REASON(STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION),"no list object endp function"},
   1.189 +{ERR_REASON(STORE_R_NO_LIST_OBJECT_END_FUNCTION),"no list object end function"},
   1.190 +{ERR_REASON(STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION),"no list object next function"},
   1.191 +{ERR_REASON(STORE_R_NO_LIST_OBJECT_START_FUNCTION),"no list object start function"},
   1.192 +{ERR_REASON(STORE_R_NO_MODIFY_OBJECT_FUNCTION),"no modify object function"},
   1.193 +{ERR_REASON(STORE_R_NO_REVOKE_OBJECT_FUNCTION),"no revoke object function"},
   1.194 +{ERR_REASON(STORE_R_NO_STORE)            ,"no store"},
   1.195 +{ERR_REASON(STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION),"no store object arbitrary function"},
   1.196 +{ERR_REASON(STORE_R_NO_STORE_OBJECT_FUNCTION),"no store object function"},
   1.197 +{ERR_REASON(STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION),"no store object number function"},
   1.198 +{ERR_REASON(STORE_R_NO_VALUE)            ,"no value"},
   1.199 +{0,NULL}
   1.200 +	};
   1.201 +
   1.202 +#endif
   1.203 +
   1.204 +EXPORT_C void ERR_load_STORE_strings(void)
   1.205 +	{
   1.206 +#ifndef OPENSSL_NO_ERR
   1.207 +
   1.208 +	if (ERR_func_error_string(STORE_str_functs[0].error) == NULL)
   1.209 +		{
   1.210 +		ERR_load_strings(0,STORE_str_functs);
   1.211 +		ERR_load_strings(0,STORE_str_reasons);
   1.212 +		}
   1.213 +#endif
   1.214 +	}