diff options
| author | jsing <> | 2014-04-27 16:19:04 +0000 |
|---|---|---|
| committer | jsing <> | 2014-04-27 16:19:04 +0000 |
| commit | 37888f1855086875d6d21338acdf1d2de8a56714 (patch) | |
| tree | 578fb4103ca4a83a8cb16899b282e21ec7b34c11 /src/lib/libcrypto/ui/ui_util.c | |
| parent | 349b17c0e910c2b9e211b74b5f37d2823ece179c (diff) | |
| download | openbsd-37888f1855086875d6d21338acdf1d2de8a56714.tar.gz openbsd-37888f1855086875d6d21338acdf1d2de8a56714.tar.bz2 openbsd-37888f1855086875d6d21338acdf1d2de8a56714.zip | |
We do not need a separate file for two compatibility wrapper functions.
ok miod@
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 | } | ||
