From 416e8eb72725cceb8a4127215fad01bef9e09727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 18 Jan 2006 13:48:30 +0000 Subject: [PATCH] Add DH_check_pubkey and defines it uses. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16585 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/dh.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/des/dh.h b/lib/des/dh.h index a9e2c314c..f2ad3131d 100644 --- a/lib/des/dh.h +++ b/lib/des/dh.h @@ -104,6 +104,10 @@ struct DH { ENGINE *engine; }; +/* DH_check_pubkey return codes in `codes' argument. */ +#define DH_CHECK_PUBKEY_TOO_SMALL 1 +#define DH_CHECK_PUBKEY_TOO_LARGE 2 + /* * */ @@ -127,7 +131,7 @@ int DH_set_ex_data(DH *, int, void *); void * DH_get_ex_data(DH *, int); int DH_generate_parameters_ex(DH *, int, int, BN_GENCB *); -int DH_check(const DH *,int *); +int DH_check_pubkey(const DH *, const BIGNUM *, int *); int DH_generate_key(DH *); int DH_compute_key(unsigned char *,const BIGNUM *,DH *);