diff options
author | Richard Levitte <levitte@openssl.org> | 2017-06-27 16:05:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-06-28 12:54:33 +0200 |
commit | 9a32dcf42e2f728018a02b27df9734be480b7f3c (patch) | |
tree | 1422652682a4842d85729f6b306e691e97eedd78 | |
parent | f367ac2b2664df272aa1903c7650f0c64f539d28 (diff) |
Add the common error ERR_R_OPERATION_FAIL
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3744)
-rw-r--r-- | crypto/err/err.c | 1 | ||||
-rw-r--r-- | include/openssl/err.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 |