aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.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/server.c
parent3a8d839e8604bf66c04ad0b46e51402428a88b1a (diff)
downloadlibssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.gz
libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.tar.xz
libssh-adbb087221a90ef1fa687ae5d9575eedd77bcd06.zip
Removed obsolete options
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 1eb09d55..7e9ad0b8 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -285,15 +285,7 @@ static int server_set_kex(ssh_session session) {
char *wanted;
ZERO_STRUCTP(server);
- /*
- * The program might ask for a specific cookie to be sent. Useful for server
- * debugging
- */
- if (options->wanted_cookie) {
- memcpy(server->cookie, options->wanted_cookie, 16);
- } else {
- ssh_get_random(server->cookie, 16, 0);
- }
+ ssh_get_random(server->cookie, 16, 0);
if (session->dsa_key != NULL && session->rsa_key != NULL) {
if (ssh_options_set(options, SSH_OPTIONS_SERVER_HOSTKEY,