| 1 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 OR ISC |
| 3 |
|
| 4 |
#ifndef UI_H |
| 5 |
#define UI_H |
| 6 |
|
| 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); |
| 24 |
|
| 25 |
/// UI_add_input_string does nothing, always returns -1 for failure. |
| 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); |
| 28 |
|
| 29 |
/// UI_add_verify_string does nothing, always returns -1 for failure. |
| 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 -1 for failure. |
| 34 |
OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_add_info_string(UI *ui, const char *text); |
| 35 |
|
| 36 |
/// UI_process does nothing, always returns -1 for failure. |
| 37 |
OPENSSL_EXPORT OPENSSL_DEPRECATED int UI_process(UI *ui); |
| 38 |
|
| 39 |
#endif //UI_H |