g_imp_sec_context.c (gss_import_sec_context):
authorTheodore Tso <tytso@mit.edu>
Thu, 21 Mar 1996 05:18:00 +0000 (05:18 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 21 Mar 1996 05:18:00 +0000 (05:18 +0000)
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

src/lib/gssapi/mechglue/ChangeLog
src/lib/gssapi/mechglue/g_acquire_cred.c
src/lib/gssapi/mechglue/g_exp_sec_context.c
src/lib/gssapi/mechglue/g_glue.c
src/lib/gssapi/mechglue/g_imp_sec_context.c
src/lib/gssapi/mechglue/g_initialize.c
src/lib/gssapi/mechglue/g_inq_cred.c
src/lib/gssapi/mechglue/g_rel_oid_set.c

index e07d39cdbfb19b2b9ce169c2d2d2ccb4abdd37bf..6967119ed45f9ff9566dda1bdb739c3713285045 100644 (file)
@@ -1,5 +1,19 @@
+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.
index 73b5c7d507a6c243df8f7eb7d26565049ad28d2e..64a57db6ed4bbb121ea71400c566c47c8bab37dd 100644 (file)
@@ -33,6 +33,7 @@
 #endif
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 
 #define g_OID_equal(o1,o2) \
    (((o1)->length == (o2)->length) && \
index 1af42ac399c5147993ac0cf59cb74c70df3d1be8..61488c70b4da07f2a1a1a2b88bd4a3b020e682df 100644 (file)
@@ -45,7 +45,7 @@ gss_buffer_t          interprocess_token;
 
 {
     OM_uint32          status;
-    OM_uint32          length;
+    size_t             length;
     gss_union_ctx_id_t ctx;
     gss_mechanism      mech;
     gss_buffer_desc    token;
@@ -90,7 +90,7 @@ gss_buffer_t          interprocess_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);
index 4e8a0300c61c47caac2a7945a749dba369fc1244..6aecab7fb6d9489a13165507725392cbdb73bb9a 100644 (file)
@@ -27,6 +27,7 @@
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
+#include <string.h>
 #include <errno.h>
 
 #define g_OID_equal(o1,o2) \
index 9d977c61ca10b0184ccbe00da844420d8c8330ba..c7ed23d6bbeb1a8c74a783210b01da89a529d88b 100644 (file)
@@ -44,7 +44,8 @@ gss_buffer_t          interprocess_token;
 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;
@@ -76,7 +77,7 @@ gss_ctx_id_t *                context_handle;
     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;
index cc30e26e78d9bb74cc2c8de6334f314c022bd110..c6cd71dd5799d1e74aad8b3a9c3be825b1f923d0 100644 (file)
@@ -32,6 +32,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 #include <errno.h>
 
index 12efbd29f3f2ab3435542d2e759e4ca1ea2d5231..ae64937426e1dd1243d8a595fecb4ba876e87967 100644 (file)
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #endif
 #include <string.h>
+#include <time.h>
 
 OM_uint32 INTERFACE
 gss_inquire_cred(minor_status,
index bbe44e598f07150db36fbf32e7825ab91fae464a..e52057f225a0c21a6cbb028e49cd55bc67122b9a 100644 (file)
@@ -40,7 +40,6 @@ OM_uint32 *           minor_status;
 gss_OID_set *          set;
 {
    size_t index;
-   OM_uint32   temp_minor;
    gss_OID oid;
     if (minor_status)
        *minor_status = 0;