]> andersk Git - openssh.git/blobdiff - kexdh.c
- (djm) OpenBSD CVS Sync
[openssh.git] / kexdh.c
diff --git a/kexdh.c b/kexdh.c
index 6256722ff9d001815186a1d3747a39a80df225a1..1e91e2550228134df0a7567149a8a4119e870f4e 100644 (file)
--- a/kexdh.c
+++ b/kexdh.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: kexdh.c,v 1.17 2002/02/28 15:46:33 markus Exp $");
+RCSID("$OpenBSD: kexdh.c,v 1.18 2002/03/18 17:50:31 provos Exp $");
 
 #include <openssl/crypto.h>
 #include <openssl/bn.h>
@@ -37,13 +37,8 @@ RCSID("$OpenBSD: kexdh.c,v 1.17 2002/02/28 15:46:33 markus Exp $");
 #include "packet.h"
 #include "dh.h"
 #include "ssh2.h"
-#include "monitor.h"
 #include "monitor_wrap.h"
 
-/* Imports */
-extern int use_privsep;
-extern int mm_recvfd;
-
 static u_char *
 kex_dh_hash(
     char *client_version_string,
@@ -281,12 +276,7 @@ kexdh_server(Kex *kex)
 
        /* sign H */
        /* XXX hashlen depends on KEX */
-       if (use_privsep)
-               mm_key_sign(mm_recvfd,
-                   kex->host_key_index(server_host_key),
-                   &signature, &slen, hash, 20);
-       else
-               key_sign(server_host_key, &signature, &slen, hash, 20);
+       PRIVSEP(key_sign(server_host_key, &signature, &slen, hash, 20));
 
        /* destroy_sensitive_data(); */
 
This page took 0.030814 seconds and 4 git commands to generate.