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
This commit is contained in:
Johan Danielsson
2002-09-10 21:02:30 +00:00
parent 8e356e5e5f
commit b1838de129

View File

@@ -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,