Skip to content
Snippets Groups Projects
Commit 24f4abca authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.3
Rev: src/keyexchange.c:1.26
parent a051c708
No related branches found
No related tags found
No related merge requests found
Tue Dec 8 10:29:50 1998 <nisse@puck>
* crypto.c (do_sha_copy, ): Use the CLONE macro instead of memcpy to
copy instances.
(do_hmac_copy): -"-
Fri Dec 4 02:30:28 1998 <nisse@puck> Fri Dec 4 02:30:28 1998 <nisse@puck>
* (practically every file): Adapted to new gc and object system. * (practically every file): Adapted to new gc and object system.
......
...@@ -100,10 +100,9 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet) ...@@ -100,10 +100,9 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet)
|| (msg_number != SSH_MSG_KEXINIT) ) || (msg_number != SSH_MSG_KEXINIT) )
{ {
KILL(res); KILL(res);
return 0; return NULL;
} }
if (!parse_octets(&buffer, 16, res->cookie)) if (!parse_octets(&buffer, 16, res->cookie))
{ {
KILL(res); KILL(res);
...@@ -425,7 +424,7 @@ struct mac_instance *kex_make_mac(struct hash_instance *secret, ...@@ -425,7 +424,7 @@ struct mac_instance *kex_make_mac(struct hash_instance *secret,
int type, int type,
struct ssh_connection *connection) struct ssh_connection *connection)
{ {
CAST(mac_algorithm, algorithm, LIST(algorithms)[type]); CAST_SUBTYPE(mac_algorithm, algorithm, LIST(algorithms)[type]);
struct mac_instance *mac; struct mac_instance *mac;
struct lsh_string *key; struct lsh_string *key;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment