diff options
author | Damien Miller <djm@mindrot.org> | 2002-03-13 02:47:54 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-03-13 02:47:54 +0100 |
commit | 646e7cf3d7e7d4231c2d97d27c09fe5fe1d749e2 (patch) | |
tree | a693368c47d2d044514878fbb1516f87b487f78b /kexdh.c | |
parent | [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to (diff) | |
download | openssh-646e7cf3d7e7d4231c2d97d27c09fe5fe1d749e2.tar.xz openssh-646e7cf3d7e7d4231c2d97d27c09fe5fe1d749e2.zip |
Import of Niels Provos' 20020312 ssh-complete.diff
PAM, Cygwin and OSF SIA will not work for sure
Diffstat (limited to 'kexdh.c')
-rw-r--r-- | kexdh.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -37,6 +37,12 @@ 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( @@ -275,7 +281,12 @@ kexdh_server(Kex *kex) /* sign H */ /* XXX hashlen depends on KEX */ - key_sign(server_host_key, &signature, &slen, hash, 20); + 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); /* destroy_sensitive_data(); */ |