Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
d4a6d90a
Commit
d4a6d90a
authored
Sep 15, 2003
by
Pontus Freyhult
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_handshake_info): New parameter
banner_text, init attribute. Rev: src/handshake.c:1.18
parent
bbdf1d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/handshake.c
src/handshake.c
+9
-1
No files found.
src/handshake.c
View file @
d4a6d90a
...
...
@@ -296,7 +296,8 @@ make_handshake_info(enum connection_flag flags,
uint32_t
block_size
,
struct
randomness
*
r
,
struct
alist
*
algorithms
,
struct
ssh1_fallback
*
fallback
)
struct
ssh1_fallback
*
fallback
,
struct
lsh_string
*
banner_text
)
{
NEW
(
handshake_info
,
self
);
self
->
flags
=
flags
;
...
...
@@ -306,6 +307,7 @@ make_handshake_info(enum connection_flag flags,
self
->
random
=
r
;
self
->
algorithms
=
algorithms
;
self
->
fallback
=
fallback
;
self
->
banner_text
=
banner_text
;
return
self
;
}
...
...
@@ -425,6 +427,12 @@ DEFINE_COMMAND4(handshake_command)
}
#endif
/* WITH_SSH1_FALLBACK */
if
(
info
->
banner_text
)
{
A_WRITE
(
connection
->
raw
,
ssh_format
(
"%lS
\r\n
"
,
info
->
banner_text
));
}
A_WRITE
(
connection
->
raw
,
ssh_format
(
"%lS
\r\n
"
,
version
));
...
...
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