diff options
author | djm <> | 2008-09-06 12:17:54 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:17:54 +0000 |
commit | 38ce604e3cc97706b876b0525ddff0121115456d (patch) | |
tree | 7ccc28afe1789ea3dbedf72365f955d5b8e105b5 /src/lib/libcrypto/ui/ui.h | |
parent | 12867252827c8efaa8ddd1fa3b3d6e321e2bcdef (diff) | |
download | openbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.gz openbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.bz2 openbsd-38ce604e3cc97706b876b0525ddff0121115456d.zip |
resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/ui/ui.h')
-rw-r--r-- | src/lib/libcrypto/ui/ui.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/libcrypto/ui/ui.h b/src/lib/libcrypto/ui/ui.h index 735a2d988e..018296412b 100644 --- a/src/lib/libcrypto/ui/ui.h +++ b/src/lib/libcrypto/ui/ui.h | |||
@@ -59,25 +59,19 @@ | |||
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 | ||
62 | #include <openssl/crypto.h> | 63 | #include <openssl/crypto.h> |
64 | #endif | ||
63 | #include <openssl/safestack.h> | 65 | #include <openssl/safestack.h> |
66 | #include <openssl/ossl_typ.h> | ||
64 | 67 | ||
65 | #ifdef __cplusplus | 68 | #ifdef __cplusplus |
66 | extern "C" { | 69 | extern "C" { |
67 | #endif | 70 | #endif |
68 | 71 | ||
69 | /* The UI type is a holder for a specific user interface session. It can | 72 | /* Declared already in ossl_typ.h */ |
70 | contain an illimited number of informational or error strings as well | 73 | /* typedef struct ui_st UI; */ |
71 | as things to prompt for, both passwords (noecho mode) and others (echo | 74 | /* typedef struct ui_method_st UI_METHOD; */ |
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; | ||
81 | 75 | ||
82 | 76 | ||
83 | /* All the following functions return -1 or NULL on error and in some cases | 77 | /* All the following functions return -1 or NULL on error and in some cases |
@@ -217,7 +211,7 @@ int UI_process(UI *ui); | |||
217 | /* Give a user interface parametrised control commands. This can be used to | 211 | /* Give a user interface parametrised control commands. This can be used to |
218 | send down an integer, a data pointer or a function pointer, as well as | 212 | send down an integer, a data pointer or a function pointer, as well as |
219 | be used to get information from a UI. */ | 213 | be used to get information from a UI. */ |
220 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)()); | 214 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)(void)); |
221 | 215 | ||
222 | /* The commands */ | 216 | /* The commands */ |
223 | /* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the | 217 | /* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the |