From b1838de1297248126a53cd302aed4eaa912aa6b3 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 10 Sep 2002 21:02:30 +0000 Subject: [PATCH] if we only have old hash names, we need to include functions here that do the work git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11451 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp_md.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/otp/otp_md.c b/lib/otp/otp_md.c index 6167135b6..c66d713af 100644 --- a/lib/otp/otp_md.c +++ b/lib/otp/otp_md.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan + * Copyright (c) 1995 - 2002 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -61,6 +61,24 @@ compressmd (OtpKey key, unsigned char *md, size_t len) } } +#ifdef HAVE_OLD_HASH_NAMES +static void +otp_md4_final (void *res, struct md4 *m) +{ + MD4_Final(res, m); +} +#undef MD4_Final +#define MD4_Final otp_md4_final + +static void +otp_md5_final (void *res, struct md5 *m) +{ + MD5_Final(res, m); +} +#undef MD5_Final +#define MD5_Final otp_md5_final +#endif + static int otp_md_init (OtpKey key, const char *pwd,