From 2d1189cc666963d15602b868b77c4c4d2784965b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 28 Dec 2007 15:27:52 +0000 Subject: [PATCH] document. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22368 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/dh-imath.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/hcrypto/dh-imath.c b/lib/hcrypto/dh-imath.c index c900e35b8..f4e5e118a 100644 --- a/lib/hcrypto/dh-imath.c +++ b/lib/hcrypto/dh-imath.c @@ -224,7 +224,7 @@ dh_finish(DH *dh) * */ -const DH_METHOD hc_dh_imath_method = { +const DH_METHOD _hc_dh_imath_method = { "hcrypto imath DH", dh_generate_key, dh_compute_key, @@ -236,8 +236,16 @@ const DH_METHOD hc_dh_imath_method = { dh_generate_params }; +/** + * DH implementation using libimath. + * + * @return the DH_METHOD for the DH implementation using libimath. + * + * @ingroup hcrypto_dh + */ + const DH_METHOD * DH_imath_method(void) { - return &hc_dh_imath_method; + return &_hc_dh_imath_method; }