From: Theodore Tso Date: Thu, 13 Oct 1994 21:54:56 +0000 (+0000) Subject: Add support for the MDx test driver t_mddriver. Run t_mddriver on a X-Git-Tag: krb5-1.0-beta5~1127 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5c936e3fab12e863c4d9162889ca609546d6b54;p=krb5.git Add support for the MDx test driver t_mddriver. Run t_mddriver on a "make check", to make sure we have a valid MD4 implementation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4500 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/md4/ChangeLog b/src/lib/crypto/md4/ChangeLog index 68ae47e21..1b71d8d86 100644 --- a/src/lib/crypto/md4/ChangeLog +++ b/src/lib/crypto/md4/ChangeLog @@ -1,5 +1,9 @@ Thu Oct 13 17:48:21 1994 Theodore Y. Ts'o (tytso@dcl) + * Makefile.in: Add support for the MDx test driver t_mddriver. + Run t_mddriver on a "make check", to make sure we have a + valid MD4 implementation. + * md4.c (UL): Add the UL macro to control how unsigned long constants are compiled. If we have an ANSI C environment, use the UL suffix to keep the compiler from warning about diff --git a/src/lib/crypto/md4/Makefile.in b/src/lib/crypto/md4/Makefile.in index 192730009..625fab524 100644 --- a/src/lib/crypto/md4/Makefile.in +++ b/src/lib/crypto/md4/Makefile.in @@ -1,10 +1,25 @@ CFLAGS = $(CCOPTS) $(DEFS) LDFLAGS = -g -all:: $(OBJS) +all:: $(OBJS) t_mddriver OBJS= md4.o md4glue.o md4crypto.o SRCS= $(srcdir)/md4.c $(srcdir)/md4glue.c $(srcdir)/md4crypto.c + +t_mddriver.c: $(srcdir)/../md5/t_mddriver.c + $(CP) $(srcdir)/../md5/t_mddriver.c t_mddriver.c + +t_mddriver.o: t_mddriver.c + $(CC) -DMD=4 $(CFLAGS) -c t_mddriver.c + +t_mddriver: t_mddriver.o md4.o + $(CC) $(CFLAGS) -o t_mddriver t_mddriver.o md4.o + +check:: t_mddriver + ./t_mddriver -x + +clean:: + $(RM) t_mddriver t_mddriver.o t_mddriver.c