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
f378ab4b
Commit
f378ab4b
authored
Oct 24, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use NEW() macro. Use make_connection_service().
Rev: src/lsh.c:1.14
parent
bcababa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/lsh.c
src/lsh.c
+5
-2
No files found.
src/lsh.c
View file @
f378ab4b
...
...
@@ -77,7 +77,9 @@ static struct verifier *do_host_lookup(struct lookup_verifier *c,
static
struct
lookup_verifier
*
make_fake_host_db
(
struct
signature_algorithm
*
a
)
{
struct
fake_host_db
*
res
=
xalloc
(
sizeof
(
struct
fake_host_db
));
struct
fake_host_db
*
res
;
NEW
(
res
);
res
->
super
.
lookup
=
do_host_lookup
;
res
->
algorithm
=
a
;
...
...
@@ -165,7 +167,7 @@ int main(int argc, char **argv)
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
make_kexinit
=
make_test_kexinit
(
r
);
service
=
make_
sess
ion_service
service
=
make_
connect
ion_service
(
make_alist
(
0
,
-
1
),
make_alist
(
0
,
-
1
));
...
...
@@ -174,6 +176,7 @@ int main(int argc, char **argv)
make_kexinit
,
algorithms
,
/* FIXME: make_service_handler is wrong function: It's for
* the server side. */
make_service_handler
(
make_alist
(
1
,
ATOM_SSH_USERAUTH
,
make_client_userauth
(
ssh_format
(
"%lz"
,
user
),
...
...
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