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
f6db39e1
Commit
f6db39e1
authored
Nov 14, 2000
by
Niels Möller
Browse files
* src/lsh.c: Use make_default_random().
Rev: src/lsh.c:1.121
parent
cf85d84f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh.c
View file @
f6db39e1
...
...
@@ -116,7 +116,7 @@ STATIC_REQUEST_SERVICE(ATOM_SSH_CONNECTION);
(vars
(backend object io_backend)
(random object randomness)
(random object randomness
_with_poll
)
(signature_algorithms object alist)
(home . "const char *")
...
...
@@ -183,11 +183,11 @@ make_options(struct io_backend *backend,
init_algorithms_options
(
&
self
->
super
,
all_symmetric_algorithms
());
self
->
backend
=
backend
;
self
->
random
=
make_de
vice
_random
(
"/dev/urandom"
);
self
->
random
=
make_de
fault
_random
(
NULL
,
handler
);
self
->
home
=
getenv
(
"HOME"
);
self
->
signature_algorithms
=
all_signature_algorithms
(
self
->
random
);
self
->
signature_algorithms
=
all_signature_algorithms
(
&
self
->
random
->
super
);
self
->
handler
=
handler
;
self
->
exit_code
=
exit_code
;
...
...
@@ -1112,7 +1112,7 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
LIST
(
self
->
kex_algorithms
)[
i
++
]
=
ATOM_SRP_RING1_SHA1_LOCAL
;
ALIST_SET
(
self
->
super
.
algorithms
,
ATOM_SRP_RING1_SHA1_LOCAL
,
make_srp_client
(
make_srp1
(
self
->
random
),
make_srp_client
(
make_srp1
(
&
self
->
random
->
super
),
ssh_format
(
"%lz"
,
self
->
user
)));
}
#endif
/* WITH_SRP */
...
...
@@ -1121,7 +1121,7 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
LIST
(
self
->
kex_algorithms
)[
i
++
]
=
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1
;
ALIST_SET
(
self
->
super
.
algorithms
,
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1
,
make_dh_client
(
make_dh1
(
self
->
random
)));
make_dh_client
(
make_dh1
(
&
self
->
random
->
super
)));
}
}
else
...
...
@@ -1247,6 +1247,9 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
break
;
}
/* Start background poll */
RANDOM_POLL_BACKGROUND
(
self
->
random
->
poller
);
break
;
case
'p'
:
...
...
@@ -1458,10 +1461,10 @@ int main(int argc, char **argv)
make_handshake_info
(
CONNECTION_CLIENT
,
"lsh - a free ssh"
,
NULL
,
SSH_MAX_PACKET
,
options
->
random
,
&
options
->
random
->
super
,
options
->
super
.
algorithms
,
NULL
),
make_simple_kexinit
(
options
->
random
,
make_simple_kexinit
(
&
options
->
random
->
super
,
options
->
kex_algorithms
,
options
->
super
.
hostkey_algorithms
,
options
->
super
.
crypto_algorithms
,
...
...
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