From 9a32dcf42e2f728018a02b27df9734be480b7f3c Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 27 Jun 2017 16:05:12 +0200 Subject: [PATCH] Add the common error ERR_R_OPERATION_FAIL Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/3744) --- crypto/err/err.c | 1 + include/openssl/err.h | 1 + 2 files changed, 2 insertions(+) diff --git a/crypto/err/err.c b/crypto/err/err.c index 1c5d9e7279..7cda5e19f5 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -117,6 +117,7 @@ static ERR_STRING_DATA ERR_str_reasons[] = { {ERR_R_INTERNAL_ERROR, "internal error"}, {ERR_R_DISABLED, "called a function that was disabled at compile-time"}, {ERR_R_INIT_FAIL, "init fail"}, + {ERR_R_OPERATION_FAIL, "operation fail"}, {0, NULL}, }; diff --git a/include/openssl/err.h b/include/openssl/err.h index 66619453bb..18ebcefe56 100644 --- a/include/openssl/err.h +++ b/include/openssl/err.h @@ -192,6 +192,7 @@ typedef struct err_state_st { # define ERR_R_DISABLED (5|ERR_R_FATAL) # define ERR_R_INIT_FAIL (6|ERR_R_FATAL) # define ERR_R_PASSED_INVALID_ARGUMENT (7) +# define ERR_R_OPERATION_FAIL (8|ERR_R_FATAL) /* * 99 is the maximum possible ERR_R_... code, higher values are reserved for -- 2.25.1