|
4 | 4 | #ifndef UI_H |
5 | 5 | #define UI_H |
6 | 6 |
|
7 | | -#endif //UI_H |
| 7 | +#include "openssl/base.h" |
| 8 | +struct ui_st { |
| 9 | + char _unused; |
| 10 | +}; |
| 11 | + |
| 12 | +struct ui_method_st { |
| 13 | + char _unused; |
| 14 | +}; |
| 15 | + |
| 16 | +typedef struct ui_st UI; |
| 17 | +typedef struct ui_method_st UI_METHOD; |
| 18 | + |
| 19 | +/// UI_new does nothing, always returns NULL. |
| 20 | +OPENSSL_EXPORT OPENSSL_DEPRECATED UI *UI_new(void); |
| 21 | + |
| 22 | +/// UI_free invokes OPENSSL_free on its parameter. |
| 23 | +OPENSSL_EXPORT OPENSSL_DEPRECATED void UI_free(UI *ui); |
8 | 24 |
|
9 | | -// Intentionally empty. |
| 25 | +/// UI_add_input_string does nothing, always returns 0. |
| 26 | +OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_add_input_string(UI *ui, const char *prompt, int flags, |
| 27 | + char *result_buf, int minsize, int maxsize); |
10 | 28 |
|
11 | | -// Prevent compiler fall-through picking up "openssl/ui.h" from the system path. |
| 29 | +/// UI_add_verify_string does nothing, always returns 0. |
| 30 | +OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_add_verify_string(UI *ui, const char *prompt, int flags, |
| 31 | + char *result_buf, int minsize, int maxsize, const char *test_buf); |
| 32 | + |
| 33 | +/// UI_add_info_string does nothing, always returns 0. |
| 34 | +OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_add_info_string(UI *ui, const char *text); |
| 35 | + |
| 36 | +/// UI_process does nothing, always returns 0. |
| 37 | +OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_process(UI *ui); |
| 38 | + |
| 39 | +#endif //UI_H |
0 commit comments