diff options
author | jsing <> | 2022-08-29 06:49:24 +0000 |
---|---|---|
committer | jsing <> | 2022-08-29 06:49:24 +0000 |
commit | bdf36f0b35ba06ef02f6e2684939f2d89a262241 (patch) | |
tree | 71905b2a11cb11c5a938be84e89e67d1d6b4509c | |
parent | c0e544bfa9e294b6b70bc730202bba012157b47f (diff) | |
download | openbsd-bdf36f0b35ba06ef02f6e2684939f2d89a262241.tar.gz openbsd-bdf36f0b35ba06ef02f6e2684939f2d89a262241.tar.bz2 openbsd-bdf36f0b35ba06ef02f6e2684939f2d89a262241.zip |
Provide ERR_R_INIT_FAIL.
Needed for an upcoming change.
ok tb@
-rw-r--r-- | src/lib/libcrypto/err/err.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/err/err.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index f05567e173..349140543b 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: err.c,v 1.48 2019/10/17 14:28:53 jsing Exp $ */ | 1 | /* $OpenBSD: err.c,v 1.49 2022/08/29 06:49:24 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -215,6 +215,7 @@ static ERR_STRING_DATA ERR_str_reasons[] = { | |||
215 | {ERR_R_PASSED_NULL_PARAMETER, "passed a null parameter"}, | 215 | {ERR_R_PASSED_NULL_PARAMETER, "passed a null parameter"}, |
216 | {ERR_R_INTERNAL_ERROR, "internal error"}, | 216 | {ERR_R_INTERNAL_ERROR, "internal error"}, |
217 | {ERR_R_DISABLED , "called a function that was disabled at compile-time"}, | 217 | {ERR_R_DISABLED , "called a function that was disabled at compile-time"}, |
218 | {ERR_R_INIT_FAIL, "initialization failure"}, | ||
218 | 219 | ||
219 | {0, NULL}, | 220 | {0, NULL}, |
220 | }; | 221 | }; |
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h index f792a6db23..24708c5b1a 100644 --- a/src/lib/libcrypto/err/err.h +++ b/src/lib/libcrypto/err/err.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: err.h,v 1.27 2022/05/05 08:48:05 tb Exp $ */ | 1 | /* $OpenBSD: err.h,v 1.28 2022/08/29 06:49:24 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -346,11 +346,11 @@ typedef struct err_state_st { | |||
346 | #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) | 346 | #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) |
347 | #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) | 347 | #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) |
348 | #define ERR_R_DISABLED (5|ERR_R_FATAL) | 348 | #define ERR_R_DISABLED (5|ERR_R_FATAL) |
349 | #define ERR_R_INIT_FAIL (6|ERR_R_FATAL) | ||
349 | 350 | ||
350 | /* 99 is the maximum possible ERR_R_... code, higher values | 351 | /* 99 is the maximum possible ERR_R_... code, higher values |
351 | * are reserved for the individual libraries */ | 352 | * are reserved for the individual libraries */ |
352 | 353 | ||
353 | |||
354 | typedef struct ERR_string_data_st { | 354 | typedef struct ERR_string_data_st { |
355 | unsigned long error; | 355 | unsigned long error; |
356 | const char *string; | 356 | const char *string; |