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
Konstantin Artyushkin
nxssh
Commits
642c20fc
Commit
642c20fc
authored
Nov 15, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nx buffer init
parent
3c1abee4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
proxy.c
proxy.c
+5
-0
proxy.h
proxy.h
+5
-0
ssh.c
ssh.c
+1
-0
No files found.
proxy.c
View file @
642c20fc
...
...
@@ -302,6 +302,11 @@ static int nx_set_nodelay(int fd);
static
int
nx_set_keepalive
(
int
fd
);
static
int
nx_set_lowdelay
(
int
fd
);
void
nx_proxy_init
()
{
buffer_init
((
&
nx_input_buffer
));
}
int
nx_proxy_select
(
int
maxfds
,
fd_set
*
readfds
,
fd_set
*
writefds
,
fd_set
*
exceptfds
,
struct
timeval
*
timeout
)
{
...
...
proxy.h
View file @
642c20fc
...
...
@@ -64,6 +64,11 @@ extern int nx_switch_forward;
int
nx_check_channel_input
(
Channel
*
channel
,
char
*
data
,
int
*
length
,
int
limit
);
/*
* Init buffer
*/
void
nx_proxy_init
();
/*
* Replace the select() with the version managing
* the NX descriptors.
*/
...
...
ssh.c
View file @
642c20fc
...
...
@@ -660,6 +660,7 @@ main(int ac, char **av)
u_char
conn_hash
[
SSH_DIGEST_MAX_LENGTH
];
int
nx_skip_config_file
=
0
;
nx_proxy_init
();
if
(
ac
>
1
&&
strcmp
(
av
[
1
],
"-nxstdinpass"
)
==
0
)
{
NXStdinPassEnabled
=
1
;
...
...
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