libkrb4.a. (Even though it's never used, some OS's demand that all of
the references in a shared library have to be resolved.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5906
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri May 26 21:43:52 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * util.c: Added new function, des_cblock_print_file(), which is
+ referenced by libkrb4.a. (Even though it's never used,
+ some OS's demand that all of the references in a
+ shared library have to be resolved.)
+
Mon May 1 11:29:37 1995 Ezra Peisach (epeisach@kangaroo.mit.edu)
* read_passwd.c: (des_read_pw_string): Call to krb5_read_password
##DOSLIBNAME=libdes425.lib
##DOS!include $(BUILDTOP)\config\windows.in
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS= cksum.$(OBJEXT) \
des.$(OBJEXT) \
enc_dec.$(OBJEXT) \
read_passwd.$(OBJEXT) \
str_to_key.$(OBJEXT) \
unix_time.$(OBJEXT) \
+ util.$(OBJEXT) \
weak_key.$(OBJEXT)
SRCS= $(srcdir)/cksum.c \
$(srcdir)/read_passwd.c \
$(srcdir)/str_to_key.c \
$(srcdir)/unix_time.c \
+ $(srcdir)/util.c \
$(srcdir)/weak_key.c
+LIB_SUBDIRS= .
+LIBDONE= ./DONE
+
EXT_LIB= libdes425.a $(TOPLIBD)/libcrypto.a
DEPKLIB= $(TOPLIBD)/libcrypto.a
-all:: $(OBJS)
+all:: all-$(WHAT)
+
+all-unix:: shared $(OBJS)
+all-mac:: $(OBJS)
+all-windows:: $(OBJS)
+
+shared:
+ mkdir shared
verify: verify.o libdes425.a $(DEPKLIB)
$(CC) -o $@ verify.o $(LDFLAGS) $(EXT_LIB)
check-windows::
-clean::
+clean:: clean-$(WHAT)
$(RM) verify$(EXEEXT) verify.$(OBJEXT)
+clean-unix::
+ $(RM) shared/*
+
+clean-mac::
+clean-windows::
+
libdes425.a: $(OBJS)
$(RM) $@
$(ARADD) $@ $(OBJS)
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
+V5_SHARED_LIB_OBJS
+SubdirLibraryRule([${OBJS}])
AppendRule([all:: libdes425.a])
+V5_MAKE_SHARED_LIB(libdes425)
KRB_INCLUDE
WITH_KRB5ROOT
V5_AC_OUTPUT_MAKEFILE
--- /dev/null
+/*
+ * $Source$
+ * $Author$
+ *
+ * Copyright 1988 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
+ *
+ * Miscellaneous debug printing utilities
+ */
+
+#ifndef lint
+static char rcsid_util_c[] =
+"$Header$";
+#endif lint
+
+#include <stdio.h>
+
+/* Application include files */
+#include "k5-int.h"
+#include "des.h"
+
+des_cblock_print_file(x, fp)
+ des_cblock *x;
+ FILE *fp;
+{
+ unsigned char *y = (unsigned char *) x;
+ register int i = 0;
+ fprintf(fp," 0x { ");
+
+ while (i++ < 8) {
+ fprintf(fp,"%x",*y++);
+ if (i < 8)
+ fprintf(fp,", ");
+ }
+ fprintf(fp," }");
+}