32 bit word being passed as an int
authorTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 01:26:17 +0000 (01:26 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 01:26:17 +0000 (01:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6823 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_k_decode.c
src/lib/krb5/asn.1/asn1_k_encode.c
src/lib/krb5/asn.1/krb5_decode.c
src/lib/krb5/asn.1/krb5_encode.c

index 8995d09a7ada159adee07b0ef8c237825cddeef1..4f8d0e2515d50497ee404109f49d39b2bd10d525 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep 13 10:51:31 1995 Keith Vetter (keithv@fusion.com)
+
+        * asn1_k_decode.c, asn1_k_encode.c, krb5_dec.c, krb5_enc.c: 32
+               bit word being passed as an int.
+
 Wed Sep 20 11:50:35 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * krb5_decode.c (setup_buf_only): Declare cleanup routine as
index 93db3055e05cc4ae36e15775eb4341f0873416df..452672addfc19181c398968050f1969ccc49bbe1 100644 (file)
@@ -663,7 +663,7 @@ asn1_error_code asn1_decode_etype_info_entry(buf, val)
   { begin_structure();
     get_field(val->etype,0,asn1_decode_ui_4);
     if (tagnum == 1) {
-           get_lenfield(val->length,val->salt,1,asn1_decode_octetstring);
+           get_lenfield((int) val->length,val->salt,1,asn1_decode_octetstring);
     } else {
            val->length = 0;
            val->salt = 0;
index 9ea9c5c1cad5eba9f3ad48e7f3afc70d7f0679ba..c2b92832790da520cf8de848c5e96f7f6f4f7cd9 100644 (file)
@@ -778,7 +778,7 @@ asn1_error_code asn1_encode_etype_info_entry(buf, val, retlen)
      return ASN1_MISSING_FIELD;
 
   if (val->length)
-         asn1_addlenfield(val->length,val->salt,1,
+         asn1_addlenfield((int) val->length,val->salt,1,
                           asn1_encode_octetstring);
   asn1_addfield(val->etype,0,asn1_encode_integer);
   asn1_makeseq();
index cea8bdcdbc2c4e46ef39cf08f81c01057b6ca310..8196fdf3fc8fddbd2cd3a911755dd3f90e7dfadc 100644 (file)
@@ -700,9 +700,9 @@ krb5_error_code decode_krb5_alt_method(code, rep)
   setup(free);
   alloc_field(*rep,krb5_alt_method);
   { begin_structure();
-    get_field((*rep)->method,0,asn1_decode_int);
+    get_field((int) (*rep)->method,0,asn1_decode_int);
     if (tagnum == 1) {
-       get_lenfield((*rep)->length,(*rep)->data,1,asn1_decode_octetstring);
+       get_lenfield((int) (*rep)->length,(*rep)->data,1,asn1_decode_octetstring);
     } else {
        (*rep)->length = 0;
        (*rep)->data = 0;
index 8b5b7e4ab1d7fb8905dfa83c2266cf4fa3b1ac72..d8223b09250d620cfd21239f12af13d0265fc565 100644 (file)
@@ -705,7 +705,7 @@ krb5_error_code encode_krb5_alt_method(rep, code)
 
   /* method-data[1]            OctetString OPTIONAL */
   if(rep->data != NULL && rep->length > 0)
-    krb5_addlenfield(rep->length,rep->data,1,asn1_encode_octetstring);
+    krb5_addlenfield((int) rep->length,rep->data,1,asn1_encode_octetstring);
 
   /* method-type[0]            Integer */
   krb5_addfield(rep->method,0,asn1_encode_integer);