Eneboo - Documentación para desarrolladores
|
00001 /* crypto/fips_err.h */ 00002 /* ==================================================================== 00003 * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 00012 * 2. Redistributions in binary form must reproduce the above copyright 00013 * notice, this list of conditions and the following disclaimer in 00014 * the documentation and/or other materials provided with the 00015 * distribution. 00016 * 00017 * 3. All advertising materials mentioning features or use of this 00018 * software must display the following acknowledgment: 00019 * "This product includes software developed by the OpenSSL Project 00020 * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 00021 * 00022 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 00023 * endorse or promote products derived from this software without 00024 * prior written permission. For written permission, please contact 00025 * openssl-core@OpenSSL.org. 00026 * 00027 * 5. Products derived from this software may not be called "OpenSSL" 00028 * nor may "OpenSSL" appear in their names without prior written 00029 * permission of the OpenSSL Project. 00030 * 00031 * 6. Redistributions of any form whatsoever must retain the following 00032 * acknowledgment: 00033 * "This product includes software developed by the OpenSSL Project 00034 * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 00035 * 00036 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 00037 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00038 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00039 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 00040 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00041 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00042 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00043 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00044 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 00045 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00046 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 00047 * OF THE POSSIBILITY OF SUCH DAMAGE. 00048 * ==================================================================== 00049 * 00050 * This product includes cryptographic software written by Eric Young 00051 * (eay@cryptsoft.com). This product includes software written by Tim 00052 * Hudson (tjh@cryptsoft.com). 00053 * 00054 */ 00055 00056 /* NOTE: this file was auto generated by the mkerr.pl script: any changes 00057 * made to it will be overwritten when the script next updates this file, 00058 * only reason strings will be preserved. 00059 */ 00060 00061 #include <stdio.h> 00062 #include <openssl/err.h> 00063 #include <openssl/fips.h> 00064 00065 /* BEGIN ERROR CODES */ 00066 #ifndef OPENSSL_NO_ERR 00067 00068 #define ERR_FUNC(func) ERR_PACK(ERR_LIB_FIPS,func,0) 00069 #define ERR_REASON(reason) ERR_PACK(ERR_LIB_FIPS,0,reason) 00070 00071 static ERR_STRING_DATA FIPS_str_functs[]= 00072 { 00073 {ERR_FUNC(FIPS_F_DH_BUILTIN_GENPARAMS), "DH_BUILTIN_GENPARAMS"}, 00074 {ERR_FUNC(FIPS_F_DSA_BUILTIN_PARAMGEN), "DSA_BUILTIN_PARAMGEN"}, 00075 {ERR_FUNC(FIPS_F_DSA_DO_SIGN), "DSA_do_sign"}, 00076 {ERR_FUNC(FIPS_F_DSA_DO_VERIFY), "DSA_do_verify"}, 00077 {ERR_FUNC(FIPS_F_EVP_CIPHERINIT_EX), "EVP_CipherInit_ex"}, 00078 {ERR_FUNC(FIPS_F_EVP_DIGESTINIT_EX), "EVP_DigestInit_ex"}, 00079 {ERR_FUNC(FIPS_F_FIPS_CHECK_DSA), "FIPS_CHECK_DSA"}, 00080 {ERR_FUNC(FIPS_F_FIPS_CHECK_INCORE_FINGERPRINT), "FIPS_CHECK_INCORE_FINGERPRINT"}, 00081 {ERR_FUNC(FIPS_F_FIPS_CHECK_RSA), "FIPS_CHECK_RSA"}, 00082 {ERR_FUNC(FIPS_F_FIPS_DSA_CHECK), "FIPS_DSA_CHECK"}, 00083 {ERR_FUNC(FIPS_F_FIPS_MODE_SET), "FIPS_mode_set"}, 00084 {ERR_FUNC(FIPS_F_FIPS_PKEY_SIGNATURE_TEST), "fips_pkey_signature_test"}, 00085 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES), "FIPS_selftest_aes"}, 00086 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_DES), "FIPS_selftest_des"}, 00087 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_DSA), "FIPS_selftest_dsa"}, 00088 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_HMAC), "FIPS_selftest_hmac"}, 00089 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_RNG), "FIPS_selftest_rng"}, 00090 {ERR_FUNC(FIPS_F_FIPS_SELFTEST_SHA1), "FIPS_selftest_sha1"}, 00091 {ERR_FUNC(FIPS_F_HASH_FINAL), "HASH_FINAL"}, 00092 {ERR_FUNC(FIPS_F_RSA_BUILTIN_KEYGEN), "RSA_BUILTIN_KEYGEN"}, 00093 {ERR_FUNC(FIPS_F_RSA_EAY_PRIVATE_DECRYPT), "RSA_EAY_PRIVATE_DECRYPT"}, 00094 {ERR_FUNC(FIPS_F_RSA_EAY_PRIVATE_ENCRYPT), "RSA_EAY_PRIVATE_ENCRYPT"}, 00095 {ERR_FUNC(FIPS_F_RSA_EAY_PUBLIC_DECRYPT), "RSA_EAY_PUBLIC_DECRYPT"}, 00096 {ERR_FUNC(FIPS_F_RSA_EAY_PUBLIC_ENCRYPT), "RSA_EAY_PUBLIC_ENCRYPT"}, 00097 {ERR_FUNC(FIPS_F_RSA_X931_GENERATE_KEY_EX), "RSA_X931_generate_key_ex"}, 00098 {ERR_FUNC(FIPS_F_SSLEAY_RAND_BYTES), "SSLEAY_RAND_BYTES"}, 00099 {0,NULL} 00100 }; 00101 00102 static ERR_STRING_DATA FIPS_str_reasons[]= 00103 { 00104 {ERR_REASON(FIPS_R_CANNOT_READ_EXE) ,"cannot read exe"}, 00105 {ERR_REASON(FIPS_R_CANNOT_READ_EXE_DIGEST),"cannot read exe digest"}, 00106 {ERR_REASON(FIPS_R_CONTRADICTING_EVIDENCE),"contradicting evidence"}, 00107 {ERR_REASON(FIPS_R_EXE_DIGEST_DOES_NOT_MATCH),"exe digest does not match"}, 00108 {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH),"fingerprint does not match"}, 00109 {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH_NONPIC_RELOCATED),"fingerprint does not match nonpic relocated"}, 00110 {ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH_SEGMENT_ALIASING),"fingerprint does not match segment aliasing"}, 00111 {ERR_REASON(FIPS_R_FIPS_MODE_ALREADY_SET),"fips mode already set"}, 00112 {ERR_REASON(FIPS_R_FIPS_SELFTEST_FAILED) ,"fips selftest failed"}, 00113 {ERR_REASON(FIPS_R_INVALID_KEY_LENGTH) ,"invalid key length"}, 00114 {ERR_REASON(FIPS_R_KEY_TOO_SHORT) ,"key too short"}, 00115 {ERR_REASON(FIPS_R_NON_FIPS_METHOD) ,"non fips method"}, 00116 {ERR_REASON(FIPS_R_PAIRWISE_TEST_FAILED) ,"pairwise test failed"}, 00117 {ERR_REASON(FIPS_R_RSA_DECRYPT_ERROR) ,"rsa decrypt error"}, 00118 {ERR_REASON(FIPS_R_RSA_ENCRYPT_ERROR) ,"rsa encrypt error"}, 00119 {ERR_REASON(FIPS_R_SELFTEST_FAILED) ,"selftest failed"}, 00120 {ERR_REASON(FIPS_R_TEST_FAILURE) ,"test failure"}, 00121 {ERR_REASON(FIPS_R_UNSUPPORTED_PLATFORM) ,"unsupported platform"}, 00122 {0,NULL} 00123 }; 00124 00125 #endif 00126 00127 void ERR_load_FIPS_strings(void) 00128 { 00129 #ifndef OPENSSL_NO_ERR 00130 00131 if (ERR_func_error_string(FIPS_str_functs[0].error) == NULL) 00132 { 00133 ERR_load_strings(0,FIPS_str_functs); 00134 ERR_load_strings(0,FIPS_str_reasons); 00135 } 00136 #endif 00137 }