Add the common error ERR_R_OPERATION_FAIL
authorRichard Levitte <levitte@openssl.org>
Tue, 27 Jun 2017 14:05:12 +0000 (16:05 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 Jun 2017 10:54:33 +0000 (12:54 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3744)

crypto/err/err.c
include/openssl/err.h

index 1c5d9e72798af3ecc82ea28ef675b448bbffe6e7..7cda5e19f558d21fcb5cdb66b19d9e18ac674fa1 100644 (file)
@@ -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},
 };
index 66619453bb6cfe0a085fe2bd4394f405b42c3ca1..18ebcefe5686f29bc3fb3433f79e1b7c3b398bfc 100644 (file)
@@ -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