summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2019-08-11 14:18:39 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2019-08-11 14:18:39 +0000
commitf2b76ee25d324547c353ed3d7c9cae5c7b358c00 (patch)
tree0c04b006d8ed42ad10184c0e986f34f4b75971df
parent146b772ea09933c024feb321953874519e942624 (diff)
Fix loading of CMS error strings.
-rw-r--r--lib/libcrypto/cms/cms_err.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/cms/cms_err.c b/lib/libcrypto/cms/cms_err.c
index de7c544a50f..9b2abaa03b1 100644
--- a/lib/libcrypto/cms/cms_err.c
+++ b/lib/libcrypto/cms/cms_err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cms_err.c,v 1.10 2019/08/10 18:15:52 jsing Exp $ */
+/* $OpenBSD: cms_err.c,v 1.11 2019/08/11 14:18:38 jsing Exp $ */
/*
* Generated by util/mkerr.pl DO NOT EDIT
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
@@ -14,7 +14,7 @@
#ifndef OPENSSL_NO_ERR
-static const ERR_STRING_DATA CMS_str_functs[] = {
+static ERR_STRING_DATA CMS_str_functs[] = {
{ERR_PACK(ERR_LIB_CMS, CMS_F_CHECK_CONTENT, 0), "check_content"},
{ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD0_CERT, 0), "CMS_add0_cert"},
{ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD0_RECIPIENT_KEY, 0),
@@ -154,7 +154,7 @@ static const ERR_STRING_DATA CMS_str_functs[] = {
{0, NULL}
};
-static const ERR_STRING_DATA CMS_str_reasons[] = {
+static ERR_STRING_DATA CMS_str_reasons[] = {
{ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ADD_SIGNER_ERROR), "add signer error"},
{ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_ALREADY_PRESENT),
"certificate already present"},
@@ -288,8 +288,8 @@ ERR_load_CMS_strings(void)
{
#ifndef OPENSSL_NO_ERR
if (ERR_func_error_string(CMS_str_functs[0].error) == NULL) {
- ERR_load_strings_const(CMS_str_functs);
- ERR_load_strings_const(CMS_str_reasons);
+ ERR_load_strings(ERR_LIB_CMS, CMS_str_functs);
+ ERR_load_strings(ERR_LIB_CMS, CMS_str_reasons);
}
#endif
return 1;