]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/dsa/dsa_err.c
Manual fixes after copyright consolidation
[thirdparty/openssl.git] / crypto / dsa / dsa_err.c
CommitLineData
b6cff313
RS
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
6d311938 3 *
b6cff313
RS
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
6d311938
DSH
8 */
9
0f113f3e
MC
10/*
11 * NOTE: this file was auto generated by the mkerr.pl script: any changes
59fc2b0f
BM
12 * made to it will be overwritten when the script next updates this file,
13 * only reason strings will be preserved.
d02b48c6 14 */
6d311938 15
d02b48c6 16#include <stdio.h>
ec577822
BM
17#include <openssl/err.h>
18#include <openssl/dsa.h>
d02b48c6
RE
19
20/* BEGIN ERROR CODES */
cf1b7d96 21#ifndef OPENSSL_NO_ERR
29dc3508 22
0f113f3e
MC
23# define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0)
24# define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason)
29dc3508 25
0f113f3e
MC
26static ERR_STRING_DATA DSA_str_functs[] = {
27 {ERR_FUNC(DSA_F_D2I_DSA_SIG), "d2i_DSA_SIG"},
b8fb5989 28 {ERR_FUNC(DSA_F_DO_DSA_PRINT), "do_dsa_print"},
0f113f3e
MC
29 {ERR_FUNC(DSA_F_DSAPARAMS_PRINT), "DSAparams_print"},
30 {ERR_FUNC(DSA_F_DSAPARAMS_PRINT_FP), "DSAparams_print_fp"},
31 {ERR_FUNC(DSA_F_DSA_BUILTIN_KEYGEN), "DSA_BUILTIN_KEYGEN"},
32 {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN), "DSA_BUILTIN_PARAMGEN"},
b8fb5989 33 {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN2), "dsa_builtin_paramgen2"},
0f113f3e
MC
34 {ERR_FUNC(DSA_F_DSA_DO_SIGN), "DSA_do_sign"},
35 {ERR_FUNC(DSA_F_DSA_DO_VERIFY), "DSA_do_verify"},
36 {ERR_FUNC(DSA_F_DSA_NEW_METHOD), "DSA_new_method"},
b8fb5989 37 {ERR_FUNC(DSA_F_DSA_PARAM_DECODE), "dsa_param_decode"},
0f113f3e 38 {ERR_FUNC(DSA_F_DSA_PRINT_FP), "DSA_print_fp"},
b8fb5989
DSH
39 {ERR_FUNC(DSA_F_DSA_PRIV_DECODE), "dsa_priv_decode"},
40 {ERR_FUNC(DSA_F_DSA_PRIV_ENCODE), "dsa_priv_encode"},
41 {ERR_FUNC(DSA_F_DSA_PUB_DECODE), "dsa_pub_decode"},
42 {ERR_FUNC(DSA_F_DSA_PUB_ENCODE), "dsa_pub_encode"},
0f113f3e
MC
43 {ERR_FUNC(DSA_F_DSA_SIGN), "DSA_sign"},
44 {ERR_FUNC(DSA_F_DSA_SIGN_SETUP), "DSA_sign_setup"},
45 {ERR_FUNC(DSA_F_DSA_SIG_NEW), "DSA_SIG_new"},
b8fb5989 46 {ERR_FUNC(DSA_F_DSA_SIG_PRINT), "dsa_sig_print"},
0f113f3e
MC
47 {ERR_FUNC(DSA_F_DSA_VERIFY), "DSA_verify"},
48 {ERR_FUNC(DSA_F_I2D_DSA_SIG), "i2d_DSA_SIG"},
b8fb5989
DSH
49 {ERR_FUNC(DSA_F_OLD_DSA_PRIV_DECODE), "old_dsa_priv_decode"},
50 {ERR_FUNC(DSA_F_PKEY_DSA_CTRL), "pkey_dsa_ctrl"},
51 {ERR_FUNC(DSA_F_PKEY_DSA_KEYGEN), "pkey_dsa_keygen"},
52 {ERR_FUNC(DSA_F_SIG_CB), "sig_cb"},
0f113f3e
MC
53 {0, NULL}
54};
d02b48c6 55
0f113f3e
MC
56static ERR_STRING_DATA DSA_str_reasons[] = {
57 {ERR_REASON(DSA_R_BAD_Q_VALUE), "bad q value"},
58 {ERR_REASON(DSA_R_BN_DECODE_ERROR), "bn decode error"},
59 {ERR_REASON(DSA_R_BN_ERROR), "bn error"},
60 {ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),
61 "data too large for key size"},
62 {ERR_REASON(DSA_R_DECODE_ERROR), "decode error"},
63 {ERR_REASON(DSA_R_INVALID_DIGEST_TYPE), "invalid digest type"},
64 {ERR_REASON(DSA_R_INVALID_PARAMETERS), "invalid parameters"},
65 {ERR_REASON(DSA_R_KEY_SIZE_TOO_SMALL), "key size too small"},
66 {ERR_REASON(DSA_R_MISSING_PARAMETERS), "missing parameters"},
67 {ERR_REASON(DSA_R_MODULUS_TOO_LARGE), "modulus too large"},
68 {ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES), "need new setup values"},
69 {ERR_REASON(DSA_R_NO_PARAMETERS_SET), "no parameters set"},
70 {ERR_REASON(DSA_R_PARAMETER_ENCODING_ERROR), "parameter encoding error"},
71 {ERR_REASON(DSA_R_Q_NOT_PRIME), "q not prime"},
72 {0, NULL}
73};
d02b48c6 74
58964a49
RE
75#endif
76
6b691a5c 77void ERR_load_DSA_strings(void)
0f113f3e 78{
47a9d527 79#ifndef OPENSSL_NO_ERR
d02b48c6 80
0f113f3e
MC
81 if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) {
82 ERR_load_strings(0, DSA_str_functs);
83 ERR_load_strings(0, DSA_str_reasons);
84 }
47a9d527 85#endif
0f113f3e 86}