Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Алексей Аляев
nxssh
Commits
c7356ad3
Commit
c7356ad3
authored
Nov 08, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nx params to read conf
parent
22cc954c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
readconf.c
readconf.c
+21
-2
readconf.h
readconf.h
+3
-0
No files found.
readconf.c
View file @
c7356ad3
...
...
@@ -150,8 +150,8 @@ typedef enum {
oCertificateFile
,
oAddKeysToAgent
,
oIdentityAgent
,
oUser
,
oEscapeChar
,
oRhostsRSAAuthentication
,
oProxyCommand
,
oGlobalKnownHostsFile
,
oUserKnownHostsFile
,
oConnectionAttempts
,
oBatchMode
,
oCheckHostIP
,
oStrictHostKeyChecking
,
o
Compression
,
oCompressionLevel
,
oTCPKeepAlive
,
oNumberOfPasswordPrompts
,
oBatchMode
,
oCheckHostIP
,
oStrictHostKeyChecking
,
o
HostKeyAdd
,
oOnlyCheck
,
oCompression
,
oCompression
Level
,
oTCPKeepAlive
,
oNumberOfPasswordPrompts
,
oUsePrivilegedPort
,
oLogLevel
,
oCiphers
,
oProtocol
,
oMacs
,
oPubkeyAuthentication
,
oKbdInteractiveAuthentication
,
oKbdInteractiveDevices
,
oHostKeyAlias
,
...
...
@@ -261,6 +261,8 @@ static struct {
{
"batchmode"
,
oBatchMode
},
{
"checkhostip"
,
oCheckHostIP
},
{
"stricthostkeychecking"
,
oStrictHostKeyChecking
},
{
"hostkeyadd"
,
oHostKeyAdd
},
{
"onlycheck"
,
oOnlyCheck
},
{
"compression"
,
oCompression
},
{
"tcpkeepalive"
,
oTCPKeepAlive
},
{
"keepalive"
,
oTCPKeepAlive
},
/* obsolete */
...
...
@@ -995,6 +997,16 @@ parse_time:
multistate_ptr
=
multistate_yesnoask
;
goto
parse_multistate
;
case
oHostKeyAdd
:
intptr
=
&
options
->
hostkeyadd
;
multistate_ptr
=
multistate_flag
;
goto
parse_multistate
;
case
oOnlyCheck
:
intptr
=
&
options
->
onlycheck
;
multistate_ptr
=
multistate_flag
;
goto
parse_multistate
;
case
oCompression
:
intptr
=
&
options
->
compression
;
goto
parse_flag
;
...
...
@@ -1807,6 +1819,8 @@ initialize_options(Options * options)
options
->
batch_mode
=
-
1
;
options
->
check_host_ip
=
-
1
;
options
->
strict_host_key_checking
=
-
1
;
options
->
hostkeyadd
=
-
1
;
options
->
onlycheck
=
-
1
;
options
->
compression
=
-
1
;
options
->
tcp_keep_alive
=
-
1
;
options
->
compression_level
=
-
1
;
...
...
@@ -1879,6 +1893,7 @@ initialize_options(Options * options)
options
->
update_hostkeys
=
-
1
;
options
->
hostbased_key_types
=
NULL
;
options
->
pubkey_key_types
=
NULL
;
options
->
home
=
NULL
;
}
/*
...
...
@@ -1958,6 +1973,10 @@ fill_default_options(Options * options)
options
->
check_host_ip
=
1
;
if
(
options
->
strict_host_key_checking
==
-
1
)
options
->
strict_host_key_checking
=
2
;
/* 2 is default */
if
(
options
->
hostkeyadd
==
-
1
)
options
->
hostkeyadd
=
0
;
/* 0 is default */
if
(
options
->
onlycheck
==
-
1
)
options
->
onlycheck
=
0
;
/* 0 is default */
if
(
options
->
compression
==
-
1
)
options
->
compression
=
0
;
if
(
options
->
tcp_keep_alive
==
-
1
)
...
...
readconf.h
View file @
c7356ad3
...
...
@@ -53,6 +53,8 @@ typedef struct {
int
batch_mode
;
/* Batch mode: do not ask for passwords. */
int
check_host_ip
;
/* Also keep track of keys for IP address */
int
strict_host_key_checking
;
/* Strict host key checking. */
int
hostkeyadd
;
int
onlycheck
;
int
compression
;
/* Compress packets in both directions. */
int
compression_level
;
/* Compression level 1 (fast) to 9
* (best). */
...
...
@@ -169,6 +171,7 @@ typedef struct {
char
*
jump_extra
;
char
*
ignored_unknown
;
/* Pattern list of unknown tokens to ignore */
char
*
home
;
}
Options
;
#define SSH_CANONICALISE_NO 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment