util_ordering.c (g_order_init): Changed return code to be an int 32,
since we return a com_err error code. Change the type of the sequence
number to be an uint32.
gssapi.h: Define gss_int32 -- needed for error code returns.
Makefile.in (EHDRDIR): Use $(S) instead of /, so that EHDRDIR is valid
under windows. Fix how the header file is copied in under Windows.
gssapiP_generic.h: Include gssapi_generic.h instead of gssapi.h, so
that we get the definitions of the nametype oids.
oid_ops.c (generic_gss_release_oid): Re-enable function.
util_token.c (g_verify_token_header): Changed return code to be an int
32, since we return a com_err error code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8814
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Jul 25 00:03:01 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * util_ordering.c (g_order_check):
+ * util_ordering.c (g_order_init): Changed return code to be an int
+ 32, since we return a com_err error code. Change the type
+ of the sequence number to be an uint32.
+
+ * gssapi.h: Define gss_int32 -- needed for error code returns.
+
+ * Makefile.in (EHDRDIR): Use $(S) instead of /, so that EHDRDIR is
+ valid under windows. Fix how the header file is copied in
+ under Windows.
+
+ * gssapiP_generic.h: Include gssapi_generic.h instead of gssapi.h,
+ so that we get the definitions of the nametype oids.
+
Wed Jul 24 18:48:43 1996 Theodore Y. Ts'o <tytso@mit.edu>
+ * oid_ops.c (generic_gss_release_oid): Re-enable function.
+
* util_token.c (g_verify_token_header): Changed return code to be
- an unsigned int 32, since we return a com_err error code.
+ an int 32, since we return a com_err error code.
* rel_buffer.c (generic_gss_release_buffer):
* rel_oid_set.c (generic_gss_release_oid_set): Remove INTERFACE
util_validate.$(OBJEXT) \
gssapi_err_generic.$(OBJEXT)
-EHDRDIR= $(BUILDTOP)/include/gssapi
+EHDRDIR= $(BUILDTOP)$(S)include$(S)gssapi
EXPORTED_HEADERS= gssapi.h gssapi_generic.h
HDRS= $(ETHDRS)
all-mac:: $(SRCS) $(HDRS) includes $(OBJS)
-all-windows:: $(SRCS) $(HDRS) includes $(OBJS)
+all-windows:: win-include $(SRCS) $(HDRS) $(OBJS)
+
+win-include::
if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR)
copy gssapi.h $(EHDRDIR)
copy gssapi_generic.h $(EHDRDIR)
*/
#if (GSS_SIZEOF_SHORT == 4)
typedef unsigned short gss_uint32;
+typedef short gss_int32;
#elif (GSS_SIZEOF_INT == 4)
typedef unsigned int gss_uint32;
+typedef int gss_int32;
#elif (GSS_SIZEOF_LONG == 4)
typedef unsigned long gss_uint32;
+typedef long gss_int32;
#endif
#ifdef OM_STRING
#if (defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH))
#include <k5-int.h>
#endif
-#include "gssapi.h"
+#include "gssapi_generic.h"
#include "gssapi_err_generic.h"
#include <errno.h>
void g_make_token_header PROTOTYPE((gss_OID mech, int body_size,
unsigned char **buf, int tok_type));
-gss_uint32 g_verify_token_header PROTOTYPE((gss_OID mech, int *body_size,
+gss_int32 g_verify_token_header PROTOTYPE((gss_OID mech, int *body_size,
unsigned char **buf, int tok_type, int toksize));
OM_uint32 g_display_major_status PROTOTYPE((OM_uint32 *minor_status,
OM_uint32 status_value,
gss_buffer_t status_string));
-OM_uint32 g_order_init PROTOTYPE((void **queue, unsigned int seqnum,
+gss_int32 g_order_init PROTOTYPE((void **queue, OM_uint32 seqnum,
int do_replay, int do_sequence));
-OM_uint32 g_order_check PROTOTYPE((void **queue, unsigned int seqnum));
+gss_int32 g_order_check PROTOTYPE((void **queue, OM_uint32 seqnum));
void g_order_free PROTOTYPE((void **queue));
gss_OID_set* /* set */
));
+OM_uint32 generic_gss_release_oid
+PROTOTYPE((OM_uint32*, /* minor_status */
+ gss_OID* /* set */
+ ));
+
OM_uint32 generic_gss_copy_oid
PROTOTYPE( (OM_uint32 *, /* minor_status */
gss_OID, /* oid */
#include <gssapi/gssapi.h>
#endif
-extern const gss_OID_desc FAR * const gss_nt_user_name;
-extern const gss_OID_desc FAR * const gss_nt_machine_uid_name;
-extern const gss_OID_desc FAR * const gss_nt_string_uid_name;
-extern const gss_OID_desc FAR * const gss_nt_service_name;
+extern gss_OID gss_nt_user_name;
+extern gss_OID gss_nt_machine_uid_name;
+extern gss_OID gss_nt_string_uid_name;
+extern gss_OID gss_nt_service_name;
#endif /* _GSSAPI_GENERIC_H_ */
#include <errno.h>
#include <ctype.h>
-#if 0
OM_uint32
generic_gss_release_oid(minor_status, oid)
OM_uint32 *minor_status;
*oid = GSS_C_NO_OID;
return(GSS_S_COMPLETE);
}
-#endif
OM_uint32
generic_gss_copy_oid(minor_status, oid, new_oid)
}
}
-OM_uint32
-g_order_init(void **vqueue, unsigned int seqnum,
+gss_int32
+g_order_init(void **vqueue, OM_uint32 seqnum,
int do_replay, int do_sequence)
{
queue *q;
return(0);
}
-OM_uint32
-g_order_check(void **vqueue, unsigned int seqnum)
+gss_int32
+g_order_check(void **vqueue, OM_uint32 seqnum)
{
queue *q;
int i;
* mechanism in the token does not match the mech argument. buf and
* *body_size are left unmodified on error.
*/
-gss_uint32 g_verify_token_header(mech, body_size, buf_in, tok_type, toksize)
+gss_int32 g_verify_token_header(mech, body_size, buf_in, tok_type, toksize)
gss_OID mech;
int *body_size;
unsigned char **buf_in;