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:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* 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
|
static int
|
||||||
otp_md_init (OtpKey key,
|
otp_md_init (OtpKey key,
|
||||||
const char *pwd,
|
const char *pwd,
|
||||||
|
Reference in New Issue
Block a user