summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-12-07 16:36:44 +0100
committerRichard Levitte <richard@levitte.org>2016-12-08 00:09:04 +0100
commitaff927e84c3bce5b7ebc2cc72f99a571ea89c2b1 (patch)
tree894edf30bf7eb7e9f6822257308d1bbdb2fd50dc /include
parent72ea4b8de29bd29dcc44b3d3a73660fe4d1bba40 (diff)
UI_process() didn't generate errors
Since there are many parts of UI_process() that can go wrong, it isn't very helpful to only return -1 with no further explanation. With this change, the error message will at least show which part went wrong. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2037) (cherry picked from commit 0a687ab0a92d2d68289364a6e232028c229f44bb)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ui.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/ui.h b/include/openssl/ui.h
index 26f4f04495..c62c05d17e 100644
--- a/include/openssl/ui.h
+++ b/include/openssl/ui.h
@@ -350,6 +350,7 @@ int ERR_load_UI_strings(void);
# define UI_F_UI_DUP_VERIFY_STRING 106
# define UI_F_UI_GET0_RESULT 107
# define UI_F_UI_NEW_METHOD 104
+# define UI_F_UI_PROCESS 113
# define UI_F_UI_SET_RESULT 105
/* Reason codes. */
@@ -357,6 +358,7 @@ int ERR_load_UI_strings(void);
# define UI_R_INDEX_TOO_LARGE 102
# define UI_R_INDEX_TOO_SMALL 103
# define UI_R_NO_RESULT_BUFFER 105
+# define UI_R_PROCESSING_ERROR 107
# define UI_R_RESULT_TOO_LARGE 100
# define UI_R_RESULT_TOO_SMALL 101
# define UI_R_UNKNOWN_CONTROL_COMMAND 106