Commit b2f6e8fd authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.15
Rev: src/server_keyexchange.c:1.20
parent af523d38
Sun Dec 27 06:37:40 1998 <nisse@puck>
* server.c (do_line): Compression support.
* make_class: New type special-struct.
* lsh.c (main): Zlib support.
* lshd.c (main): Zlib support.
* keyexchange.c (kex_make_deflate): New function.
(kex_make_inflate): New function.
(do_handle_newkeys): Compression support.
(make_newkeys_handler): -"-
(do_install): -"-
* compress.h, compress.c, abstract_compress.c,
abstract_compress.h, zlib.h, zlib.c: New files (by Baszi).
* connection.c (connection_init_io): Compression support.
* client.c (do_line): Compression support.
* client.c (do_exit_signal): Send CHANNEL_EOF.
* configure.in: Fixed the configure test for shutdown. Check for
zlib.
Sat Dec 26 02:37:18 1998 <nisse@puck>
* keyexchange.c (do_install): Bugfix: Look at closure->is_server
......
......@@ -179,56 +179,3 @@ make_dh_server(struct diffie_hellman_method *dh,
return &self->super;
}
#if 0
/* FIXME: This is identical to the client_install_keys structure in
* client_keyexchange.c. It should probably be moved somewhere else. */
/* CLASS:
(class
(name server_install_keys)
(super install_keys)
(vars
(algorithms object object_list)))
*/
static int do_install(struct install_keys *c,
struct ssh_connection *connection,
struct hash_instance *secret)
{
/* FIXME: For DES, instantiating a crypto may fail, if the key
* happens to be weak. */
/* FIXME: No IV:s */
CAST(server_install_keys, closure, c);
/* Keys for receiving */
connection->dispatch[SSH_MSG_NEWKEYS] = make_newkeys_handler
(kex_make_encrypt(secret, closure->algorithms,
KEX_ENCRYPTION_CLIENT_TO_SERVER, connection),
kex_make_mac(secret, closure->algorithms,
KEX_MAC_CLIENT_TO_SERVER, connection));
/* Keys for sending */
/* NOTE: The NEWKEYS-message should have been sent before this
* function is called */
connection->send_crypto
= kex_make_decrypt(secret, closure->algorithms,
KEX_ENCRYPTION_SERVER_TO_CLIENT, connection);
connection->send_mac
= kex_make_mac(secret, closure->algorithms,
KEX_MAC_SERVER_TO_CLIENT, connection);
return 1;
}
struct install_keys *make_server_install_keys(struct object_list *algorithms)
{
NEW(server_install_keys, self);
self->super.install = do_install;
self->algorithms = algorithms;
return &self->super;
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment