sl@0: /* crypto/store/str_err.c */ sl@0: /* ==================================================================== sl@0: * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. sl@0: * sl@0: * Redistribution and use in source and binary forms, with or without sl@0: * modification, are permitted provided that the following conditions sl@0: * are met: sl@0: * sl@0: * 1. Redistributions of source code must retain the above copyright sl@0: * notice, this list of conditions and the following disclaimer. sl@0: * sl@0: * 2. Redistributions in binary form must reproduce the above copyright sl@0: * notice, this list of conditions and the following disclaimer in sl@0: * the documentation and/or other materials provided with the sl@0: * distribution. sl@0: * sl@0: * 3. All advertising materials mentioning features or use of this sl@0: * software must display the following acknowledgment: sl@0: * "This product includes software developed by the OpenSSL Project sl@0: * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" sl@0: * sl@0: * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to sl@0: * endorse or promote products derived from this software without sl@0: * prior written permission. For written permission, please contact sl@0: * openssl-core@OpenSSL.org. sl@0: * sl@0: * 5. Products derived from this software may not be called "OpenSSL" sl@0: * nor may "OpenSSL" appear in their names without prior written sl@0: * permission of the OpenSSL Project. sl@0: * sl@0: * 6. Redistributions of any form whatsoever must retain the following sl@0: * acknowledgment: sl@0: * "This product includes software developed by the OpenSSL Project sl@0: * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" sl@0: * sl@0: * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY sl@0: * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE sl@0: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR sl@0: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR sl@0: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, sl@0: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT sl@0: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; sl@0: * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) sl@0: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, sl@0: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) sl@0: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED sl@0: * OF THE POSSIBILITY OF SUCH DAMAGE. sl@0: * ==================================================================== sl@0: * sl@0: * This product includes cryptographic software written by Eric Young sl@0: * (eay@cryptsoft.com). This product includes software written by Tim sl@0: * Hudson (tjh@cryptsoft.com). sl@0: * sl@0: */ sl@0: sl@0: /* NOTE: this file was auto generated by the mkerr.pl script: any changes sl@0: * made to it will be overwritten when the script next updates this file, sl@0: * only reason strings will be preserved. sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /* BEGIN ERROR CODES */ sl@0: #ifndef OPENSSL_NO_ERR sl@0: sl@0: #define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0) sl@0: #define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason) sl@0: sl@0: static ERR_STRING_DATA STORE_str_functs[]= sl@0: { sl@0: {ERR_FUNC(STORE_F_MEM_DELETE), "MEM_DELETE"}, sl@0: {ERR_FUNC(STORE_F_MEM_GENERATE), "MEM_GENERATE"}, sl@0: {ERR_FUNC(STORE_F_MEM_LIST_END), "MEM_LIST_END"}, sl@0: {ERR_FUNC(STORE_F_MEM_LIST_NEXT), "MEM_LIST_NEXT"}, sl@0: {ERR_FUNC(STORE_F_MEM_LIST_START), "MEM_LIST_START"}, sl@0: {ERR_FUNC(STORE_F_MEM_MODIFY), "MEM_MODIFY"}, sl@0: {ERR_FUNC(STORE_F_MEM_STORE), "MEM_STORE"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_CSTR), "STORE_ATTR_INFO_get0_cstr"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_DN), "STORE_ATTR_INFO_get0_dn"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_NUMBER), "STORE_ATTR_INFO_get0_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR), "STORE_ATTR_INFO_get0_sha1str"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR), "STORE_ATTR_INFO_modify_cstr"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_DN), "STORE_ATTR_INFO_modify_dn"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER), "STORE_ATTR_INFO_modify_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR), "STORE_ATTR_INFO_modify_sha1str"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_CSTR), "STORE_ATTR_INFO_set_cstr"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_DN), "STORE_ATTR_INFO_set_dn"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_NUMBER), "STORE_ATTR_INFO_set_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_SHA1STR), "STORE_ATTR_INFO_set_sha1str"}, sl@0: {ERR_FUNC(STORE_F_STORE_CERTIFICATE), "STORE_CERTIFICATE"}, sl@0: {ERR_FUNC(STORE_F_STORE_CTRL), "STORE_ctrl"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_ARBITRARY), "STORE_delete_arbitrary"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_CERTIFICATE), "STORE_delete_certificate"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_CRL), "STORE_delete_crl"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_NUMBER), "STORE_delete_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_PRIVATE_KEY), "STORE_delete_private_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_DELETE_PUBLIC_KEY), "STORE_delete_public_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_GENERATE_CRL), "STORE_generate_crl"}, sl@0: {ERR_FUNC(STORE_F_STORE_GENERATE_KEY), "STORE_generate_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_ARBITRARY), "STORE_get_arbitrary"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_CERTIFICATE), "STORE_get_certificate"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_CRL), "STORE_get_crl"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_NUMBER), "STORE_get_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_PRIVATE_KEY), "STORE_get_private_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_GET_PUBLIC_KEY), "STORE_get_public_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_END), "STORE_list_certificate_end"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_ENDP), "STORE_list_certificate_endp"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_NEXT), "STORE_list_certificate_next"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_START), "STORE_list_certificate_start"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CRL_END), "STORE_list_crl_end"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CRL_ENDP), "STORE_list_crl_endp"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CRL_NEXT), "STORE_list_crl_next"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_CRL_START), "STORE_list_crl_start"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_END), "STORE_list_private_key_end"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP), "STORE_list_private_key_endp"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT), "STORE_list_private_key_next"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_START), "STORE_list_private_key_start"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_END), "STORE_list_public_key_end"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP), "STORE_list_public_key_endp"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT), "STORE_list_public_key_next"}, sl@0: {ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_START), "STORE_list_public_key_start"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_ARBITRARY), "STORE_modify_arbitrary"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_CERTIFICATE), "STORE_modify_certificate"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_CRL), "STORE_modify_crl"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_NUMBER), "STORE_modify_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_PRIVATE_KEY), "STORE_modify_private_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_MODIFY_PUBLIC_KEY), "STORE_modify_public_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_NEW_ENGINE), "STORE_new_engine"}, sl@0: {ERR_FUNC(STORE_F_STORE_NEW_METHOD), "STORE_new_method"}, sl@0: {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_END), "STORE_parse_attrs_end"}, sl@0: {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_ENDP), "STORE_parse_attrs_endp"}, sl@0: {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_NEXT), "STORE_parse_attrs_next"}, sl@0: {ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_START), "STORE_parse_attrs_start"}, sl@0: {ERR_FUNC(STORE_F_STORE_REVOKE_CERTIFICATE), "STORE_revoke_certificate"}, sl@0: {ERR_FUNC(STORE_F_STORE_REVOKE_PRIVATE_KEY), "STORE_revoke_private_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_REVOKE_PUBLIC_KEY), "STORE_revoke_public_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_ARBITRARY), "STORE_store_arbitrary"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_CERTIFICATE), "STORE_store_certificate"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_CRL), "STORE_store_crl"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_NUMBER), "STORE_store_number"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_PRIVATE_KEY), "STORE_store_private_key"}, sl@0: {ERR_FUNC(STORE_F_STORE_STORE_PUBLIC_KEY), "STORE_store_public_key"}, sl@0: {0,NULL} sl@0: }; sl@0: sl@0: static ERR_STRING_DATA STORE_str_reasons[]= sl@0: { sl@0: {ERR_REASON(STORE_R_ALREADY_HAS_A_VALUE) ,"already has a value"}, sl@0: {ERR_REASON(STORE_R_FAILED_DELETING_ARBITRARY),"failed deleting arbitrary"}, sl@0: {ERR_REASON(STORE_R_FAILED_DELETING_CERTIFICATE),"failed deleting certificate"}, sl@0: {ERR_REASON(STORE_R_FAILED_DELETING_KEY) ,"failed deleting key"}, sl@0: {ERR_REASON(STORE_R_FAILED_DELETING_NUMBER),"failed deleting number"}, sl@0: {ERR_REASON(STORE_R_FAILED_GENERATING_CRL),"failed generating crl"}, sl@0: {ERR_REASON(STORE_R_FAILED_GENERATING_KEY),"failed generating key"}, sl@0: {ERR_REASON(STORE_R_FAILED_GETTING_ARBITRARY),"failed getting arbitrary"}, sl@0: {ERR_REASON(STORE_R_FAILED_GETTING_CERTIFICATE),"failed getting certificate"}, sl@0: {ERR_REASON(STORE_R_FAILED_GETTING_KEY) ,"failed getting key"}, sl@0: {ERR_REASON(STORE_R_FAILED_GETTING_NUMBER),"failed getting number"}, sl@0: {ERR_REASON(STORE_R_FAILED_LISTING_CERTIFICATES),"failed listing certificates"}, sl@0: {ERR_REASON(STORE_R_FAILED_LISTING_KEYS) ,"failed listing keys"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_ARBITRARY),"failed modifying arbitrary"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_CERTIFICATE),"failed modifying certificate"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_CRL),"failed modifying crl"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_NUMBER),"failed modifying number"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_PRIVATE_KEY),"failed modifying private key"}, sl@0: {ERR_REASON(STORE_R_FAILED_MODIFYING_PUBLIC_KEY),"failed modifying public key"}, sl@0: {ERR_REASON(STORE_R_FAILED_REVOKING_CERTIFICATE),"failed revoking certificate"}, sl@0: {ERR_REASON(STORE_R_FAILED_REVOKING_KEY) ,"failed revoking key"}, sl@0: {ERR_REASON(STORE_R_FAILED_STORING_ARBITRARY),"failed storing arbitrary"}, sl@0: {ERR_REASON(STORE_R_FAILED_STORING_CERTIFICATE),"failed storing certificate"}, sl@0: {ERR_REASON(STORE_R_FAILED_STORING_KEY) ,"failed storing key"}, sl@0: {ERR_REASON(STORE_R_FAILED_STORING_NUMBER),"failed storing number"}, sl@0: {ERR_REASON(STORE_R_NOT_IMPLEMENTED) ,"not implemented"}, sl@0: {ERR_REASON(STORE_R_NO_CONTROL_FUNCTION) ,"no control function"}, sl@0: {ERR_REASON(STORE_R_NO_DELETE_ARBITRARY_FUNCTION),"no delete arbitrary function"}, sl@0: {ERR_REASON(STORE_R_NO_DELETE_NUMBER_FUNCTION),"no delete number function"}, sl@0: {ERR_REASON(STORE_R_NO_DELETE_OBJECT_FUNCTION),"no delete object function"}, sl@0: {ERR_REASON(STORE_R_NO_GENERATE_CRL_FUNCTION),"no generate crl function"}, sl@0: {ERR_REASON(STORE_R_NO_GENERATE_OBJECT_FUNCTION),"no generate object function"}, sl@0: {ERR_REASON(STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION),"no get object arbitrary function"}, sl@0: {ERR_REASON(STORE_R_NO_GET_OBJECT_FUNCTION),"no get object function"}, sl@0: {ERR_REASON(STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION),"no get object number function"}, sl@0: {ERR_REASON(STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION),"no list object endp function"}, sl@0: {ERR_REASON(STORE_R_NO_LIST_OBJECT_END_FUNCTION),"no list object end function"}, sl@0: {ERR_REASON(STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION),"no list object next function"}, sl@0: {ERR_REASON(STORE_R_NO_LIST_OBJECT_START_FUNCTION),"no list object start function"}, sl@0: {ERR_REASON(STORE_R_NO_MODIFY_OBJECT_FUNCTION),"no modify object function"}, sl@0: {ERR_REASON(STORE_R_NO_REVOKE_OBJECT_FUNCTION),"no revoke object function"}, sl@0: {ERR_REASON(STORE_R_NO_STORE) ,"no store"}, sl@0: {ERR_REASON(STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION),"no store object arbitrary function"}, sl@0: {ERR_REASON(STORE_R_NO_STORE_OBJECT_FUNCTION),"no store object function"}, sl@0: {ERR_REASON(STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION),"no store object number function"}, sl@0: {ERR_REASON(STORE_R_NO_VALUE) ,"no value"}, sl@0: {0,NULL} sl@0: }; sl@0: sl@0: #endif sl@0: sl@0: EXPORT_C void ERR_load_STORE_strings(void) sl@0: { sl@0: #ifndef OPENSSL_NO_ERR sl@0: sl@0: if (ERR_func_error_string(STORE_str_functs[0].error) == NULL) sl@0: { sl@0: ERR_load_strings(0,STORE_str_functs); sl@0: ERR_load_strings(0,STORE_str_reasons); sl@0: } sl@0: #endif sl@0: }