(krb5_int32 *,
krb5_int32 *);
-time_t gmt_mktime (struct tm *);
+time_t krb5int_gmt_mktime (struct tm *);
#endif /* KRB5_OLD_CRYPTO */
#define cleanup()\
return 0
-time_t gmt_mktime (struct tm *);
+extern time_t krb5int_gmt_mktime (struct tm *);
asn1_error_code asn1_decode_integer(asn1buf *buf, long int *val)
{
ts.tm_min = 10*c2i(s[10]) + c2i(s[11]);
ts.tm_sec = 10*c2i(s[12]) + c2i(s[13]);
ts.tm_isdst = -1;
- t = gmt_mktime(&ts);
+ t = krb5int_gmt_mktime(&ts);
free(s);
if(t == -1) return ASN1_BAD_TIMEFORMAT;
et_krb5_error_table
et_kv5m_error_table
et_prof_error_table
-gmt_mktime
initialize_asn1_error_table
initialize_k524_error_table
initialize_kdb5_error_table
gen_port.o \
genaddrs.o \
gen_rname.o \
- gmt_mktime.o \
hostaddr.o \
hst_realm.o \
init_os_ctx.o \
$(OUTPRE)gen_port.$(OBJEXT) \
$(OUTPRE)genaddrs.$(OBJEXT) \
$(OUTPRE)gen_rname.$(OBJEXT) \
- $(OUTPRE)gmt_mktime.$(OBJEXT) \
$(OUTPRE)hostaddr.$(OBJEXT) \
$(OUTPRE)hst_realm.$(OBJEXT) \
$(OUTPRE)init_os_ctx.$(OBJEXT) \
$(srcdir)/gen_port.c \
$(srcdir)/genaddrs.c \
$(srcdir)/gen_rname.c \
- $(srcdir)/gmt_mktime.c \
$(srcdir)/hostaddr.c \
$(srcdir)/hst_realm.c \
$(srcdir)/init_os_ctx.c \
t_realm_iter: $(T_REALM_ITER_OBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o t_realm_iter $(T_REALM_ITER_OBJS) $(KRB5_BASE_LIBS)
-t_mktime: gmt_mktime.c
- $(CC) $(ALL_CFLAGS) -DTEST_LEAP -o t_mktime $(srcdir)/gmt_mktime.c
-
t_localaddr: localaddr.c
$(CC_LINK) $(ALL_CFLAGS) -DTEST -o t_localaddr $(srcdir)/localaddr.c $(KRB5_BASE_LIBS) $(LIBS)
$(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
$(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
gen_rname.c os-proto.h
-gmt_mktime.so gmt_mktime.po $(OUTPRE)gmt_mktime.$(OBJEXT): \
- $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5.h \
- $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
- $(COM_ERR_DEPS) $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-int.h \
- $(SRCTOP)/include/k5-locate.h $(SRCTOP)/include/k5-platform.h \
- $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
- $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
- gmt_mktime.c
hostaddr.so hostaddr.po $(OUTPRE)hostaddr.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5.h \
$(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
init-addrinfo.o \
plugins.o \
errors.o \
+ gmt_mktime.o \
fake-addrinfo.o
LIBOBJS= \
$(OUTPRE)init-addrinfo.$(OBJEXT) \
$(OUTPRE)plugins.$(OBJEXT) \
$(OUTPRE)errors.$(OBJEXT) \
+ $(OUTPRE)gmt_mktime.$(OBJEXT) \
$(OUTPRE)fake-addrinfo.$(OBJEXT)
STOBJLISTS=OBJS.ST
$(srcdir)/threads.c \
$(srcdir)/init-addrinfo.c \
$(srcdir)/errors.c \
+ $(srcdir)/gmt_mktime.c \
$(srcdir)/fake-addrinfo.c
SHLIB_EXPDEPS =
# Add -lm if dumping thread stats, for sqrt.
(cd $(BUILDTOP)/include; $(MAKE) autoconf.h)
##DOS##!endif
+t_mktime: gmt_mktime.c
+ $(CC) $(ALL_CFLAGS) -DTEST_LEAP -o t_mktime $(srcdir)/gmt_mktime.c
+
# @lib_frag@
# @libobj_frag@
errors.so errors.po $(OUTPRE)errors.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
$(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-platform.h \
$(SRCTOP)/include/k5-thread.h errors.c
+gmt_mktime.so gmt_mktime.po $(OUTPRE)gmt_mktime.$(OBJEXT): \
+ $(BUILDTOP)/include/autoconf.h gmt_mktime.c
fake-addrinfo.so fake-addrinfo.po $(OUTPRE)fake-addrinfo.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/fake-addrinfo.h \
$(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
/* This code placed in the public domain by Mark W. Eichin */
#include <stdio.h>
-#include "k5-int.h"
+#include "autoconf.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#define hasleapday(year) (year%400?(year%100?(year%4?0:1):0):1)
-time_t gmt_mktime(struct tm *t)
+time_t krb5int_gmt_mktime(struct tm *t)
{
time_t accum;
krb5int_free_error
krb5int_clear_error
krb5int_set_error_info_callout_fn
+krb5int_gmt_mktime