From 0a293dbc366f9b2e746116941fb89380fe60ea93 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 29 Jan 2001 05:55:18 +0000 Subject: [PATCH] repair some api-change damage git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9569 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp_md.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/otp/otp_md.c b/lib/otp/otp_md.c index 399be53cf..50764b52b 100644 --- a/lib/otp/otp_md.c +++ b/lib/otp/otp_md.c @@ -38,9 +38,21 @@ RCSID("$Id$"); #include "otp_locl.h" #include "otp_md.h" +#ifdef HAVE_OPENSSL_MD4_H +#include +#else #include +#endif +#ifdef HAVE_OPENSSL_MD5_H +#include +#else #include +#endif +#ifdef HAVE_OPENSSL_SHA_H +#include +#else #include +#endif /* * Compress len bytes from md into key @@ -212,7 +224,7 @@ otp_md5_next (OtpKey key) */ static void -SHA1_Final_little_endian (void *res, struct sha1 *m) +SHA1_Final_little_endian (void *res, SHA_CTX *m) { unsigned char tmp[20]; unsigned char *p = res;