From 2d9b07b135d47cb852554d465f73ca643fbf494f Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 23 Sep 1995 01:26:17 +0000 Subject: [PATCH] 32 bit word being passed as an int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6823 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 5 +++++ src/lib/krb5/asn.1/asn1_k_decode.c | 2 +- src/lib/krb5/asn.1/asn1_k_encode.c | 2 +- src/lib/krb5/asn.1/krb5_decode.c | 4 ++-- src/lib/krb5/asn.1/krb5_encode.c | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 8995d09a7..4f8d0e251 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -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 * krb5_decode.c (setup_buf_only): Declare cleanup routine as diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 93db3055e..452672add 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -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; diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 9ea9c5c1c..c2b928327 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -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(); diff --git a/src/lib/krb5/asn.1/krb5_decode.c b/src/lib/krb5/asn.1/krb5_decode.c index cea8bdcdb..8196fdf3f 100644 --- a/src/lib/krb5/asn.1/krb5_decode.c +++ b/src/lib/krb5/asn.1/krb5_decode.c @@ -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; diff --git a/src/lib/krb5/asn.1/krb5_encode.c b/src/lib/krb5/asn.1/krb5_encode.c index 8b5b7e4ab..d8223b092 100644 --- a/src/lib/krb5/asn.1/krb5_encode.c +++ b/src/lib/krb5/asn.1/krb5_encode.c @@ -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); -- 2.26.2