aboutsummaryrefslogtreecommitdiff
path: root/libssh/kex.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-26 00:36:02 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-26 00:36:02 +0200
commitadbb087221a90ef1fa687ae5d9575eedd77bcd06 (patch)
tree4c2d9fdc9a4371f1794bb7604e901da8516732f2 /libssh/kex.c
parent3a8d839e8604bf66c04ad0b46e51402428a88b1a (diff)
downloadlibssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.gz
libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.xz
libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.zip
Removed obsolete options
Diffstat (limited to 'libssh/kex.c')
-rw-r--r--libssh/kex.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libssh/kex.c b/libssh/kex.c
index ded0247e..d5eba61e 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");