diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-21 10:00:23 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 21:47:28 +1100 |
commit | e93bd98eab79b9a78f64ee8dd4dffc4d3979c7ae (patch) | |
tree | b02f3b1ca965cfa9fbbf3fbf4b8a3b56d93088cd /kex.h | |
parent | 5ae3f6d314465026d028af82609c1d49ad197655 (diff) |
upstream: factor out DH keygen; it's identical between the client
and the server
from markus@ ok djm@
OpenBSD-Commit-ID: 2be57f6a0d44f1ab2c8de2b1b5d6f530c387fae9
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.94 2019/01/19 21:43:56 djm Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.95 2019/01/21 10:00:23 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -202,6 +202,7 @@ int kexecdh_server(struct ssh *); | |||
202 | int kexc25519_client(struct ssh *); | 202 | int kexc25519_client(struct ssh *); |
203 | int kexc25519_server(struct ssh *); | 203 | int kexc25519_server(struct ssh *); |
204 | 204 | ||
205 | int kex_dh_keygen(struct kex *); | ||
205 | int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *, | 206 | int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *, |
206 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, | 207 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, |
207 | const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); | 208 | const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); |