FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
putty/nocmdline.c at master · github/putty · GitHub
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
github
/
putty
Public archive
Notifications
You must be signed in to change notification settings
Fork
152
Star
342
Code
Pull requests
1
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
putty
/
nocmdline.c
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (34 loc) · 1.25 KB
Breadcrumbs
putty
/
nocmdline.c
Copy path
File metadata and controls
37 lines (34 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* 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.
*/
int
cmdline_get_passwd_input
(
prompts_t
*
p
)
{
return
-1
;
}
/*
* The main cmdline_process_param function is normally called from
* applications' main(). An application linking against this stub
* module shouldn't have a main() that calls it in the first place :-)
* but it is just occasionally called by other supporting functions,
* such as one in uxputty.c which sometimes handles a non-option
* argument by making up equivalent options and passing them back to
* this function. So we have to provide a link-time stub of this
* function, but it had better not end up being called at run time.
*/
int
cmdline_process_param
(
const
char
*
p
,
char
*
value
,
int
need_save
,
Conf
*
conf
)
{
unreachable
(
"cmdline_process_param should never be called"
);
}
Back
|
FazBrowse Home
|
New Git URL