diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-29 00:36:16 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-29 00:36:16 +0000 |
commit | df221391e620776789e40af9a885c7c9cd945bd3 (patch) | |
tree | 1639ed6e2923e7bb67cc3ebfc0c1bbae03150298 /dh.h | |
parent | 60a4381f1a6ebc2f8eeeb2ba4e005ede91ac9af3 (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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.2 2001/01/29 01:58:15 niklas Exp $ */ +/* $OpenBSD: dh.h,v 1.3 2001/03/27 17:46:49 provos Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. @@ -32,6 +32,9 @@ struct dhgroup { BIGNUM *p; }; -DH *choose_dh(int minbits); +DH *choose_dh(int min, int nbits, int max); + +#define DH_GRP_MIN 1024 +#define DH_GRP_MAX 8192 #endif |