diff options
Diffstat (limited to 'stubs/no-cmdline.c')
-rw-r--r-- | stubs/no-cmdline.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/stubs/no-cmdline.c b/stubs/no-cmdline.c new file mode 100644 index 00000000..2476354e --- /dev/null +++ b/stubs/no-cmdline.c @@ -0,0 +1,22 @@ +/* + * no-cmdline.c - stubs in applications which don't do the + * standard(ish) PuTTY tools' command-line parsing + */ + +#include <stdio.h> +#include <assert.h> +#include <stdlib.h> +#include "putty.h" + +/* + * Stub version of the function in cmdline.c which provides the + * password to SSH authentication by remembering it having been passed + * as a command-line option. If we're not doing normal command-line + * handling, then there is no such option, so that function always + * returns failure. + */ +SeatPromptResult cmdline_get_passwd_input( + prompts_t *p, cmdline_get_passwd_input_state *state, bool restartable) +{ + return SPR_INCOMPLETE; +} |