summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/kex.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-04-12 07:03:07 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-04-12 07:03:07 +0000
commit3f6547314a456d02e3306664e55213db57f93a14 (patch)
treeb34510294f7588b64651fe5b068096dcbfff738d /usr.bin/ssh/kex.h
parent4cba919149b8a5f18774f2399edd94a9062ca307 (diff)
check for reasonable public DH values
Diffstat (limited to 'usr.bin/ssh/kex.h')
-rw-r--r--usr.bin/ssh/kex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/kex.h b/usr.bin/ssh/kex.h
index f9e79994888..5395ebc3f08 100644
--- a/usr.bin/ssh/kex.h
+++ b/usr.bin/ssh/kex.h
@@ -91,7 +91,8 @@ struct Kex {
};
Buffer *kex_init(char *myproposal[PROPOSAL_MAX]);
-DH *new_dh_group1();
+int dh_pub_is_valid(DH *dh, BIGNUM *dh_pub);
+DH *dh_new_group1();
Kex *kex_choose_conf(char *cprop[PROPOSAL_MAX], char *sprop[PROPOSAL_MAX], int server);
int kex_derive_keys(Kex *k, unsigned char *hash, BIGNUM *shared_secret);
void bignum_print(BIGNUM *b);