diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_err.c | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_err.c b/src/lib/libcrypto/dsa/dsa_err.c index 6934fe14f0..8effa58a48 100644 --- a/src/lib/libcrypto/dsa/dsa_err.c +++ b/src/lib/libcrypto/dsa/dsa_err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_err.c,v 1.19 2023/07/08 14:28:15 beck Exp $ */ | 1 | /* $OpenBSD: dsa_err.c,v 1.20 2024/05/19 08:21:13 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -65,40 +65,38 @@ | |||
| 65 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0) | 65 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0) |
| 66 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason) | 66 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason) |
| 67 | 67 | ||
| 68 | static ERR_STRING_DATA DSA_str_functs[]= { | 68 | static ERR_STRING_DATA DSA_str_functs[] = { |
| 69 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, | 69 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, |
| 70 | {0, NULL} | 70 | {0, NULL} |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | static ERR_STRING_DATA DSA_str_reasons[]= | 73 | static ERR_STRING_DATA DSA_str_reasons[] = { |
| 74 | { | 74 | {ERR_REASON(DSA_R_BAD_Q_VALUE) ,"bad q value"}, |
| 75 | {ERR_REASON(DSA_R_BAD_Q_VALUE) ,"bad q value"}, | 75 | {ERR_REASON(DSA_R_BN_DECODE_ERROR) ,"bn decode error"}, |
| 76 | {ERR_REASON(DSA_R_BN_DECODE_ERROR) ,"bn decode error"}, | 76 | {ERR_REASON(DSA_R_BN_ERROR) ,"bn error"}, |
| 77 | {ERR_REASON(DSA_R_BN_ERROR) ,"bn error"}, | 77 | {ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"}, |
| 78 | {ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"}, | 78 | {ERR_REASON(DSA_R_DECODE_ERROR) ,"decode error"}, |
| 79 | {ERR_REASON(DSA_R_DECODE_ERROR) ,"decode error"}, | 79 | {ERR_REASON(DSA_R_INVALID_DIGEST_TYPE) ,"invalid digest type"}, |
| 80 | {ERR_REASON(DSA_R_INVALID_DIGEST_TYPE) ,"invalid digest type"}, | 80 | {ERR_REASON(DSA_R_INVALID_PARAMETERS) ,"invalid parameters"}, |
| 81 | {ERR_REASON(DSA_R_INVALID_PARAMETERS) ,"invalid parameters"}, | 81 | {ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"}, |
| 82 | {ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"}, | 82 | {ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"}, |
| 83 | {ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"}, | 83 | {ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES) ,"need new setup values"}, |
| 84 | {ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES) ,"need new setup values"}, | 84 | {ERR_REASON(DSA_R_NON_FIPS_DSA_METHOD) ,"non fips dsa method"}, |
| 85 | {ERR_REASON(DSA_R_NON_FIPS_DSA_METHOD) ,"non fips dsa method"}, | 85 | {ERR_REASON(DSA_R_NO_PARAMETERS_SET) ,"no parameters set"}, |
| 86 | {ERR_REASON(DSA_R_NO_PARAMETERS_SET) ,"no parameters set"}, | 86 | {ERR_REASON(DSA_R_PARAMETER_ENCODING_ERROR),"parameter encoding error"}, |
| 87 | {ERR_REASON(DSA_R_PARAMETER_ENCODING_ERROR),"parameter encoding error"}, | 87 | {0,NULL} |
| 88 | {0,NULL} | 88 | }; |
| 89 | }; | ||
| 90 | 89 | ||
| 91 | #endif | 90 | #endif |
| 92 | 91 | ||
| 93 | void ERR_load_DSA_strings(void) | 92 | void |
| 94 | { | 93 | ERR_load_DSA_strings(void) |
| 94 | { | ||
| 95 | #ifndef OPENSSL_NO_ERR | 95 | #ifndef OPENSSL_NO_ERR |
| 96 | 96 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) { | |
| 97 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) | ||
| 98 | { | ||
| 99 | ERR_load_strings(0,DSA_str_functs); | 97 | ERR_load_strings(0,DSA_str_functs); |
| 100 | ERR_load_strings(0,DSA_str_reasons); | 98 | ERR_load_strings(0,DSA_str_reasons); |
| 101 | } | ||
| 102 | #endif | ||
| 103 | } | 99 | } |
| 100 | #endif | ||
| 101 | } | ||
| 104 | LCRYPTO_ALIAS(ERR_load_DSA_strings); | 102 | LCRYPTO_ALIAS(ERR_load_DSA_strings); |
