Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
5448300e
Commit
5448300e
authored
Apr 16, 2003
by
Niels Möller
Browse files
(kexinit_filter): Deleted command.
Rev: src/keyexchange.c:1.90 Rev: src/keyexchange.h:1.58
parent
d5f2ad9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/keyexchange.c
View file @
5448300e
...
...
@@ -781,38 +781,6 @@ make_simple_kexinit(struct randomness *r,
return
&
res
->
super
;
}
/* FIXME: Move this to a separate file keyexchange_commands.c? */
/* (kexinit_filter simple_kexinit alist)
*
* Destructively modifies the simple_kexinit to include only hostkey
* algorithms that have keys in alist. */
DEFINE_COMMAND2
(
kexinit_filter
)
(
struct
command_2
*
s
UNUSED
,
struct
lsh_object
*
a1
,
struct
lsh_object
*
a2
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
UNUSED
)
{
CAST
(
simple_kexinit
,
init
,
a1
);
CAST_SUBTYPE
(
alist
,
keys
,
a2
);
init
->
hostkey_algorithms
=
filter_algorithms
(
keys
,
init
->
hostkey_algorithms
);
if
(
!
init
->
hostkey_algorithms
)
{
werror
(
"No hostkey algorithms advertised.
\n
"
);
init
->
hostkey_algorithms
=
make_int_list
(
1
,
ATOM_NONE
,
-
1
);
}
assert
(
LIST_LENGTH
(
init
->
hostkey_algorithms
));
COMMAND_RETURN
(
c
,
init
);
}
static
int
install_keys
(
struct
object_list
*
algorithms
,
struct
ssh_connection
*
connection
,
...
...
src/keyexchange.h
View file @
5448300e
...
...
@@ -129,8 +129,6 @@ make_simple_kexinit(struct randomness *r,
struct
int_list
*
compression_algorithms
,
struct
int_list
*
languages
);
extern
struct
command_2
kexinit_filter
;
#define KEXINIT_FILTER (&kexinit_filter.super.super)
/* Sends the keyexchange message, which must already be stored in
* connection->kexinits[connection->flags & CONNECTION_MODE]
...
...
Write
Preview
Supports
Markdown
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