VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.2/crypto/dsa/dsa_err.c@ 101021

Last change on this file since 101021 was 101021, checked in by vboxsync, 15 months ago

openssl-3.1.2: Applied and adjusted our OpenSSL changes to 3.1.0. bugref:10519

File size: 2.0 KB
Line 
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
4 *
5 * Licensed under the Apache License 2.0 (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
9 */
10
11#include <openssl/err.h>
12#include <openssl/dsaerr.h>
13#include "crypto/dsaerr.h"
14
15#ifndef OPENSSL_NO_DSA
16
17# ifndef OPENSSL_NO_ERR
18
19static const ERR_STRING_DATA DSA_str_reasons[] = {
20 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_FFC_PARAMETERS), "bad ffc parameters"},
21 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_Q_VALUE), "bad q value"},
22 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_DECODE_ERROR), "bn decode error"},
23 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_ERROR), "bn error"},
24 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_DECODE_ERROR), "decode error"},
25 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_DIGEST_TYPE),
26 "invalid digest type"},
27 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_PARAMETERS), "invalid parameters"},
28 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PARAMETERS), "missing parameters"},
29 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PRIVATE_KEY),
30 "missing private key"},
31 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MODULUS_TOO_LARGE), "modulus too large"},
32 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_NO_PARAMETERS_SET), "no parameters set"},
33 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_PARAMETER_ENCODING_ERROR),
34 "parameter encoding error"},
35 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_P_NOT_PRIME), "p not prime"},
36 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_Q_NOT_PRIME), "q not prime"},
37 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_SEED_LEN_SMALL),
38 "seed_len is less than the length of q"},
39 {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_TOO_MANY_RETRIES), "too many retries"},
40 {0, NULL}
41};
42
43# endif
44
45int ossl_err_load_DSA_strings(void)
46{
47# ifndef OPENSSL_NO_ERR
48 if (ERR_reason_error_string(DSA_str_reasons[0].error) == NULL)
49 ERR_load_strings_const(DSA_str_reasons);
50# endif
51 return 1;
52}
53#else
54NON_EMPTY_TRANSLATION_UNIT
55#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette