summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-09-13 02:08:33 +0000
committerDamien Miller <djm@mindrot.org>2018-09-13 12:12:33 +1000
commit482d23bcacdd3664f21cc82a5135f66fc598275f (patch)
tree362f697a94da0a765d1dabcfbf33370b2a4df121 /monitor.c
parentd70d061828730a56636ab6f1f24fe4a8ccefcfc1 (diff)
upstream: hold our collective noses and use the openssl-1.1.x API in
OpenSSH; feedback and ok tb@ jsing@ markus@ OpenBSD-Commit-ID: cacbcac87ce5da0d3ca7ef1b38a6f7fb349e4417
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index d4b4b0471..b30813b4d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -566,6 +566,7 @@ int
566mm_answer_moduli(int sock, struct sshbuf *m) 566mm_answer_moduli(int sock, struct sshbuf *m)
567{ 567{
568 DH *dh; 568 DH *dh;
569 const BIGNUM *dh_p, *dh_g;
569 int r; 570 int r;
570 u_int min, want, max; 571 u_int min, want, max;
571 572
@@ -590,9 +591,10 @@ mm_answer_moduli(int sock, struct sshbuf *m)
590 return (0); 591 return (0);
591 } else { 592 } else {
592 /* Send first bignum */ 593 /* Send first bignum */
594 DH_get0_pqg(dh, &dh_p, NULL, &dh_g);
593 if ((r = sshbuf_put_u8(m, 1)) != 0 || 595 if ((r = sshbuf_put_u8(m, 1)) != 0 ||
594 (r = sshbuf_put_bignum2(m, dh->p)) != 0 || 596 (r = sshbuf_put_bignum2(m, dh_p)) != 0 ||
595 (r = sshbuf_put_bignum2(m, dh->g)) != 0) 597 (r = sshbuf_put_bignum2(m, dh_g)) != 0)
596 fatal("%s: buffer error: %s", __func__, ssh_err(r)); 598 fatal("%s: buffer error: %s", __func__, ssh_err(r));
597 599
598 DH_free(dh); 600 DH_free(dh);