diff options
author | djm <> | 2008-09-06 12:15:56 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:15:56 +0000 |
commit | 5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80 (patch) | |
tree | aba68249883aa9d2361d92eef69a81d0c4961732 /src/lib/libcrypto/ui/ui.h | |
parent | f6198d4d0ab97685dc56be2d48715ed39fcc74b9 (diff) | |
download | openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.gz openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.bz2 openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.zip |
import of OpenSSL 0.9.8h
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 |