e_cswift_err.h revision 160814
118334Speter/* ==================================================================== 290289Sobrien * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 3169699Skan * 418334Speter * Redistribution and use in source and binary forms, with or without 518334Speter * modification, are permitted provided that the following conditions 618334Speter * are met: 718334Speter * 8132727Skan * 1. Redistributions of source code must retain the above copyright 918334Speter * notice, this list of conditions and the following disclaimer. 10132727Skan * 1118334Speter * 2. Redistributions in binary form must reproduce the above copyright 1218334Speter * notice, this list of conditions and the following disclaimer in 1318334Speter * the documentation and/or other materials provided with the 1418334Speter * distribution. 15132727Skan * 1618334Speter * 3. All advertising materials mentioning features or use of this 1718334Speter * software must display the following acknowledgment: 1818334Speter * "This product includes software developed by the OpenSSL Project 1918334Speter * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 2018334Speter * 21132727Skan * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 22169699Skan * endorse or promote products derived from this software without 23169699Skan * prior written permission. For written permission, please contact 2418334Speter * openssl-core@openssl.org. 2518334Speter * 2618334Speter * 5. Products derived from this software may not be called "OpenSSL" 2750643Sobrien * nor may "OpenSSL" appear in their names without prior written 28132727Skan * permission of the OpenSSL Project. 29132727Skan * 3018334Speter * 6. Redistributions of any form whatsoever must retain the following 3118334Speter * acknowledgment: 3290289Sobrien * "This product includes software developed by the OpenSSL Project 3390289Sobrien * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 3418334Speter * 3518334Speter * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 3650643Sobrien * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3750643Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3850643Sobrien * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 39117404Skan * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 40169699Skan * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 41169699Skan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 4218334Speter * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 43132727Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 44132727Skan * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 45132727Skan * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 46132727Skan * OF THE POSSIBILITY OF SUCH DAMAGE. 47132727Skan * ==================================================================== 48132727Skan * 49132727Skan * This product includes cryptographic software written by Eric Young 50132727Skan * (eay@cryptsoft.com). This product includes software written by Tim 51132727Skan * Hudson (tjh@cryptsoft.com). 52132727Skan * 53132727Skan */ 54132727Skan 55132727Skan#ifndef HEADER_CSWIFT_ERR_H 56132727Skan#define HEADER_CSWIFT_ERR_H 5718334Speter 5890289Sobrien/* BEGIN ERROR CODES */ 5990289Sobrien/* The following lines are auto generated by the script mkerr.pl. Any changes 6018334Speter * made after this point may be overwritten when the script is next run. 6118334Speter */ 62132727Skanstatic void ERR_load_CSWIFT_strings(void); 6318334Speterstatic void ERR_unload_CSWIFT_strings(void); 6490289Sobrienstatic void ERR_CSWIFT_error(int function, int reason, char *file, int line); 6518334Speter#define CSWIFTerr(f,r) ERR_CSWIFT_error((f),(r),__FILE__,__LINE__) 6690289Sobrien 6790289Sobrien/* Error codes for the CSWIFT functions. */ 6890289Sobrien 6990289Sobrien/* Function codes. */ 7090289Sobrien#define CSWIFT_F_CSWIFT_CTRL 100 7190289Sobrien#define CSWIFT_F_CSWIFT_DSA_SIGN 101 7290289Sobrien#define CSWIFT_F_CSWIFT_DSA_VERIFY 102 7318334Speter#define CSWIFT_F_CSWIFT_FINISH 103 7490289Sobrien#define CSWIFT_F_CSWIFT_INIT 104 7590289Sobrien#define CSWIFT_F_CSWIFT_MOD_EXP 105 7690289Sobrien#define CSWIFT_F_CSWIFT_MOD_EXP_CRT 106 7790289Sobrien#define CSWIFT_F_CSWIFT_RAND_BYTES 108 7890289Sobrien#define CSWIFT_F_CSWIFT_RSA_MOD_EXP 107 7918334Speter 8090289Sobrien/* Reason codes. */ 8190289Sobrien#define CSWIFT_R_ALREADY_LOADED 100 8290289Sobrien#define CSWIFT_R_BAD_KEY_SIZE 101 83169699Skan#define CSWIFT_R_BN_CTX_FULL 102 84169699Skan#define CSWIFT_R_BN_EXPAND_FAIL 103 85169699Skan#define CSWIFT_R_CTRL_COMMAND_NOT_IMPLEMENTED 104 86169699Skan#define CSWIFT_R_MISSING_KEY_COMPONENTS 105 8718334Speter#define CSWIFT_R_NOT_LOADED 106 8890289Sobrien#define CSWIFT_R_REQUEST_FAILED 107 8990289Sobrien#define CSWIFT_R_UNIT_FAILURE 108 9018334Speter 9118334Speter#ifdef __cplusplus 9290289Sobrien} 9390289Sobrien#endif 9418334Speter#endif 9550643Sobrien