1160814Ssimon/* e_atalla_err.c */ 2160814Ssimon/* ==================================================================== 3160814Ssimon * Copyright (c) 1999-2005 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 "e_atalla_err.h" 64160814Ssimon 65160814Ssimon/* BEGIN ERROR CODES */ 66160814Ssimon#ifndef OPENSSL_NO_ERR 67160814Ssimon 68160814Ssimon#define ERR_FUNC(func) ERR_PACK(0,func,0) 69160814Ssimon#define ERR_REASON(reason) ERR_PACK(0,0,reason) 70160814Ssimon 71160814Ssimonstatic ERR_STRING_DATA ATALLA_str_functs[]= 72160814Ssimon { 73160814Ssimon{ERR_FUNC(ATALLA_F_ATALLA_CTRL), "ATALLA_CTRL"}, 74160814Ssimon{ERR_FUNC(ATALLA_F_ATALLA_FINISH), "ATALLA_FINISH"}, 75160814Ssimon{ERR_FUNC(ATALLA_F_ATALLA_INIT), "ATALLA_INIT"}, 76160814Ssimon{ERR_FUNC(ATALLA_F_ATALLA_MOD_EXP), "ATALLA_MOD_EXP"}, 77160814Ssimon{ERR_FUNC(ATALLA_F_ATALLA_RSA_MOD_EXP), "ATALLA_RSA_MOD_EXP"}, 78160814Ssimon{0,NULL} 79160814Ssimon }; 80160814Ssimon 81160814Ssimonstatic ERR_STRING_DATA ATALLA_str_reasons[]= 82160814Ssimon { 83160814Ssimon{ERR_REASON(ATALLA_R_ALREADY_LOADED) ,"already loaded"}, 84160814Ssimon{ERR_REASON(ATALLA_R_BN_CTX_FULL) ,"bn ctx full"}, 85160814Ssimon{ERR_REASON(ATALLA_R_BN_EXPAND_FAIL) ,"bn expand fail"}, 86160814Ssimon{ERR_REASON(ATALLA_R_CTRL_COMMAND_NOT_IMPLEMENTED),"ctrl command not implemented"}, 87160814Ssimon{ERR_REASON(ATALLA_R_MISSING_KEY_COMPONENTS),"missing key components"}, 88160814Ssimon{ERR_REASON(ATALLA_R_NOT_LOADED) ,"not loaded"}, 89160814Ssimon{ERR_REASON(ATALLA_R_REQUEST_FAILED) ,"request failed"}, 90160814Ssimon{ERR_REASON(ATALLA_R_UNIT_FAILURE) ,"unit failure"}, 91160814Ssimon{0,NULL} 92160814Ssimon }; 93160814Ssimon 94160814Ssimon#endif 95160814Ssimon 96160814Ssimon#ifdef ATALLA_LIB_NAME 97160814Ssimonstatic ERR_STRING_DATA ATALLA_lib_name[]= 98160814Ssimon { 99160814Ssimon{0 ,ATALLA_LIB_NAME}, 100160814Ssimon{0,NULL} 101160814Ssimon }; 102160814Ssimon#endif 103160814Ssimon 104160814Ssimon 105160814Ssimonstatic int ATALLA_lib_error_code=0; 106160814Ssimonstatic int ATALLA_error_init=1; 107160814Ssimon 108160814Ssimonstatic void ERR_load_ATALLA_strings(void) 109160814Ssimon { 110160814Ssimon if (ATALLA_lib_error_code == 0) 111160814Ssimon ATALLA_lib_error_code=ERR_get_next_error_library(); 112160814Ssimon 113160814Ssimon if (ATALLA_error_init) 114160814Ssimon { 115160814Ssimon ATALLA_error_init=0; 116160814Ssimon#ifndef OPENSSL_NO_ERR 117160814Ssimon ERR_load_strings(ATALLA_lib_error_code,ATALLA_str_functs); 118160814Ssimon ERR_load_strings(ATALLA_lib_error_code,ATALLA_str_reasons); 119160814Ssimon#endif 120160814Ssimon 121160814Ssimon#ifdef ATALLA_LIB_NAME 122160814Ssimon ATALLA_lib_name->error = ERR_PACK(ATALLA_lib_error_code,0,0); 123160814Ssimon ERR_load_strings(0,ATALLA_lib_name); 124160814Ssimon#endif 125160814Ssimon } 126160814Ssimon } 127160814Ssimon 128160814Ssimonstatic void ERR_unload_ATALLA_strings(void) 129160814Ssimon { 130160814Ssimon if (ATALLA_error_init == 0) 131160814Ssimon { 132160814Ssimon#ifndef OPENSSL_NO_ERR 133160814Ssimon ERR_unload_strings(ATALLA_lib_error_code,ATALLA_str_functs); 134160814Ssimon ERR_unload_strings(ATALLA_lib_error_code,ATALLA_str_reasons); 135160814Ssimon#endif 136160814Ssimon 137160814Ssimon#ifdef ATALLA_LIB_NAME 138160814Ssimon ERR_unload_strings(0,ATALLA_lib_name); 139160814Ssimon#endif 140160814Ssimon ATALLA_error_init=1; 141160814Ssimon } 142160814Ssimon } 143160814Ssimon 144160814Ssimonstatic void ERR_ATALLA_error(int function, int reason, char *file, int line) 145160814Ssimon { 146160814Ssimon if (ATALLA_lib_error_code == 0) 147160814Ssimon ATALLA_lib_error_code=ERR_get_next_error_library(); 148160814Ssimon ERR_PUT_error(ATALLA_lib_error_code,function,reason,file,line); 149160814Ssimon } 150