* asn1_k_encode.c (asn1_encode_krb_safe_body): Use
authorEzra Peisach <epeisach@mit.edu>
Tue, 20 May 2003 14:34:53 +0000 (14:34 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 20 May 2003 14:34:53 +0000 (14:34 +0000)
asn1_encode_unsigned_integer for sequence number.

* asn1_k_decode.c (asn1_decode_krb_safe_body): Use
asn1_decode_seqnum to decode sequence number.

ticket: 1262
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15460 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

index dd85a3c7a673d2dac840823b9837787a608a1833..8bd80766290b06278b42b5ad09a89985b2d3fee0 100644 (file)
@@ -1,3 +1,12 @@
+2003-05-20  Ezra Peisach  <epeisach@bu.edu>
+
+       * asn1_k_encode.c (asn1_encode_krb_safe_body): Use
+       asn1_encode_unsigned_integer for sequence number.
+
+       * asn1_k_decode.c (asn1_decode_krb_safe_body): Use
+       asn1_decode_seqnum to decode sequence number.
+       
+
 2003-05-18  Tom Yu  <tlyu@mit.edu>
 
        * asn1_decode.c (asn1_decode_maybe_unsigned): New function; decode
index f00cb01615118f1c9040219ab86b56a57fa15f6d..28e3e98e9cb8a3a712cb4d5b412cfc8aa9f977e1 100644 (file)
@@ -605,7 +605,7 @@ asn1_error_code asn1_decode_krb_safe_body(asn1buf *buf, krb5_safe *val)
     get_lenfield(val->user_data.length,val->user_data.data,0,asn1_decode_charstring);
     opt_field(val->timestamp,1,asn1_decode_kerberos_time,0);
     opt_field(val->usec,2,asn1_decode_int32,0);
-    opt_field(val->seq_number,3,asn1_decode_int32,0);
+    opt_field(val->seq_number,3,asn1_decode_seqnum,0);
     alloc_field(val->s_address,krb5_address);
     get_field(*(val->s_address),4,asn1_decode_host_address);
     if(tagnum == 5){
index 703214dd26ac3809fcf4c27be75306faa1521c77..d4ace7818fa492a50bc887cadd2c18074026b269 100644 (file)
@@ -644,7 +644,7 @@ asn1_error_code asn1_encode_krb_safe_body(asn1buf *buf, const krb5_safe *val, un
     asn1_addfield(val->r_address,5,asn1_encode_host_address);
   asn1_addfield(val->s_address,4,asn1_encode_host_address);
   if(val->seq_number)
-    asn1_addfield(val->seq_number,3,asn1_encode_integer);
+    asn1_addfield(val->seq_number,3,asn1_encode_unsigned_integer);
   if(val->timestamp){
     asn1_addfield(val->usec,2,asn1_encode_integer);
     asn1_addfield(val->timestamp,1,asn1_encode_kerberos_time);