diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2022-08-29 06:49:25 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2022-08-29 06:49:25 +0000 |
commit | 19ff3c1d217161aea09badadf02a6dbdc7131c5a (patch) | |
tree | 3513a1612c1bd4d9483ec8affbdf60e324f27475 | |
parent | d5f686f995571bb326566cc516e97e08aaf480fc (diff) |
Provide ERR_R_INIT_FAIL.
Needed for an upcoming change.
ok tb@
-rw-r--r-- | lib/libcrypto/err/err.c | 3 | ||||
-rw-r--r-- | lib/libcrypto/err/err.h | 4 |
2 files changed, 4 insertions, 3 deletions
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; |