summaryrefslogtreecommitdiff
path: root/kexdh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexdh.c')
-rw-r--r--kexdh.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/kexdh.c b/kexdh.c
index 6256722ff..eaf497ca7 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -37,12 +37,6 @@ RCSID("$OpenBSD: kexdh.c,v 1.17 2002/02/28 15:46:33 markus Exp $");
37#include "packet.h" 37#include "packet.h"
38#include "dh.h" 38#include "dh.h"
39#include "ssh2.h" 39#include "ssh2.h"
40#include "monitor.h"
41#include "monitor_wrap.h"
42
43/* Imports */
44extern int use_privsep;
45extern int mm_recvfd;
46 40
47static u_char * 41static u_char *
48kex_dh_hash( 42kex_dh_hash(
@@ -281,12 +275,7 @@ kexdh_server(Kex *kex)
281 275
282 /* sign H */ 276 /* sign H */
283 /* XXX hashlen depends on KEX */ 277 /* XXX hashlen depends on KEX */
284 if (use_privsep) 278 key_sign(server_host_key, &signature, &slen, hash, 20);
285 mm_key_sign(mm_recvfd,
286 kex->host_key_index(server_host_key),
287 &signature, &slen, hash, 20);
288 else
289 key_sign(server_host_key, &signature, &slen, hash, 20);
290 279
291 /* destroy_sensitive_data(); */ 280 /* destroy_sensitive_data(); */
292 281