get_in_t.c: removed unused variable.
authorTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 01:35:53 +0000 (01:35 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 01:35:53 +0000 (01:35 +0000)
rd_cred.c: removed INTERFACE keyword.
ser_auth.c: passing int32 where a size_t is wanted.
ser_ctx.c: 16/32 bit int size mismatch.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6826 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/get_in_tkt.c
src/lib/krb5/krb/rd_cred.c
src/lib/krb5/krb/ser_auth.c
src/lib/krb5/krb/ser_ctx.c

index 1824c0c1e102977fe6b23676375565587a4cd024..53d16404111de9937a9dd11a1b11ade51304fb35 100644 (file)
@@ -1,3 +1,10 @@
+Wed Sep 13 10:58:20 1995 Keith Vetter (keithv@fusion.com)
+
+        * get_in_t.c: removed unused variable.
+        * rd_cred.c: removed INTERFACE keyword.
+        * ser_auth.c: passing int32 where a size_t is wanted.
+        * ser_ctx.c: 16/32 bit int size mismatch.
+
 Sun Sep 17 23:41:19 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * rd_safe.c: Fix typo error.
index 3bd684dd71947c067edcaf40903f85087e8c44d4..5f0349f5787d757d9a2ca40d00d7f47ca4572cba 100644 (file)
@@ -86,7 +86,7 @@ krb5_get_in_tkt(context, options, addrs, ktypes, ptypes, key_proc, keyseed,
     krb5_ccache ccache;
     krb5_kdc_rep ** ret_as_reply;
 {
-    krb5_enctype enctype, ktype;
+    krb5_enctype enctype;
     krb5_kdc_req request;
     krb5_kdc_rep *as_reply = 0;
     krb5_error *err_reply;
index bb2398e1930cdd6cad0cc3723c5bfe02b8ae9047..539a75c96bc2d7004eca6542afb04dcc18036fe2 100644 (file)
@@ -208,7 +208,7 @@ extern krb5_deltat krb5_clockskew;
  * This functions takes as input an KRB_CRED message, validates it, and
  * outputs the nonce and an array of the forwarded credentials.
  */
-krb5_error_code INTERFACE
+krb5_error_code
 krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata)
     krb5_context          context;
     krb5_auth_context     auth_context;
index 828012ce36d230a64666e967ffdf257c27be1436..791bbcf34aceb4d4970b2ebb451b8e1fe4d5d460 100644 (file)
@@ -239,6 +239,7 @@ krb5_authenticator_internalize(kcontext, argp, buffer, lenremain)
     size_t             remain;
     int                        i;
     krb5_int32         nadata;
+    size_t             len;
 
     bp = *buffer;
     remain = *lenremain;
@@ -306,12 +307,13 @@ krb5_authenticator_internalize(kcontext, argp, buffer, lenremain)
            /* Attempt to read in the authorization data count */
            if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) {
                nadata = ibuf;
+               len = (size_t) (nadata + 1);
 
                /* Get memory for the authorization data pointers */
                if ((authenticator->authorization_data = (krb5_authdata **)
-                    malloc(sizeof(krb5_authdata *) * (nadata+1)))) {
+                    malloc(sizeof(krb5_authdata *) * len))) {
                    memset(authenticator->authorization_data, 0,
-                          sizeof(krb5_authdata *) * (nadata+1));
+                          sizeof(krb5_authdata *) * len);
 
                    for (i=0; !kret && (i<nadata); i++) {
                        kret = krb5_internalize_opaque(kcontext,
index 695c43c968ee20dfc4199004fc6513c4a8dba269..69c0301e5eaa5b81ed4b50cd3f4ccfdd2ccffc3e 100644 (file)
@@ -283,7 +283,7 @@ krb5_context_internalize(kcontext, argp, buffer, lenremain)
                /* Get the number of ktypes */
                if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) {
                    /* Reduce it to a count */
-                   context->ktype_count = ibuf;
+                   context->ktype_count = (int) ibuf;
                    if ((context->ktypes = (krb5_enctype *)
                         malloc(sizeof(krb5_enctype) *
                                (context->ktype_count+1)))) {