projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revamp SSH authentication code so that user interaction is more
[u/mdw/putty]
/
windows
/
winsftp.c
diff --git
a/windows/winsftp.c
b/windows/winsftp.c
index
6eecb31
..
47d3c43
100644
(file)
--- a/
windows/winsftp.c
+++ b/
windows/winsftp.c
@@
-127,6
+127,15
@@
void gui_enable(char *arg)
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
+int get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
+{
+ int ret;
+ ret = cmdline_get_passwd_input(p, in, inlen);
+ if (ret == -1)
+ ret = console_get_userpass_input(p, in, inlen);
+ return ret;
+}
+
/* ----------------------------------------------------------------------
* File access abstraction.
*/
/* ----------------------------------------------------------------------
* File access abstraction.
*/