From df221391e620776789e40af9a885c7c9cd945bd3 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Thu, 29 Mar 2001 00:36:16 +0000 Subject: - 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@ --- dh.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dh.h') diff --git a/dh.h b/dh.h index f08d70e3f..70b326e9f 100644 --- a/dh.h +++ b/dh.h @@ -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 -- cgit v1.2.3