e_cswift_err.h revision 194206
11543Srgrimes/* ==================================================================== 296317Sobrien * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 31543Srgrimes * 41543Srgrimes * Redistribution and use in source and binary forms, with or without 51543Srgrimes * modification, are permitted provided that the following conditions 61543Srgrimes * are met: 71543Srgrimes * 81543Srgrimes * 1. Redistributions of source code must retain the above copyright 91543Srgrimes * notice, this list of conditions and the following disclaimer. 101543Srgrimes * 111543Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 121543Srgrimes * notice, this list of conditions and the following disclaimer in 131543Srgrimes * the documentation and/or other materials provided with the 141543Srgrimes * distribution. 151543Srgrimes * 161543Srgrimes * 3. All advertising materials mentioning features or use of this 171543Srgrimes * software must display the following acknowledgment: 181543Srgrimes * "This product includes software developed by the OpenSSL Project 191543Srgrimes * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 201543Srgrimes * 211543Srgrimes * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 221543Srgrimes * endorse or promote products derived from this software without 231543Srgrimes * prior written permission. For written permission, please contact 241543Srgrimes * openssl-core@openssl.org. 251543Srgrimes * 261543Srgrimes * 5. Products derived from this software may not be called "OpenSSL" 271543Srgrimes * nor may "OpenSSL" appear in their names without prior written 281543Srgrimes * permission of the OpenSSL Project. 291543Srgrimes * 301543Srgrimes * 6. Redistributions of any form whatsoever must retain the following 311543Srgrimes * acknowledgment: 321543Srgrimes * "This product includes software developed by the OpenSSL Project 331543Srgrimes * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 341543Srgrimes * 351543Srgrimes * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 361543Srgrimes * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 371543Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 381543Srgrimes * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 391543Srgrimes * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4050477Speter * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 411543Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 421543Srgrimes * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 431543Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 441543Srgrimes * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 451543Srgrimes * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 4696317Sobrien * OF THE POSSIBILITY OF SUCH DAMAGE. 4796317Sobrien * ==================================================================== 48102227Smike * 4996317Sobrien * This product includes cryptographic software written by Eric Young 50102227Smike * (eay@cryptsoft.com). This product includes software written by Tim 5196317Sobrien * Hudson (tjh@cryptsoft.com). 5296317Sobrien * 5396317Sobrien */ 5496317Sobrien 5596317Sobrien#ifndef HEADER_CSWIFT_ERR_H 5696317Sobrien#define HEADER_CSWIFT_ERR_H 5796317Sobrien 5896317Sobrien#ifdef __cplusplus 5996317Sobrienextern "C" { 6096317Sobrien#endif 611543Srgrimes 621543Srgrimes/* BEGIN ERROR CODES */ 6326771Sbde/* The following lines are auto generated by the script mkerr.pl. Any changes 6426771Sbde * made after this point may be overwritten when the script is next run. 6526771Sbde */ 6622415Sphkstatic void ERR_load_CSWIFT_strings(void); 6723184Sbdestatic void ERR_unload_CSWIFT_strings(void); 6823184Sbdestatic void ERR_CSWIFT_error(int function, int reason, char *file, int line); 6923184Sbde#define CSWIFTerr(f,r) ERR_CSWIFT_error((f),(r),__FILE__,__LINE__) 7022415Sphk 7123184Sbde/* Error codes for the CSWIFT functions. */ 7222415Sphk 7322415Sphk/* Function codes. */ 741543Srgrimes#define CSWIFT_F_CSWIFT_CTRL 100 751543Srgrimes#define CSWIFT_F_CSWIFT_DSA_SIGN 101 7626771Sbde#define CSWIFT_F_CSWIFT_DSA_VERIFY 102 771543Srgrimes#define CSWIFT_F_CSWIFT_FINISH 103 781543Srgrimes#define CSWIFT_F_CSWIFT_INIT 104 7926771Sbde#define CSWIFT_F_CSWIFT_MOD_EXP 105 801543Srgrimes#define CSWIFT_F_CSWIFT_MOD_EXP_CRT 106 811543Srgrimes#define CSWIFT_F_CSWIFT_RAND_BYTES 108 821543Srgrimes#define CSWIFT_F_CSWIFT_RSA_MOD_EXP 107 8396317Sobrien 8496317Sobrien/* Reason codes. */ 851543Srgrimes#define CSWIFT_R_ALREADY_LOADED 100 86#define CSWIFT_R_BAD_KEY_SIZE 101 87#define CSWIFT_R_BN_CTX_FULL 102 88#define CSWIFT_R_BN_EXPAND_FAIL 103 89#define CSWIFT_R_CTRL_COMMAND_NOT_IMPLEMENTED 104 90#define CSWIFT_R_MISSING_KEY_COMPONENTS 105 91#define CSWIFT_R_NOT_LOADED 106 92#define CSWIFT_R_REQUEST_FAILED 107 93#define CSWIFT_R_UNIT_FAILURE 108 94 95#ifdef __cplusplus 96} 97#endif 98#endif 99