diff options
author | 2014-04-27 16:19:04 +0000 | |
---|---|---|
committer | 2014-04-27 16:19:04 +0000 | |
commit | 7a5c4121499027e8bb5afb256fe95c8f35064563 (patch) | |
tree | 5c86921bd592a427434581f7bbbe6e09fe1b1183 /lib/libssl/src/crypto/ui/ui_util.c | |
parent | Fix leak last commit introduced. Spotted by Sebastian Kapfer. (diff) | |
download | wireguard-openbsd-7a5c4121499027e8bb5afb256fe95c8f35064563.tar.xz wireguard-openbsd-7a5c4121499027e8bb5afb256fe95c8f35064563.zip |
We do not need a separate file for two compatibility wrapper functions.
ok miod@
Diffstat (limited to 'lib/libssl/src/crypto/ui/ui_util.c')
-rw-r--r-- | lib/libssl/src/crypto/ui/ui_util.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/ui/ui_util.c b/lib/libssl/src/crypto/ui/ui_util.c index 81c5a079a65..5654ce38252 100644 --- a/lib/libssl/src/crypto/ui/ui_util.c +++ b/lib/libssl/src/crypto/ui/ui_util.c @@ -54,6 +54,9 @@ */ #include <string.h> + +#include <openssl/ui_compat.h> + #include "ui_locl.h" int @@ -91,3 +94,18 @@ UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) ok = 0; return (ok); } + +/* + * Old compatibility glue - see comment in ui_compat.h. + */ +int +_ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify) +{ + return UI_UTIL_read_pw_string(buf, length, prompt, verify); +} + +int +_ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) +{ + return UI_UTIL_read_pw(buf, buff, size, prompt, verify); +} |