xref: /netbsd-src/crypto/external/bsd/openssl/dist/crypto/dsa/dsa_err.c (revision 4170684f22077e3779c5c14826430de0dec964b2)
1635165faSspz /*
2c7da899bSchristos  * Generated by util/mkerr.pl DO NOT EDIT
3*4170684fSchristos  * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
4c7da899bSchristos  *
5b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
6c7da899bSchristos  * this file except in compliance with the License.  You can obtain a copy
7c7da899bSchristos  * in the file LICENSE in the source distribution or at
8c7da899bSchristos  * https://www.openssl.org/source/license.html
9a89c9211Schristos  */
10a89c9211Schristos 
11a89c9211Schristos #include <openssl/err.h>
1213d40330Schristos #include <openssl/dsaerr.h>
13b0d17251Schristos #include "crypto/dsaerr.h"
14b0d17251Schristos 
15b0d17251Schristos #ifndef OPENSSL_NO_DSA
16a89c9211Schristos 
17a89c9211Schristos # ifndef OPENSSL_NO_ERR
18a89c9211Schristos 
1913d40330Schristos static const ERR_STRING_DATA DSA_str_reasons[] = {
20b0d17251Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_FFC_PARAMETERS), "bad ffc parameters"},
2113d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_Q_VALUE), "bad q value"},
2213d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_DECODE_ERROR), "bn decode error"},
2313d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_ERROR), "bn error"},
2413d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_DECODE_ERROR), "decode error"},
2513d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_DIGEST_TYPE),
2613d40330Schristos     "invalid digest type"},
2713d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_PARAMETERS), "invalid parameters"},
2813d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PARAMETERS), "missing parameters"},
294ce06407Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PRIVATE_KEY),
304ce06407Schristos     "missing private key"},
3113d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MODULUS_TOO_LARGE), "modulus too large"},
3213d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_NO_PARAMETERS_SET), "no parameters set"},
3313d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_PARAMETER_ENCODING_ERROR),
3413d40330Schristos     "parameter encoding error"},
35b0d17251Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_P_NOT_PRIME), "p not prime"},
3613d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_Q_NOT_PRIME), "q not prime"},
3713d40330Schristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_SEED_LEN_SMALL),
38c7da899bSchristos     "seed_len is less than the length of q"},
39*4170684fSchristos     {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_TOO_MANY_RETRIES), "too many retries"},
40a89c9211Schristos     {0, NULL}
41a89c9211Schristos };
42a89c9211Schristos 
43a89c9211Schristos # endif
44a89c9211Schristos 
ossl_err_load_DSA_strings(void)45b0d17251Schristos int ossl_err_load_DSA_strings(void)
46a89c9211Schristos {
47a89c9211Schristos # ifndef OPENSSL_NO_ERR
48b0d17251Schristos     if (ERR_reason_error_string(DSA_str_reasons[0].error) == NULL)
4913d40330Schristos         ERR_load_strings_const(DSA_str_reasons);
50a89c9211Schristos # endif
51c7da899bSchristos     return 1;
52a89c9211Schristos }
53b0d17251Schristos #else
54b0d17251Schristos NON_EMPTY_TRANSLATION_UNIT
55b0d17251Schristos #endif
56