summaryrefslogtreecommitdiff
path: root/dh.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:36:16 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:36:16 +0000
commitdf221391e620776789e40af9a885c7c9cd945bd3 (patch)
tree1639ed6e2923e7bb67cc3ebfc0c1bbae03150298 /dh.h
parent60a4381f1a6ebc2f8eeeb2ba4e005ede91ac9af3 (diff)
- provos@cvs.openbsd.org 2001/03/27 17:46:50
[compat.c compat.h dh.c dh.h ssh2.h sshconnect2.c sshd.c version.h] make dh group exchange more flexible, allow min and max group size, okay markus@, deraadt@
Diffstat (limited to 'dh.h')
-rw-r--r--dh.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/dh.h b/dh.h
index f08d70e3f..70b326e9f 100644
--- a/dh.h
+++ b/dh.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.h,v 1.2 2001/01/29 01:58:15 niklas Exp $ */ 1/* $OpenBSD: dh.h,v 1.3 2001/03/27 17:46:49 provos Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Niels Provos. All rights reserved. 4 * Copyright (c) 2000 Niels Provos. All rights reserved.
@@ -32,6 +32,9 @@ struct dhgroup {
32 BIGNUM *p; 32 BIGNUM *p;
33}; 33};
34 34
35DH *choose_dh(int minbits); 35DH *choose_dh(int min, int nbits, int max);
36
37#define DH_GRP_MIN 1024
38#define DH_GRP_MAX 8192
36 39
37#endif 40#endif