diff options
Diffstat (limited to 'src/lib/libcrypto/ct')
| -rw-r--r-- | src/lib/libcrypto/ct/ct_err.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ct/ct_err.c b/src/lib/libcrypto/ct/ct_err.c index 2597874bd3..494f88b898 100644 --- a/src/lib/libcrypto/ct/ct_err.c +++ b/src/lib/libcrypto/ct/ct_err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ct_err.c,v 1.7 2022/07/12 14:42:48 kn Exp $ */ | 1 | /* $OpenBSD: ct_err.c,v 1.8 2024/06/24 06:43:22 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -56,9 +56,11 @@ | |||
| 56 | #include <openssl/ct.h> | 56 | #include <openssl/ct.h> |
| 57 | #include <openssl/err.h> | 57 | #include <openssl/err.h> |
| 58 | 58 | ||
| 59 | #include "err_local.h" | ||
| 60 | |||
| 59 | #ifndef OPENSSL_NO_ERR | 61 | #ifndef OPENSSL_NO_ERR |
| 60 | 62 | ||
| 61 | static ERR_STRING_DATA CT_str_functs[] = { | 63 | static const ERR_STRING_DATA CT_str_functs[] = { |
| 62 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW, 0), "CTLOG_new"}, | 64 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW, 0), "CTLOG_new"}, |
| 63 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW_FROM_BASE64, 0), | 65 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW_FROM_BASE64, 0), |
| 64 | "CTLOG_new_from_base64"}, | 66 | "CTLOG_new_from_base64"}, |
| @@ -101,7 +103,7 @@ static ERR_STRING_DATA CT_str_functs[] = { | |||
| 101 | {0, NULL} | 103 | {0, NULL} |
| 102 | }; | 104 | }; |
| 103 | 105 | ||
| 104 | static ERR_STRING_DATA CT_str_reasons[] = { | 106 | static const ERR_STRING_DATA CT_str_reasons[] = { |
| 105 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_BASE64_DECODE_ERROR), | 107 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_BASE64_DECODE_ERROR), |
| 106 | "base64 decode error"}, | 108 | "base64 decode error"}, |
| 107 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_INVALID_LOG_ID_LENGTH), | 109 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_INVALID_LOG_ID_LENGTH), |
| @@ -140,8 +142,8 @@ int | |||
| 140 | ERR_load_CT_strings(void) | 142 | ERR_load_CT_strings(void) |
| 141 | { | 143 | { |
| 142 | if (ERR_func_error_string(CT_str_functs[0].error) == NULL) { | 144 | if (ERR_func_error_string(CT_str_functs[0].error) == NULL) { |
| 143 | ERR_load_strings(0, CT_str_functs); | 145 | ERR_load_const_strings(CT_str_functs); |
| 144 | ERR_load_strings(0, CT_str_reasons); | 146 | ERR_load_const_strings(CT_str_reasons); |
| 145 | } | 147 | } |
| 146 | return 1; | 148 | return 1; |
| 147 | } | 149 | } |
