1160814Ssimon/* crypto/store/str_err.c */ 2160814Ssimon/* ==================================================================== 3238405Sjkim * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved. 4160814Ssimon * 5160814Ssimon * Redistribution and use in source and binary forms, with or without 6160814Ssimon * modification, are permitted provided that the following conditions 7160814Ssimon * are met: 8160814Ssimon * 9160814Ssimon * 1. Redistributions of source code must retain the above copyright 10160814Ssimon * notice, this list of conditions and the following disclaimer. 11160814Ssimon * 12160814Ssimon * 2. Redistributions in binary form must reproduce the above copyright 13160814Ssimon * notice, this list of conditions and the following disclaimer in 14160814Ssimon * the documentation and/or other materials provided with the 15160814Ssimon * distribution. 16160814Ssimon * 17160814Ssimon * 3. All advertising materials mentioning features or use of this 18160814Ssimon * software must display the following acknowledgment: 19160814Ssimon * "This product includes software developed by the OpenSSL Project 20160814Ssimon * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 21160814Ssimon * 22160814Ssimon * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 23160814Ssimon * endorse or promote products derived from this software without 24160814Ssimon * prior written permission. For written permission, please contact 25160814Ssimon * openssl-core@OpenSSL.org. 26160814Ssimon * 27160814Ssimon * 5. Products derived from this software may not be called "OpenSSL" 28160814Ssimon * nor may "OpenSSL" appear in their names without prior written 29160814Ssimon * permission of the OpenSSL Project. 30160814Ssimon * 31160814Ssimon * 6. Redistributions of any form whatsoever must retain the following 32160814Ssimon * acknowledgment: 33160814Ssimon * "This product includes software developed by the OpenSSL Project 34160814Ssimon * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 35160814Ssimon * 36160814Ssimon * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 37160814Ssimon * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38160814Ssimon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 39160814Ssimon * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 40160814Ssimon * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 41160814Ssimon * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 42160814Ssimon * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43160814Ssimon * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44160814Ssimon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 45160814Ssimon * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46160814Ssimon * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47160814Ssimon * OF THE POSSIBILITY OF SUCH DAMAGE. 48160814Ssimon * ==================================================================== 49160814Ssimon * 50160814Ssimon * This product includes cryptographic software written by Eric Young 51160814Ssimon * (eay@cryptsoft.com). This product includes software written by Tim 52160814Ssimon * Hudson (tjh@cryptsoft.com). 53160814Ssimon * 54160814Ssimon */ 55160814Ssimon 56160814Ssimon/* NOTE: this file was auto generated by the mkerr.pl script: any changes 57160814Ssimon * made to it will be overwritten when the script next updates this file, 58160814Ssimon * only reason strings will be preserved. 59160814Ssimon */ 60160814Ssimon 61160814Ssimon#include <stdio.h> 62160814Ssimon#include <openssl/err.h> 63160814Ssimon#include <openssl/store.h> 64160814Ssimon 65160814Ssimon/* BEGIN ERROR CODES */ 66160814Ssimon#ifndef OPENSSL_NO_ERR 67160814Ssimon 68160814Ssimon#define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0) 69160814Ssimon#define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason) 70160814Ssimon 71160814Ssimonstatic ERR_STRING_DATA STORE_str_functs[]= 72160814Ssimon { 73160814Ssimon{ERR_FUNC(STORE_F_MEM_DELETE), "MEM_DELETE"}, 74160814Ssimon{ERR_FUNC(STORE_F_MEM_GENERATE), "MEM_GENERATE"}, 75160814Ssimon{ERR_FUNC(STORE_F_MEM_LIST_END), "MEM_LIST_END"}, 76160814Ssimon{ERR_FUNC(STORE_F_MEM_LIST_NEXT), "MEM_LIST_NEXT"}, 77160814Ssimon{ERR_FUNC(STORE_F_MEM_LIST_START), "MEM_LIST_START"}, 78160814Ssimon{ERR_FUNC(STORE_F_MEM_MODIFY), "MEM_MODIFY"}, 79160814Ssimon{ERR_FUNC(STORE_F_MEM_STORE), "MEM_STORE"}, 80160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_CSTR), "STORE_ATTR_INFO_get0_cstr"}, 81160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_DN), "STORE_ATTR_INFO_get0_dn"}, 82160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_NUMBER), "STORE_ATTR_INFO_get0_number"}, 83160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_GET0_SHA1STR), "STORE_ATTR_INFO_get0_sha1str"}, 84160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_CSTR), "STORE_ATTR_INFO_modify_cstr"}, 85160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_DN), "STORE_ATTR_INFO_modify_dn"}, 86160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER), "STORE_ATTR_INFO_modify_number"}, 87160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR), "STORE_ATTR_INFO_modify_sha1str"}, 88160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_CSTR), "STORE_ATTR_INFO_set_cstr"}, 89160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_DN), "STORE_ATTR_INFO_set_dn"}, 90160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_NUMBER), "STORE_ATTR_INFO_set_number"}, 91160814Ssimon{ERR_FUNC(STORE_F_STORE_ATTR_INFO_SET_SHA1STR), "STORE_ATTR_INFO_set_sha1str"}, 92160814Ssimon{ERR_FUNC(STORE_F_STORE_CERTIFICATE), "STORE_CERTIFICATE"}, 93160814Ssimon{ERR_FUNC(STORE_F_STORE_CTRL), "STORE_ctrl"}, 94160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_ARBITRARY), "STORE_delete_arbitrary"}, 95160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_CERTIFICATE), "STORE_delete_certificate"}, 96160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_CRL), "STORE_delete_crl"}, 97160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_NUMBER), "STORE_delete_number"}, 98160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_PRIVATE_KEY), "STORE_delete_private_key"}, 99160814Ssimon{ERR_FUNC(STORE_F_STORE_DELETE_PUBLIC_KEY), "STORE_delete_public_key"}, 100160814Ssimon{ERR_FUNC(STORE_F_STORE_GENERATE_CRL), "STORE_generate_crl"}, 101160814Ssimon{ERR_FUNC(STORE_F_STORE_GENERATE_KEY), "STORE_generate_key"}, 102160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_ARBITRARY), "STORE_get_arbitrary"}, 103160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_CERTIFICATE), "STORE_get_certificate"}, 104160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_CRL), "STORE_get_crl"}, 105160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_NUMBER), "STORE_get_number"}, 106160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_PRIVATE_KEY), "STORE_get_private_key"}, 107160814Ssimon{ERR_FUNC(STORE_F_STORE_GET_PUBLIC_KEY), "STORE_get_public_key"}, 108160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_END), "STORE_list_certificate_end"}, 109160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_ENDP), "STORE_list_certificate_endp"}, 110160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_NEXT), "STORE_list_certificate_next"}, 111160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CERTIFICATE_START), "STORE_list_certificate_start"}, 112160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CRL_END), "STORE_list_crl_end"}, 113160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CRL_ENDP), "STORE_list_crl_endp"}, 114160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CRL_NEXT), "STORE_list_crl_next"}, 115160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_CRL_START), "STORE_list_crl_start"}, 116160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_END), "STORE_list_private_key_end"}, 117160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_ENDP), "STORE_list_private_key_endp"}, 118160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_NEXT), "STORE_list_private_key_next"}, 119160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PRIVATE_KEY_START), "STORE_list_private_key_start"}, 120160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_END), "STORE_list_public_key_end"}, 121160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_ENDP), "STORE_list_public_key_endp"}, 122160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_NEXT), "STORE_list_public_key_next"}, 123160814Ssimon{ERR_FUNC(STORE_F_STORE_LIST_PUBLIC_KEY_START), "STORE_list_public_key_start"}, 124160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_ARBITRARY), "STORE_modify_arbitrary"}, 125160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_CERTIFICATE), "STORE_modify_certificate"}, 126160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_CRL), "STORE_modify_crl"}, 127160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_NUMBER), "STORE_modify_number"}, 128160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_PRIVATE_KEY), "STORE_modify_private_key"}, 129160814Ssimon{ERR_FUNC(STORE_F_STORE_MODIFY_PUBLIC_KEY), "STORE_modify_public_key"}, 130160814Ssimon{ERR_FUNC(STORE_F_STORE_NEW_ENGINE), "STORE_new_engine"}, 131160814Ssimon{ERR_FUNC(STORE_F_STORE_NEW_METHOD), "STORE_new_method"}, 132160814Ssimon{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_END), "STORE_parse_attrs_end"}, 133160814Ssimon{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_ENDP), "STORE_parse_attrs_endp"}, 134160814Ssimon{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_NEXT), "STORE_parse_attrs_next"}, 135160814Ssimon{ERR_FUNC(STORE_F_STORE_PARSE_ATTRS_START), "STORE_parse_attrs_start"}, 136160814Ssimon{ERR_FUNC(STORE_F_STORE_REVOKE_CERTIFICATE), "STORE_revoke_certificate"}, 137160814Ssimon{ERR_FUNC(STORE_F_STORE_REVOKE_PRIVATE_KEY), "STORE_revoke_private_key"}, 138160814Ssimon{ERR_FUNC(STORE_F_STORE_REVOKE_PUBLIC_KEY), "STORE_revoke_public_key"}, 139160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_ARBITRARY), "STORE_store_arbitrary"}, 140160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_CERTIFICATE), "STORE_store_certificate"}, 141160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_CRL), "STORE_store_crl"}, 142160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_NUMBER), "STORE_store_number"}, 143160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_PRIVATE_KEY), "STORE_store_private_key"}, 144160814Ssimon{ERR_FUNC(STORE_F_STORE_STORE_PUBLIC_KEY), "STORE_store_public_key"}, 145160814Ssimon{0,NULL} 146160814Ssimon }; 147160814Ssimon 148160814Ssimonstatic ERR_STRING_DATA STORE_str_reasons[]= 149160814Ssimon { 150160814Ssimon{ERR_REASON(STORE_R_ALREADY_HAS_A_VALUE) ,"already has a value"}, 151160814Ssimon{ERR_REASON(STORE_R_FAILED_DELETING_ARBITRARY),"failed deleting arbitrary"}, 152160814Ssimon{ERR_REASON(STORE_R_FAILED_DELETING_CERTIFICATE),"failed deleting certificate"}, 153160814Ssimon{ERR_REASON(STORE_R_FAILED_DELETING_KEY) ,"failed deleting key"}, 154160814Ssimon{ERR_REASON(STORE_R_FAILED_DELETING_NUMBER),"failed deleting number"}, 155160814Ssimon{ERR_REASON(STORE_R_FAILED_GENERATING_CRL),"failed generating crl"}, 156160814Ssimon{ERR_REASON(STORE_R_FAILED_GENERATING_KEY),"failed generating key"}, 157160814Ssimon{ERR_REASON(STORE_R_FAILED_GETTING_ARBITRARY),"failed getting arbitrary"}, 158160814Ssimon{ERR_REASON(STORE_R_FAILED_GETTING_CERTIFICATE),"failed getting certificate"}, 159160814Ssimon{ERR_REASON(STORE_R_FAILED_GETTING_KEY) ,"failed getting key"}, 160160814Ssimon{ERR_REASON(STORE_R_FAILED_GETTING_NUMBER),"failed getting number"}, 161160814Ssimon{ERR_REASON(STORE_R_FAILED_LISTING_CERTIFICATES),"failed listing certificates"}, 162160814Ssimon{ERR_REASON(STORE_R_FAILED_LISTING_KEYS) ,"failed listing keys"}, 163160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_ARBITRARY),"failed modifying arbitrary"}, 164160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_CERTIFICATE),"failed modifying certificate"}, 165160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_CRL),"failed modifying crl"}, 166160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_NUMBER),"failed modifying number"}, 167160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_PRIVATE_KEY),"failed modifying private key"}, 168160814Ssimon{ERR_REASON(STORE_R_FAILED_MODIFYING_PUBLIC_KEY),"failed modifying public key"}, 169160814Ssimon{ERR_REASON(STORE_R_FAILED_REVOKING_CERTIFICATE),"failed revoking certificate"}, 170160814Ssimon{ERR_REASON(STORE_R_FAILED_REVOKING_KEY) ,"failed revoking key"}, 171160814Ssimon{ERR_REASON(STORE_R_FAILED_STORING_ARBITRARY),"failed storing arbitrary"}, 172160814Ssimon{ERR_REASON(STORE_R_FAILED_STORING_CERTIFICATE),"failed storing certificate"}, 173160814Ssimon{ERR_REASON(STORE_R_FAILED_STORING_KEY) ,"failed storing key"}, 174160814Ssimon{ERR_REASON(STORE_R_FAILED_STORING_NUMBER),"failed storing number"}, 175160814Ssimon{ERR_REASON(STORE_R_NOT_IMPLEMENTED) ,"not implemented"}, 176160814Ssimon{ERR_REASON(STORE_R_NO_CONTROL_FUNCTION) ,"no control function"}, 177160814Ssimon{ERR_REASON(STORE_R_NO_DELETE_ARBITRARY_FUNCTION),"no delete arbitrary function"}, 178160814Ssimon{ERR_REASON(STORE_R_NO_DELETE_NUMBER_FUNCTION),"no delete number function"}, 179160814Ssimon{ERR_REASON(STORE_R_NO_DELETE_OBJECT_FUNCTION),"no delete object function"}, 180160814Ssimon{ERR_REASON(STORE_R_NO_GENERATE_CRL_FUNCTION),"no generate crl function"}, 181160814Ssimon{ERR_REASON(STORE_R_NO_GENERATE_OBJECT_FUNCTION),"no generate object function"}, 182160814Ssimon{ERR_REASON(STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION),"no get object arbitrary function"}, 183160814Ssimon{ERR_REASON(STORE_R_NO_GET_OBJECT_FUNCTION),"no get object function"}, 184160814Ssimon{ERR_REASON(STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION),"no get object number function"}, 185160814Ssimon{ERR_REASON(STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION),"no list object endp function"}, 186160814Ssimon{ERR_REASON(STORE_R_NO_LIST_OBJECT_END_FUNCTION),"no list object end function"}, 187160814Ssimon{ERR_REASON(STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION),"no list object next function"}, 188160814Ssimon{ERR_REASON(STORE_R_NO_LIST_OBJECT_START_FUNCTION),"no list object start function"}, 189160814Ssimon{ERR_REASON(STORE_R_NO_MODIFY_OBJECT_FUNCTION),"no modify object function"}, 190160814Ssimon{ERR_REASON(STORE_R_NO_REVOKE_OBJECT_FUNCTION),"no revoke object function"}, 191160814Ssimon{ERR_REASON(STORE_R_NO_STORE) ,"no store"}, 192160814Ssimon{ERR_REASON(STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION),"no store object arbitrary function"}, 193160814Ssimon{ERR_REASON(STORE_R_NO_STORE_OBJECT_FUNCTION),"no store object function"}, 194160814Ssimon{ERR_REASON(STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION),"no store object number function"}, 195160814Ssimon{ERR_REASON(STORE_R_NO_VALUE) ,"no value"}, 196160814Ssimon{0,NULL} 197160814Ssimon }; 198160814Ssimon 199160814Ssimon#endif 200160814Ssimon 201160814Ssimonvoid ERR_load_STORE_strings(void) 202160814Ssimon { 203167612Ssimon#ifndef OPENSSL_NO_ERR 204160814Ssimon 205167612Ssimon if (ERR_func_error_string(STORE_str_functs[0].error) == NULL) 206160814Ssimon { 207160814Ssimon ERR_load_strings(0,STORE_str_functs); 208160814Ssimon ERR_load_strings(0,STORE_str_reasons); 209167612Ssimon } 210160814Ssimon#endif 211160814Ssimon } 212