1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ssl/libcrypto/src/crypto/dsa/dsa_err.c Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,151 @@
1.4 +/* crypto/dsa/dsa_err.c */
1.5 +/* ====================================================================
1.6 + * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
1.7 + *
1.8 + * Redistribution and use in source and binary forms, with or without
1.9 + * modification, are permitted provided that the following conditions
1.10 + * are met:
1.11 + *
1.12 + * 1. Redistributions of source code must retain the above copyright
1.13 + * notice, this list of conditions and the following disclaimer.
1.14 + *
1.15 + * 2. Redistributions in binary form must reproduce the above copyright
1.16 + * notice, this list of conditions and the following disclaimer in
1.17 + * the documentation and/or other materials provided with the
1.18 + * distribution.
1.19 + *
1.20 + * 3. All advertising materials mentioning features or use of this
1.21 + * software must display the following acknowledgment:
1.22 + * "This product includes software developed by the OpenSSL Project
1.23 + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
1.24 + *
1.25 + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
1.26 + * endorse or promote products derived from this software without
1.27 + * prior written permission. For written permission, please contact
1.28 + * openssl-core@OpenSSL.org.
1.29 + *
1.30 + * 5. Products derived from this software may not be called "OpenSSL"
1.31 + * nor may "OpenSSL" appear in their names without prior written
1.32 + * permission of the OpenSSL Project.
1.33 + *
1.34 + * 6. Redistributions of any form whatsoever must retain the following
1.35 + * acknowledgment:
1.36 + * "This product includes software developed by the OpenSSL Project
1.37 + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
1.38 + *
1.39 + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
1.40 + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.41 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.42 + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
1.43 + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1.44 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1.45 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1.46 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.47 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1.48 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1.49 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
1.50 + * OF THE POSSIBILITY OF SUCH DAMAGE.
1.51 + * ====================================================================
1.52 + *
1.53 + * This product includes cryptographic software written by Eric Young
1.54 + * (eay@cryptsoft.com). This product includes software written by Tim
1.55 + * Hudson (tjh@cryptsoft.com).
1.56 + *
1.57 + */
1.58 +/*
1.59 + © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.60 + */
1.61 +/* NOTE: this file was auto generated by the mkerr.pl script: any changes
1.62 + * made to it will be overwritten when the script next updates this file,
1.63 + * only reason strings will be preserved.
1.64 + */
1.65 +
1.66 +#include <stdio.h>
1.67 +#include <openssl/err.h>
1.68 +#include <openssl/dsa.h>
1.69 +#if (defined(SYMBIAN) && (defined(__WINSCW__) || defined(__WINS__)))
1.70 +#include "libcrypto_wsd_macros.h"
1.71 +#include "libcrypto_wsd.h"
1.72 +#endif
1.73 +
1.74 +
1.75 +/* BEGIN ERROR CODES */
1.76 +#ifndef OPENSSL_NO_ERR
1.77 +
1.78 +#define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0)
1.79 +#define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason)
1.80 +#ifndef EMULATOR
1.81 +static ERR_STRING_DATA DSA_str_functs[]=
1.82 + {
1.83 +{ERR_FUNC(DSA_F_D2I_DSA_SIG), "d2i_DSA_SIG"},
1.84 +{ERR_FUNC(DSA_F_DSAPARAMS_PRINT), "DSAparams_print"},
1.85 +{ERR_FUNC(DSA_F_DSAPARAMS_PRINT_FP), "DSAparams_print_fp"},
1.86 +{ERR_FUNC(DSA_F_DSA_DO_SIGN), "DSA_do_sign"},
1.87 +{ERR_FUNC(DSA_F_DSA_DO_VERIFY), "DSA_do_verify"},
1.88 +{ERR_FUNC(DSA_F_DSA_NEW_METHOD), "DSA_new_method"},
1.89 +{ERR_FUNC(DSA_F_DSA_PRINT), "DSA_print"},
1.90 +{ERR_FUNC(DSA_F_DSA_PRINT_FP), "DSA_print_fp"},
1.91 +{ERR_FUNC(DSA_F_DSA_SIGN), "DSA_sign"},
1.92 +{ERR_FUNC(DSA_F_DSA_SIGN_SETUP), "DSA_sign_setup"},
1.93 +{ERR_FUNC(DSA_F_DSA_SIG_NEW), "DSA_SIG_new"},
1.94 +{ERR_FUNC(DSA_F_DSA_VERIFY), "DSA_verify"},
1.95 +{ERR_FUNC(DSA_F_I2D_DSA_SIG), "i2d_DSA_SIG"},
1.96 +{ERR_FUNC(DSA_F_SIG_CB), "SIG_CB"},
1.97 +{0,NULL}
1.98 + };
1.99 +static ERR_STRING_DATA DSA_str_reasons[]=
1.100 + {
1.101 +{ERR_REASON(DSA_R_BAD_Q_VALUE) ,"bad q value"},
1.102 +{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"},
1.103 +{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"},
1.104 +{ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"},
1.105 +{0,NULL}
1.106 + };
1.107 +#else //EMULATOR
1.108 +const ERR_STRING_DATA temp_DSA_str_functs[]=
1.109 + {
1.110 +{ERR_FUNC(DSA_F_D2I_DSA_SIG), "d2i_DSA_SIG"},
1.111 +{ERR_FUNC(DSA_F_DSAPARAMS_PRINT), "DSAparams_print"},
1.112 +{ERR_FUNC(DSA_F_DSAPARAMS_PRINT_FP), "DSAparams_print_fp"},
1.113 +{ERR_FUNC(DSA_F_DSA_DO_SIGN), "DSA_do_sign"},
1.114 +{ERR_FUNC(DSA_F_DSA_DO_VERIFY), "DSA_do_verify"},
1.115 +{ERR_FUNC(DSA_F_DSA_NEW_METHOD), "DSA_new_method"},
1.116 +{ERR_FUNC(DSA_F_DSA_PRINT), "DSA_print"},
1.117 +{ERR_FUNC(DSA_F_DSA_PRINT_FP), "DSA_print_fp"},
1.118 +{ERR_FUNC(DSA_F_DSA_SIGN), "DSA_sign"},
1.119 +{ERR_FUNC(DSA_F_DSA_SIGN_SETUP), "DSA_sign_setup"},
1.120 +{ERR_FUNC(DSA_F_DSA_SIG_NEW), "DSA_SIG_new"},
1.121 +{ERR_FUNC(DSA_F_DSA_VERIFY), "DSA_verify"},
1.122 +{ERR_FUNC(DSA_F_I2D_DSA_SIG), "i2d_DSA_SIG"},
1.123 +{ERR_FUNC(DSA_F_SIG_CB), "SIG_CB"},
1.124 +{0,NULL}
1.125 + };
1.126 +const ERR_STRING_DATA temp_DSA_str_reasons[]=
1.127 + {
1.128 +{ERR_REASON(DSA_R_BAD_Q_VALUE) ,"bad q value"},
1.129 +{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"},
1.130 +{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"},
1.131 +{ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"},
1.132 +{0,NULL}
1.133 + };
1.134 + GET_STATIC_ARRAY_FROM_TLS(DSA_str_functs,dsa_err,ERR_STRING_DATA)
1.135 + GET_STATIC_ARRAY_FROM_TLS(DSA_str_reasons,dsa_err,ERR_STRING_DATA)
1.136 + #define DSA_str_functs (GET_WSD_VAR_NAME(DSA_str_functs,dsa_err, s)())
1.137 + #define DSA_str_reasons (GET_WSD_VAR_NAME(DSA_str_reasons,dsa_err, s)())
1.138 +#endif //EMULATOR
1.139 +#endif
1.140 +
1.141 +
1.142 +
1.143 +
1.144 +EXPORT_C void ERR_load_DSA_strings(void)
1.145 + {
1.146 +#ifndef OPENSSL_NO_ERR
1.147 +
1.148 + if (ERR_func_error_string(DSA_str_functs[0].error) == NULL)
1.149 + {
1.150 + ERR_load_strings(0,DSA_str_functs);
1.151 + ERR_load_strings(0,DSA_str_reasons);
1.152 + }
1.153 +#endif
1.154 + }