the Cygnus krb.a.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5176
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Mar 20 21:14:40 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * Makefile.in, unix_time.c(unix_time_gmt_unixsec): Added function
+ needed for des425 to work with the Cygnus krb.a.
+
Wed Mar 15 13:44:23 1995 Keith Vetter (keithv@fusion.com)
* des.h: now includes des_int.h for proper prototypes.
random_key.$(OBJEXT) \
read_passwd.$(OBJEXT) \
str_to_key.$(OBJEXT) \
+ unix_time.$(OBJEXT) \
weak_key.$(OBJEXT)
SRCS= $(srcdir)/cksum.c \
$(srcdir)/random_key.c \
$(srcdir)/read_passwd.c \
$(srcdir)/str_to_key.c \
+ $(srcdir)/unix_time.c \
$(srcdir)/weak_key.c
--- /dev/null
+/*
+ * unix_time.c
+ *
+ * Glue code for pasting Kerberos into the Unix environment.
+ *
+ * Originally written by John Gilmore, Cygnus Support, May '94.
+ * Public Domain.
+ *
+ * Required for use by the Cygnus krb.a.
+ */
+
+#include "k5-int.h"
+#include <sys/time.h>
+
+krb5_ui_4 INTERFACE
+unix_time_gmt_unixsec (usecptr)
+ krb5_ui_4 *usecptr;
+{
+ struct timeval now;
+
+ (void) gettimeofday (&now, (struct timezone *)0);
+ if (usecptr)
+ *usecptr = now.tv_usec;
+ return now.tv_sec;
+}