+Tue May 30 10:22:57 1995 Keith Vetter (keithv@fusion.com)
+
+ * adm_proto.h: conditionally removed for Windows two prototypes
+ that use the database.
+ * k5-config.h: bumped MAXPATHLEN and removed need for the kdb.h file.
+
Fri May 26 10:17:12 1995 Keith Vetter (keithv@fusion.com)
* adm_proto.h: added more missing INTERFACE.
krb5_auth_context *,
krb5_ccache));
+#if ! defined(_WINDOWS)
/* adm_kw_dec.c */
krb5_error_code krb5_adm_proto_to_dbent
PROTOTYPE((krb5_context,
char *,
krb5_int32 *,
krb5_data **));
+#endif /* _WINDOWS */
/* adm_kt_dec.c */
krb5_error_code krb5_adm_proto_to_ktent
#define INI_KRB5_CONF "krb5.ini" /* Location of krb5.conf file */
#define KRB5_DBM_COMPAT__ /* Don't load dbm.h */
+#define KRB5_KDB5__ /* Don't load kdb.h */
#define KRB5_KDB5_DBM__ /* Don't load kdb_dbm.h */
#define BITS16
#define SIZEOF_SHORT 2
#define SIZEOF_LONG 4
#define MAXHOSTNAMELEN 512
-#define MAXPATHLEN 128
+#define MAXPATHLEN 256 /* Also for Windows temp files */
#define KRB5_USE_INET
#define MSDOS_FILESYSTEM
+Tue May 30 10:35:07 1995 Keith Vetter (keithv@fusion.com)
+
+ * adm_conn.c: used Windows specific way of creating a temp file.
+ * Makefile.in: PC doesn't need to compile adm_kw_*.c files.
+
Thu May 25 17:49:06 1995 Keith Vetter (keithv@fusion.com)
First pass to make the code compile cleanly on the PC.
##DOSLIBNAME=kadm.lib
##DOS!include $(BUILDTOP)\config\windows.in
-OBJS= adm_conn.$(OBJEXT) \
- adm_kw_dec.$(OBJEXT) \
- adm_kw_enc.$(OBJEXT) \
+BASE_OBJS= adm_conn.$(OBJEXT) \
adm_kt_dec.$(OBJEXT) \
adm_kt_enc.$(OBJEXT) \
adm_rw.$(OBJEXT)
+DBOBJS= adm_kw_dec.$(OBJEXT) \
+ adm_kw_enc.$(OBJEXT)
+
+OBJS= $(BASE_OBJS) $(DB_OBJS)
+
SRCS= $(srcdir)/adm_conn.c \
- $(srcdir)/adm_kw_dec.c \
- $(srcdir)/adm_kw_enc.c \
$(srcdir)/adm_kt_dec.c \
$(srcdir)/adm_kt_enc.c \
- $(srcdir)/adm_rw.c
+ $(srcdir)/adm_rw.c \
+ $(srcdir)/adm_kw_dec.c \
+ $(srcdir)/adm_kw_enc.c
-all:: $(OBJS)
+all:: all-$(WHAT) $(BASE_OBJS)
+
+all-unix:: $(DB_OBJS)
+all-mac:: $(DB_OBJS)
+all-windows::
libkadm.a: $(OBJS)
$(RM) $@
$(INSTALL_DATA) libkadm.a $(DESTDIR)$(KRB5_LIBDIR)/libkadm.a
$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libkadm.a
-clean::
+clean:: clean-$(WHAT)
+clean-unix::
+ $(RM) libkadm.$(LIBEXT)
+clean-mac::
$(RM) libkadm.$(LIBEXT)
+clean-windows::
+ $(RM) kadm.lib kadm.bak
#
# t_dbentry
check-windows::
-clean::
+clean-unix::
+ $(RM) t_dbentry$(EXEEXT) t_dbentry.$(OBJEXT)
+ $(RM) t_ktentry$(EXEEXT) t_ktentry.$(OBJEXT)
+clean-mac::
$(RM) t_dbentry$(EXEEXT) t_dbentry.$(OBJEXT)
$(RM) t_ktentry$(EXEEXT) t_ktentry.$(OBJEXT)
if (kret = krb5_parse_name(kcontext, name, client))
goto cleanup;
+#ifdef _WINDOWS
+ strcpy (new_cache, "FILE:");
+ GetTempFileName (0, "tkt", 0, new_cache+5);
+#else
(void) sprintf(new_cache, kadm_cache_name_fmt, getpid());
+#endif /* _WINDOWS */
+
if (kret = krb5_cc_resolve(kcontext, new_cache, ccache))
goto cleanup;