diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_err.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_err.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/bn_err.c b/src/lib/libcrypto/bn/bn_err.c index 6fd6030a0c..3ee6b4311f 100644 --- a/src/lib/libcrypto/bn/bn_err.c +++ b/src/lib/libcrypto/bn/bn_err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_err.c,v 1.17 2023/07/08 12:21:58 beck Exp $ */ | 1 | /* $OpenBSD: bn_err.c,v 1.18 2024/06/24 06:43:22 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -60,17 +60,19 @@ | |||
60 | #include <openssl/err.h> | 60 | #include <openssl/err.h> |
61 | #include <openssl/bn.h> | 61 | #include <openssl/bn.h> |
62 | 62 | ||
63 | #include "err_local.h" | ||
64 | |||
63 | #ifndef OPENSSL_NO_ERR | 65 | #ifndef OPENSSL_NO_ERR |
64 | 66 | ||
65 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BN,func,0) | 67 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BN,func,0) |
66 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BN,0,reason) | 68 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BN,0,reason) |
67 | 69 | ||
68 | static ERR_STRING_DATA BN_str_functs[]= { | 70 | static const ERR_STRING_DATA BN_str_functs[] = { |
69 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, | 71 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, |
70 | {0, NULL} | 72 | {0, NULL} |
71 | }; | 73 | }; |
72 | 74 | ||
73 | static ERR_STRING_DATA BN_str_reasons[]= { | 75 | static const ERR_STRING_DATA BN_str_reasons[] = { |
74 | {ERR_REASON(BN_R_ARG2_LT_ARG3) , "arg2 lt arg3"}, | 76 | {ERR_REASON(BN_R_ARG2_LT_ARG3) , "arg2 lt arg3"}, |
75 | {ERR_REASON(BN_R_BAD_RECIPROCAL) , "bad reciprocal"}, | 77 | {ERR_REASON(BN_R_BAD_RECIPROCAL) , "bad reciprocal"}, |
76 | {ERR_REASON(BN_R_BIGNUM_TOO_LONG) , "bignum too long"}, | 78 | {ERR_REASON(BN_R_BIGNUM_TOO_LONG) , "bignum too long"}, |
@@ -100,8 +102,8 @@ ERR_load_BN_strings(void) | |||
100 | { | 102 | { |
101 | #ifndef OPENSSL_NO_ERR | 103 | #ifndef OPENSSL_NO_ERR |
102 | if (ERR_func_error_string(BN_str_functs[0].error) == NULL) { | 104 | if (ERR_func_error_string(BN_str_functs[0].error) == NULL) { |
103 | ERR_load_strings(0, BN_str_functs); | 105 | ERR_load_const_strings(BN_str_functs); |
104 | ERR_load_strings(0, BN_str_reasons); | 106 | ERR_load_const_strings(BN_str_reasons); |
105 | } | 107 | } |
106 | #endif | 108 | #endif |
107 | } | 109 | } |