diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-26 00:36:02 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-26 00:36:02 +0200 |
commit | adbb087221a90ef1fa687ae5d9575eedd77bcd06 (patch) | |
tree | 4c2d9fdc9a4371f1794bb7604e901da8516732f2 /libssh/kex.c | |
parent | 3a8d839e8604bf66c04ad0b46e51402428a88b1a (diff) | |
download | libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.gz libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.xz libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.zip |
Removed obsolete options
Diffstat (limited to 'libssh/kex.c')
-rw-r--r-- | libssh/kex.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libssh/kex.c b/libssh/kex.c index ded0247..d5eba61 100644 --- a/libssh/kex.c +++ b/libssh/kex.c @@ -341,11 +341,7 @@ int set_kex(ssh_session session){ int i; const char *wanted; enter_function(); - /* the client might ask for a specific cookie to be sent. useful for server debugging */ - if(options->wanted_cookie) - memcpy(client->cookie,options->wanted_cookie,16); - else - ssh_get_random(client->cookie,16,0); + ssh_get_random(client->cookie,16,0); client->methods=malloc(10 * sizeof(char **)); if (client->methods == NULL) { ssh_set_error(session, SSH_FATAL, "No space left"); |