From: jsing Date: Mon, 29 Aug 2022 06:49:24 +0000 (+0000) Subject: Provide ERR_R_INIT_FAIL. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0b4a951401011334f788498f0238a245353e3f85;p=openbsd Provide ERR_R_INIT_FAIL. Needed for an upcoming change. ok tb@ --- diff --git a/lib/libcrypto/err/err.c b/lib/libcrypto/err/err.c index f05567e1739..349140543b6 100644 --- a/lib/libcrypto/err/err.c +++ b/lib/libcrypto/err/err.c @@ -1,4 +1,4 @@ -/* $OpenBSD: err.c,v 1.48 2019/10/17 14:28:53 jsing Exp $ */ +/* $OpenBSD: err.c,v 1.49 2022/08/29 06:49:24 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -215,6 +215,7 @@ static ERR_STRING_DATA ERR_str_reasons[] = { {ERR_R_PASSED_NULL_PARAMETER, "passed a null parameter"}, {ERR_R_INTERNAL_ERROR, "internal error"}, {ERR_R_DISABLED , "called a function that was disabled at compile-time"}, + {ERR_R_INIT_FAIL, "initialization failure"}, {0, NULL}, }; diff --git a/lib/libcrypto/err/err.h b/lib/libcrypto/err/err.h index f792a6db232..24708c5b1a9 100644 --- a/lib/libcrypto/err/err.h +++ b/lib/libcrypto/err/err.h @@ -1,4 +1,4 @@ -/* $OpenBSD: err.h,v 1.27 2022/05/05 08:48:05 tb Exp $ */ +/* $OpenBSD: err.h,v 1.28 2022/08/29 06:49:24 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -346,11 +346,11 @@ typedef struct err_state_st { #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) #define ERR_R_DISABLED (5|ERR_R_FATAL) +#define ERR_R_INIT_FAIL (6|ERR_R_FATAL) /* 99 is the maximum possible ERR_R_... code, higher values * are reserved for the individual libraries */ - typedef struct ERR_string_data_st { unsigned long error; const char *string;