mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-13 02:23:50 -05:00

This was needed at the time it was introduced in commit c99338b750aed37, because uxputty.c (as was) handled its non-option arguments directly (that was how Unix PuTTY and pterm arranged to have different sets of them), and sometimes did it by converting them into option arguments and feeding them to cmdline.c, so it still needed to not fail to link when not linked against cmdline.c (for the GtkApplication based front end). But now the non-option argument handling is centralised into cmdline.c itself, with a system of flags indicating which arguments a particular tool expects. So that stub is no longer needed.
22 lines
580 B
C
22 lines
580 B
C
/*
|
|
* nocmdline.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)
|
|
{
|
|
return SPR_INCOMPLETE;
|
|
}
|