summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-12-07 16:36:44 +0100
committerRichard Levitte <levitte@openssl.org>2016-12-08 00:06:43 +0100
commit0a687ab0a92d2d68289364a6e232028c229f44bb (patch)
tree840d4e1949a942b758fc9fd69ad7fef146ff0fb0 /include
parent7cb58c0ffa7203e8ad4d39c912a1ab5e21a12b85 (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)
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