diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui.h')
-rw-r--r-- | src/lib/libcrypto/ui/ui.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ui/ui.h b/src/lib/libcrypto/ui/ui.h index 018296412b..735a2d988e 100644 --- a/src/lib/libcrypto/ui/ui.h +++ b/src/lib/libcrypto/ui/ui.h | |||
@@ -59,19 +59,25 @@ | |||
59 | #ifndef HEADER_UI_H | 59 | #ifndef HEADER_UI_H |
60 | #define HEADER_UI_H | 60 | #define HEADER_UI_H |
61 | 61 | ||
62 | #ifndef OPENSSL_NO_DEPRECATED | ||
63 | #include <openssl/crypto.h> | 62 | #include <openssl/crypto.h> |
64 | #endif | ||
65 | #include <openssl/safestack.h> | 63 | #include <openssl/safestack.h> |
66 | #include <openssl/ossl_typ.h> | ||
67 | 64 | ||
68 | #ifdef __cplusplus | 65 | #ifdef __cplusplus |
69 | extern "C" { | 66 | extern "C" { |
70 | #endif | 67 | #endif |
71 | 68 | ||
72 | /* Declared already in ossl_typ.h */ | 69 | /* The UI type is a holder for a specific user interface session. It can |
73 | /* typedef struct ui_st UI; */ | 70 | contain an illimited number of informational or error strings as well |
74 | /* typedef struct ui_method_st UI_METHOD; */ | 71 | as things to prompt for, both passwords (noecho mode) and others (echo |
72 | mode), and verification of the same. All of these are called strings, | ||
73 | and are further described below. */ | ||
74 | typedef struct ui_st UI; | ||
75 | |||
76 | /* All instances of UI have a reference to a method structure, which is a | ||
77 | ordered vector of functions that implement the lower level things to do. | ||
78 | There is an instruction on the implementation further down, in the section | ||
79 | for method implementors. */ | ||
80 | typedef struct ui_method_st UI_METHOD; | ||
75 | 81 | ||
76 | 82 | ||
77 | /* All the following functions return -1 or NULL on error and in some cases | 83 | /* All the following functions return -1 or NULL on error and in some cases |
@@ -211,7 +217,7 @@ int UI_process(UI *ui); | |||
211 | /* Give a user interface parametrised control commands. This can be used to | 217 | /* Give a user interface parametrised control commands. This can be used to |
212 | send down an integer, a data pointer or a function pointer, as well as | 218 | send down an integer, a data pointer or a function pointer, as well as |
213 | be used to get information from a UI. */ | 219 | be used to get information from a UI. */ |
214 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)(void)); | 220 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)()); |
215 | 221 | ||
216 | /* The commands */ | 222 | /* The commands */ |
217 | /* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the | 223 | /* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the |