diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_util.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_util.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/libcrypto/ui/ui_util.c b/src/lib/libcrypto/ui/ui_util.c index 81c5a079a6..5654ce3825 100644 --- a/src/lib/libcrypto/ui/ui_util.c +++ b/src/lib/libcrypto/ui/ui_util.c | |||
@@ -54,6 +54,9 @@ | |||
54 | */ | 54 | */ |
55 | 55 | ||
56 | #include <string.h> | 56 | #include <string.h> |
57 | |||
58 | #include <openssl/ui_compat.h> | ||
59 | |||
57 | #include "ui_locl.h" | 60 | #include "ui_locl.h" |
58 | 61 | ||
59 | int | 62 | int |
@@ -91,3 +94,18 @@ UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) | |||
91 | ok = 0; | 94 | ok = 0; |
92 | return (ok); | 95 | return (ok); |
93 | } | 96 | } |
97 | |||
98 | /* | ||
99 | * Old compatibility glue - see comment in ui_compat.h. | ||
100 | */ | ||
101 | int | ||
102 | _ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify) | ||
103 | { | ||
104 | return UI_UTIL_read_pw_string(buf, length, prompt, verify); | ||
105 | } | ||
106 | |||
107 | int | ||
108 | _ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) | ||
109 | { | ||
110 | return UI_UTIL_read_pw(buf, buff, size, prompt, verify); | ||
111 | } | ||