diff options
author | djm <djm> | 2002-03-13 01:47:54 +0000 |
---|---|---|
committer | djm <djm> | 2002-03-13 01:47:54 +0000 |
commit | aee643ed80571221e9fe252a9c67903324010c2b (patch) | |
tree | eceab9f1aed7bc71355ea6def4bcadf6e0f23b67 /kexdh.c | |
parent | 14ec045decce3c41bf1de2f432c899963471a808 (diff) | |
download | openssh-aee643ed80571221e9fe252a9c67903324010c2b.tar.gz |
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(); */ |