]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
b6cff313 | 3 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
b6cff313 RS |
5 | * Licensed under the OpenSSL license (the "License"). You may not use |
6 | * this file except in compliance with the License. You can obtain a copy | |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
6d311938 DSH |
9 | */ |
10 | ||
d02b48c6 | 11 | #include <stdio.h> |
ec577822 BM |
12 | #include <openssl/err.h> |
13 | #include <openssl/dsa.h> | |
d02b48c6 RE |
14 | |
15 | /* BEGIN ERROR CODES */ | |
cf1b7d96 | 16 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 17 | |
0f113f3e MC |
18 | # define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0) |
19 | # define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason) | |
29dc3508 | 20 | |
0f113f3e | 21 | static ERR_STRING_DATA DSA_str_functs[] = { |
0f113f3e MC |
22 | {ERR_FUNC(DSA_F_DSAPARAMS_PRINT), "DSAparams_print"}, |
23 | {ERR_FUNC(DSA_F_DSAPARAMS_PRINT_FP), "DSAparams_print_fp"}, | |
0f113f3e | 24 | {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN), "DSA_BUILTIN_PARAMGEN"}, |
b8fb5989 | 25 | {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN2), "dsa_builtin_paramgen2"}, |
0f113f3e MC |
26 | {ERR_FUNC(DSA_F_DSA_DO_SIGN), "DSA_do_sign"}, |
27 | {ERR_FUNC(DSA_F_DSA_DO_VERIFY), "DSA_do_verify"}, | |
569d0646 MC |
28 | {ERR_FUNC(DSA_F_DSA_METH_DUP), "DSA_meth_dup"}, |
29 | {ERR_FUNC(DSA_F_DSA_METH_NEW), "DSA_meth_new"}, | |
30 | {ERR_FUNC(DSA_F_DSA_METH_SET1_NAME), "DSA_meth_set1_name"}, | |
0f113f3e | 31 | {ERR_FUNC(DSA_F_DSA_NEW_METHOD), "DSA_new_method"}, |
b8fb5989 | 32 | {ERR_FUNC(DSA_F_DSA_PARAM_DECODE), "dsa_param_decode"}, |
0f113f3e | 33 | {ERR_FUNC(DSA_F_DSA_PRINT_FP), "DSA_print_fp"}, |
b8fb5989 DSH |
34 | {ERR_FUNC(DSA_F_DSA_PRIV_DECODE), "dsa_priv_decode"}, |
35 | {ERR_FUNC(DSA_F_DSA_PRIV_ENCODE), "dsa_priv_encode"}, | |
36 | {ERR_FUNC(DSA_F_DSA_PUB_DECODE), "dsa_pub_decode"}, | |
37 | {ERR_FUNC(DSA_F_DSA_PUB_ENCODE), "dsa_pub_encode"}, | |
0f113f3e MC |
38 | {ERR_FUNC(DSA_F_DSA_SIGN), "DSA_sign"}, |
39 | {ERR_FUNC(DSA_F_DSA_SIGN_SETUP), "DSA_sign_setup"}, | |
8cc44d97 | 40 | {ERR_FUNC(DSA_F_DSA_SIG_NEW), "DSA_SIG_new"}, |
b8fb5989 DSH |
41 | {ERR_FUNC(DSA_F_OLD_DSA_PRIV_DECODE), "old_dsa_priv_decode"}, |
42 | {ERR_FUNC(DSA_F_PKEY_DSA_CTRL), "pkey_dsa_ctrl"}, | |
43 | {ERR_FUNC(DSA_F_PKEY_DSA_KEYGEN), "pkey_dsa_keygen"}, | |
0f113f3e MC |
44 | {0, NULL} |
45 | }; | |
d02b48c6 | 46 | |
0f113f3e MC |
47 | static ERR_STRING_DATA DSA_str_reasons[] = { |
48 | {ERR_REASON(DSA_R_BAD_Q_VALUE), "bad q value"}, | |
49 | {ERR_REASON(DSA_R_BN_DECODE_ERROR), "bn decode error"}, | |
50 | {ERR_REASON(DSA_R_BN_ERROR), "bn error"}, | |
0f113f3e MC |
51 | {ERR_REASON(DSA_R_DECODE_ERROR), "decode error"}, |
52 | {ERR_REASON(DSA_R_INVALID_DIGEST_TYPE), "invalid digest type"}, | |
53 | {ERR_REASON(DSA_R_INVALID_PARAMETERS), "invalid parameters"}, | |
0f113f3e MC |
54 | {ERR_REASON(DSA_R_MISSING_PARAMETERS), "missing parameters"}, |
55 | {ERR_REASON(DSA_R_MODULUS_TOO_LARGE), "modulus too large"}, | |
0f113f3e MC |
56 | {ERR_REASON(DSA_R_NO_PARAMETERS_SET), "no parameters set"}, |
57 | {ERR_REASON(DSA_R_PARAMETER_ENCODING_ERROR), "parameter encoding error"}, | |
58 | {ERR_REASON(DSA_R_Q_NOT_PRIME), "q not prime"}, | |
59 | {0, NULL} | |
60 | }; | |
d02b48c6 | 61 | |
58964a49 RE |
62 | #endif |
63 | ||
69588edb | 64 | int ERR_load_DSA_strings(void) |
0f113f3e | 65 | { |
47a9d527 | 66 | #ifndef OPENSSL_NO_ERR |
d02b48c6 | 67 | |
0f113f3e MC |
68 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) { |
69 | ERR_load_strings(0, DSA_str_functs); | |
70 | ERR_load_strings(0, DSA_str_reasons); | |
71 | } | |
47a9d527 | 72 | #endif |
69588edb | 73 | return 1; |
0f113f3e | 74 | } |