diff options
Diffstat (limited to 'kexdh.c')
-rw-r--r-- | kexdh.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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 */ | ||
44 | extern int use_privsep; | ||
45 | extern int mm_recvfd; | ||
46 | 40 | ||
47 | static u_char * | 41 | static u_char * |
48 | kex_dh_hash( | 42 | kex_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 | ||