g_exp_sec_context.c (gss_export_sec_context): Fix 16bit vs 32bit lint flame.
g_glue.c, g_initialize.c: Add include of string.h, as it is needed.
g_acquire_cred.c, g_inq_cred.c: Add include of time.h
g_rel_oid_set.c (gss_release_oid_set): Removed unused variable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7695
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Mar 21 00:12:07 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * g_imp_sec_context.c (gss_import_sec_context):
+ * g_exp_sec_context.c (gss_export_sec_context): Fix 16bit vs 32bit
+ lint flame.
+
Wed Mar 20 20:20:38 1996 Theodore Y. Ts'o <tytso@dcl>
+ * g_glue.c:
+ * g_initialize.c: Add include of string.h, as it is needed.
+
+ * g_acquire_cred.c:
+ * g_inq_cred.c: Add include of time.h
+
+ * g_rel_oid_set.c (gss_release_oid_set): Removed unused variable.
+
* mechglue.h: Don't include <sys/types.h>; it's included if
necessary in gssapi/gssapi.h. On a Macintosh, #include
gssapi.h instead of gssapi/gssapi.h.
#endif
#include <string.h>
#include <errno.h>
+#include <time.h>
#define g_OID_equal(o1,o2) \
(((o1)->length == (o2)->length) && \
{
OM_uint32 status;
- OM_uint32 length;
+ size_t length;
gss_union_ctx_id_t ctx;
gss_mechanism mech;
gss_buffer_desc token;
buf[1] = (unsigned char) (length & 0xFF);
length >>= 8;
buf[0] = (unsigned char) (length & 0xFF);
- memcpy(buf+4, ctx->mech_type->elements, ctx->mech_type->length);
+ memcpy(buf+4, ctx->mech_type->elements, (size_t) ctx->mech_type->length);
memcpy(buf+4+ctx->mech_type->length, token.value, token.length);
(void) gss_release_buffer(minor_status, &token);
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#include <string.h>
#include <errno.h>
#define g_OID_equal(o1,o2) \
gss_ctx_id_t * context_handle;
{
- OM_uint32 length, status;
+ size_t length;
+ OM_uint32 status;
char *p;
gss_union_ctx_id_t ctx;
gss_buffer_desc token;
length = (length << 8) + *p++;
ctx->mech_type->length = length;
- ctx->mech_type->elements = malloc((size_t) length);
+ ctx->mech_type->elements = malloc(length);
if (!ctx->mech_type->elements) {
*minor_status = ENOMEM;
goto error_out;
#endif
#include <stdio.h>
+#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#endif
#include <string.h>
+#include <time.h>
OM_uint32 INTERFACE
gss_inquire_cred(minor_status,
gss_OID_set * set;
{
size_t index;
- OM_uint32 temp_minor;
gss_OID oid;
if (minor_status)
*minor_status = 0;