e_cswift_err.h revision 160814
1178825Sdfr/* ==================================================================== 2178825Sdfr * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 3178825Sdfr * 4178825Sdfr * Redistribution and use in source and binary forms, with or without 5178825Sdfr * modification, are permitted provided that the following conditions 6178825Sdfr * are met: 7178825Sdfr * 8178825Sdfr * 1. Redistributions of source code must retain the above copyright 9178825Sdfr * notice, this list of conditions and the following disclaimer. 10178825Sdfr * 11178825Sdfr * 2. Redistributions in binary form must reproduce the above copyright 12178825Sdfr * notice, this list of conditions and the following disclaimer in 13178825Sdfr * the documentation and/or other materials provided with the 14178825Sdfr * distribution. 15178825Sdfr * 16178825Sdfr * 3. All advertising materials mentioning features or use of this 17178825Sdfr * software must display the following acknowledgment: 18178825Sdfr * "This product includes software developed by the OpenSSL Project 19178825Sdfr * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 20178825Sdfr * 21178825Sdfr * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 22178825Sdfr * endorse or promote products derived from this software without 23178825Sdfr * prior written permission. For written permission, please contact 24178825Sdfr * openssl-core@openssl.org. 25178825Sdfr * 26178825Sdfr * 5. Products derived from this software may not be called "OpenSSL" 27178825Sdfr * nor may "OpenSSL" appear in their names without prior written 28178825Sdfr * permission of the OpenSSL Project. 29178825Sdfr * 30178825Sdfr * 6. Redistributions of any form whatsoever must retain the following 31178825Sdfr * acknowledgment: 32178825Sdfr * "This product includes software developed by the OpenSSL Project 33178825Sdfr * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 34178825Sdfr * 35178825Sdfr * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 36178825Sdfr * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 37178825Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 38178825Sdfr * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 39178825Sdfr * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 40178825Sdfr * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 41178825Sdfr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 42178825Sdfr * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 43178825Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 44178825Sdfr * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 45178825Sdfr * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 46178825Sdfr * OF THE POSSIBILITY OF SUCH DAMAGE. 47178825Sdfr * ==================================================================== 48178825Sdfr * 49178825Sdfr * This product includes cryptographic software written by Eric Young 50178825Sdfr * (eay@cryptsoft.com). This product includes software written by Tim 51178825Sdfr * Hudson (tjh@cryptsoft.com). 52178825Sdfr * 53178825Sdfr */ 54178825Sdfr 55178825Sdfr#ifndef HEADER_CSWIFT_ERR_H 56178825Sdfr#define HEADER_CSWIFT_ERR_H 57178825Sdfr 58178825Sdfr/* BEGIN ERROR CODES */ 59178825Sdfr/* The following lines are auto generated by the script mkerr.pl. Any changes 60178825Sdfr * made after this point may be overwritten when the script is next run. 61178825Sdfr */ 62178825Sdfrstatic void ERR_load_CSWIFT_strings(void); 63178825Sdfrstatic void ERR_unload_CSWIFT_strings(void); 64178825Sdfrstatic void ERR_CSWIFT_error(int function, int reason, char *file, int line); 65178825Sdfr#define CSWIFTerr(f,r) ERR_CSWIFT_error((f),(r),__FILE__,__LINE__) 66178825Sdfr 67178825Sdfr/* Error codes for the CSWIFT functions. */ 68178825Sdfr 69178825Sdfr/* Function codes. */ 70178825Sdfr#define CSWIFT_F_CSWIFT_CTRL 100 71178825Sdfr#define CSWIFT_F_CSWIFT_DSA_SIGN 101 72178825Sdfr#define CSWIFT_F_CSWIFT_DSA_VERIFY 102 73178825Sdfr#define CSWIFT_F_CSWIFT_FINISH 103 74178825Sdfr#define CSWIFT_F_CSWIFT_INIT 104 75178825Sdfr#define CSWIFT_F_CSWIFT_MOD_EXP 105 76#define CSWIFT_F_CSWIFT_MOD_EXP_CRT 106 77#define CSWIFT_F_CSWIFT_RAND_BYTES 108 78#define CSWIFT_F_CSWIFT_RSA_MOD_EXP 107 79 80/* Reason codes. */ 81#define CSWIFT_R_ALREADY_LOADED 100 82#define CSWIFT_R_BAD_KEY_SIZE 101 83#define CSWIFT_R_BN_CTX_FULL 102 84#define CSWIFT_R_BN_EXPAND_FAIL 103 85#define CSWIFT_R_CTRL_COMMAND_NOT_IMPLEMENTED 104 86#define CSWIFT_R_MISSING_KEY_COMPONENTS 105 87#define CSWIFT_R_NOT_LOADED 106 88#define CSWIFT_R_REQUEST_FAILED 107 89#define CSWIFT_R_UNIT_FAILURE 108 90 91#ifdef __cplusplus 92} 93#endif 94#endif 95