+Wed Feb 22 01:45:17 1995 Keith Vetter (keithv@fusion.com)
+
+ * keytab.h: added windows INTERFACE keyword to prototypes
+
Tue Feb 21 17:31:06 1995 Keith Vetter (keithv@fusion.com)
* config.h: added HAVE_ERRNO for the windows section
krb5_magic magic;
char *prefix;
/* routines always present */
- krb5_error_code (*resolve)
+ krb5_error_code (INTERFACE *resolve)
NPROTOTYPE((krb5_context,
const char *,
krb5_keytab *));
- krb5_error_code (*get_name)
+ krb5_error_code (INTERFACE *get_name)
NPROTOTYPE((krb5_context,
krb5_keytab,
char *,
int));
- krb5_error_code (*close)
+ krb5_error_code (INTERFACE *close)
NPROTOTYPE((krb5_context,
krb5_keytab));
- krb5_error_code (*get)
+ krb5_error_code (INTERFACE *get)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_principal,
krb5_kvno,
krb5_keytype,
krb5_keytab_entry *));
- krb5_error_code (*start_seq_get)
+ krb5_error_code (INTERFACE *start_seq_get)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_kt_cursor *));
- krb5_error_code (*get_next)
+ krb5_error_code (INTERFACE *get_next)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *,
krb5_kt_cursor *));
- krb5_error_code (*end_get)
+ krb5_error_code (INTERFACE *end_get)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_kt_cursor *));
/* routines to be included on extended version (write routines) */
- krb5_error_code (*add)
+ krb5_error_code (INTERFACE *add)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
- krb5_error_code (*remove)
+ krb5_error_code (INTERFACE *remove)
NPROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
+Wed Feb 22 01:38:54 1995 Keith Vetter (keithv@fusion.com)
+
+ * Makefile.in: made to work on the PC
+ * *.c: added windows INTERFACE keyword
+
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
* read_servi.c (krb5_kt_read_service_key) Add krb5_keytype arg.
CFLAGS = $(CCOPTS) $(DEFS)
LDFLAGS = -g
-all:: $(OBJS)
-
-
+##DOSBUILDTOP = ..\..\..
+##DOSLIBNAME=..\libkrb5.lib
+##DOS!include $(BUILDTOP)\config\windows.in
OBJS= \
- ktadd.o \
- ktbase.o \
- ktdefault.o \
- ktfr_entry.o \
- ktremove.o \
- read_servi.o
+ ktadd.$(OBJEXT) \
+ ktbase.$(OBJEXT) \
+ ktdefault.$(OBJEXT) \
+ ktfr_entry.$(OBJEXT) \
+ ktremove.$(OBJEXT) \
+ read_servi.$(OBJEXT)
SRCS= \
$(srcdir)/ktadd.c \
$(srcdir)/ktfr_entry.c \
$(srcdir)/ktremove.c \
$(srcdir)/read_servi.c
+
+all:: $(OBJS) all-$(WHAT)
+
+all-unix::
+
+all-windows::
+ cd file
+ @echo Making in ..\file
+ -$(MAKE) -$(MFLAGS) LIB=$(LIB)
+ cd ..
+
+clean:: clean-$(WHAT)
+
+clean-unix::
+
+clean-windows::
+ cd file
+ @echo Making clean in ..\file
+ -$(MAKE) -$(MFLAGS) clean
+ cd ..
+Wed Feb 22 01:27:05 1995 Keith Vetter (keithv@fusion.com)
+
+ * Makefile.in: made to work on the PC
+ * *.c, ktfile.h: added windows INTERFACE keyword
+ * ktf_util.c: removed include of <netinet/in.h>
+ cast some 32bit ints to size_t ints
+
Fri Feb 3 01:53:44 1995 John Gilmore <gnu@cygnus.com>
Rename files for DOS 8.3 uniqueness:
CFLAGS = $(CCOPTS) $(DEFS)
LDFLAGS = -g
-all:: $(OBJS)
+##DOSBUILDTOP = ..\..\..\..
+##DOSLIBNAME=..\..\libkrb5.lib
+##DOS!include $(BUILDTOP)\config\windows.in
SRCS= \
$(srcdir)/ktf_add.c \
$(srcdir)/ktf_util.c
OBJS = \
- ktf_add.o \
- ktf_close.o \
- ktf_endget.o \
- ktf_g_ent.o \
- ktf_g_name.o \
- ktf_next.o \
- ktf_resolv.o \
- ktf_remove.o \
- ktf_ssget.o \
- ktf_util.o \
- ktf_ops.o \
- ktf_wops.o \
- ktf_wreslv.o \
- ktf_defops.o
+ ktf_add.$(OBJEXT) \
+ ktf_close.$(OBJEXT) \
+ ktf_endget.$(OBJEXT) \
+ ktf_g_ent.$(OBJEXT) \
+ ktf_g_name.$(OBJEXT) \
+ ktf_next.$(OBJEXT) \
+ ktf_resolv.$(OBJEXT) \
+ ktf_remove.$(OBJEXT) \
+ ktf_ssget.$(OBJEXT) \
+ ktf_util.$(OBJEXT) \
+ ktf_ops.$(OBJEXT) \
+ ktf_wops.$(OBJEXT) \
+ ktf_wreslv.$(OBJEXT) \
+ ktf_defops.$(OBJEXT)
+all:: $(OBJS)
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_add(context, id, entry)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_close(context, id)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_end_get(context, id, cursor)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_get_entry(context, id, principal, kvno, keytype, entry)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_get_name(context, id, name, len)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_get_next(context, id, entry, cursor)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_remove(context, id, entry)
krb5_context context;
krb5_keytab id;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_resolve(context, name, id)
krb5_context context;
const char *name;
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_start_seq_get(context, id, cursorp)
krb5_context context;
krb5_keytab id;
#include <krb5/libos.h>
#include <krb5/los-proto.h>
#include <krb5/osconf.h>
-#include <netinet/in.h>
#include <stdio.h>
#include "ktfile.h"
static char *fopen_mode_rb = "r";
#endif
+#ifndef HAVE_ERRNO
extern int errno;
+#endif
static krb5_error_code
krb5_ktfileint_open(context, id, mode)
return 0;
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_openr(context, id)
krb5_context context;
krb5_keytab id;
return krb5_ktfileint_open(context, id, KRB5_LOCKMODE_SHARED);
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_openw(context, id)
krb5_context context;
krb5_keytab id;
return krb5_ktfileint_open(context, id, KRB5_LOCKMODE_EXCLUSIVE);
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_close(context, id)
krb5_context context;
krb5_keytab id;
return kerror;
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_delete_entry(context, id, delete_point)
krb5_context context;
krb5_keytab id;
len = BUFSIZ;
}
- memset(iobuf, 0, len);
+ memset(iobuf, 0, (size_t) len);
while (size > 0) {
- xfwrite(iobuf, 1, len, KTFILEP(id));
+ xfwrite(iobuf, 1, (size_t) len, KTFILEP(id));
size -= len;
if (size < len) {
len = size;
return 0;
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_internal_read_entry(context, id, ret_entry, delete_point)
krb5_context context;
krb5_keytab id;
return error;
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_read_entry(context, id, entryp)
krb5_context context;
krb5_keytab id;
return krb5_ktfileint_internal_read_entry(context, id, entryp, &delete_point);
}
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_write_entry(context, id, entry)
krb5_context context;
krb5_keytab id;
* Determine the size needed for a file entry for the given
* keytab entry.
*/
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_size_entry(context, entry, size_needed)
krb5_context context;
krb5_keytab_entry *entry;
* to commit the write, but that this field must indicate the size of the
* block in the file rather than the size of the actual entry)
*/
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfileint_find_slot(context, id, size_needed, commit_point)
krb5_context context;
krb5_keytab id;
return errno;
}
- memset(iobuf, 0, size);
- xfwrite(iobuf, 1, size, KTFILEP(id));
+ memset(iobuf, 0, (size_t) size);
+ xfwrite(iobuf, 1, (size_t) size, KTFILEP(id));
if (feof(KTFILEP(id))) {
break;
}
#include "ktfile.h"
-krb5_error_code
+krb5_error_code INTERFACE
krb5_ktfile_wresolve(context, name, id)
krb5_context context;
const char *name;
extern struct _krb5_kt_ops krb5_ktf_ops;
extern struct _krb5_kt_ops krb5_ktf_writable_ops;
-krb5_error_code krb5_ktfile_resolve
+krb5_error_code INTERFACE krb5_ktfile_resolve
PROTOTYPE((krb5_context,
const char *,
krb5_keytab *));
-krb5_error_code krb5_ktfile_wresolve
+krb5_error_code INTERFACE krb5_ktfile_wresolve
PROTOTYPE((krb5_context,
const char *,
krb5_keytab *));
-krb5_error_code krb5_ktfile_get_name
+krb5_error_code INTERFACE krb5_ktfile_get_name
PROTOTYPE((krb5_context,
krb5_keytab,
char *,
int));
-krb5_error_code krb5_ktfile_close
+krb5_error_code INTERFACE krb5_ktfile_close
PROTOTYPE((krb5_context,
krb5_keytab));
-krb5_error_code krb5_ktfile_get_entry
+krb5_error_code INTERFACE krb5_ktfile_get_entry
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_principal,
krb5_keytype,
krb5_keytab_entry *));
-krb5_error_code krb5_ktfile_start_seq_get
+krb5_error_code INTERFACE krb5_ktfile_start_seq_get
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_kt_cursor *));
-krb5_error_code krb5_ktfile_get_next
+krb5_error_code INTERFACE krb5_ktfile_get_next
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *,
krb5_kt_cursor *));
-krb5_error_code krb5_ktfile_end_get
+krb5_error_code INTERFACE krb5_ktfile_end_get
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_kt_cursor *));
/* routines to be included on extended version (write routines) */
-krb5_error_code krb5_ktfile_add
+krb5_error_code INTERFACE krb5_ktfile_add
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
-krb5_error_code krb5_ktfile_remove
+krb5_error_code INTERFACE krb5_ktfile_remove
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
-krb5_error_code krb5_ktfileint_openr
+krb5_error_code INTERFACE krb5_ktfileint_openr
PROTOTYPE((krb5_context,
krb5_keytab));
-krb5_error_code krb5_ktfileint_openw
+krb5_error_code INTERFACE krb5_ktfileint_openw
PROTOTYPE((krb5_context,
krb5_keytab));
-krb5_error_code krb5_ktfileint_close
+krb5_error_code INTERFACE krb5_ktfileint_close
PROTOTYPE((krb5_context,
krb5_keytab));
-krb5_error_code krb5_ktfileint_read_entry
+krb5_error_code INTERFACE krb5_ktfileint_read_entry
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
-krb5_error_code krb5_ktfileint_write_entry
+krb5_error_code INTERFACE krb5_ktfileint_write_entry
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *));
-krb5_error_code krb5_ktfileint_delete_entry
+krb5_error_code INTERFACE krb5_ktfileint_delete_entry
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_int32));
-krb5_error_code krb5_ktfileint_internal_read_entry
+krb5_error_code INTERFACE krb5_ktfileint_internal_read_entry
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_keytab_entry *,
krb5_int32 *));
-krb5_error_code krb5_ktfileint_size_entry
+krb5_error_code INTERFACE krb5_ktfileint_size_entry
PROTOTYPE((krb5_context,
krb5_keytab_entry *,
krb5_int32 *));
-krb5_error_code krb5_ktfileint_find_slot
+krb5_error_code INTERFACE krb5_ktfileint_find_slot
PROTOTYPE((krb5_context,
krb5_keytab,
krb5_int32 *,
#include <krb5/krb5.h>
-krb5_error_code
+krb5_error_code INTERFACE
krb5_kt_add_entry (context, id, entry)
krb5_context context;
krb5_keytab id;
* don't replace if it already exists; return an error instead.
*/
-krb5_error_code
+krb5_error_code INTERFACE
krb5_kt_register(context, ops)
krb5_context context;
krb5_kt_ops *ops;
* particular keytab type.
*/
-krb5_error_code krb5_kt_resolve (context, name, ktid)
+krb5_error_code INTERFACE
+krb5_kt_resolve (context, name, ktid)
krb5_context context;
const char *name;
krb5_keytab *ktid;
#include <krb5/krb5.h>
#include <stdio.h>
-krb5_error_code krb5_kt_default(context, id)
+krb5_error_code INTERFACE
+krb5_kt_default(context, id)
krb5_context context;
krb5_keytab *id;
{
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
-krb5_error_code
+krb5_error_code INTERFACE
krb5_kt_free_entry (context, entry)
krb5_context context;
krb5_keytab_entry *entry;
#include <krb5/krb5.h>
-krb5_error_code
+krb5_error_code INTERFACE
krb5_kt_remove_entry (context, id, entry)
krb5_context context;
krb5_keytab id;
* returns: Either KSUCCESS or error code.
* errors: error code if not found or keyprocarg is invalid.
*/
-krb5_error_code
+krb5_error_code INTERFACE
krb5_kt_read_service_key(context, keyprocarg, principal, vno, keytype, key)
krb5_context context;
krb5_pointer keyprocarg;