Added final change to allow for ASN.1 indefinite encoding; needed for
authorTheodore Tso <tytso@mit.edu>
Sat, 17 Jun 1995 04:01:36 +0000 (04:01 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 17 Jun 1995 04:01:36 +0000 (04:01 +0000)
DCE compatibility.

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

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_get.c

index 5090baafabfad96972d2bde217ad9d68e3af0f07..07e82b5a6614f094fe7cd5d5a27eed6e9b9d2b9e 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jun 17 00:00:33 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * asn1_get.c (asn1_get_tag): Added change to allow for 
+               ASN.1 indefinite encoding; needed for DCE compatibility.
+
 Fri Jun  9 19:34:05 1995    <tytso@rsx-11.mit.edu>
 
        * configure.in: Remove standardized set of autoconf macros, which
index 602a25e8c3e76dde4b51c5ea42b3c94c4bc2cb0c..7d491a4cd84285669295216722bccb1070abd0d2 100644 (file)
@@ -37,6 +37,12 @@ asn1_error_code asn1_get_tag(buf, class, construction, tagnum, retlen)
       *tagnum = ASN1_TAGNUM_CEILING;
       return 0;
   }
+  /* Allow for the indefinite encoding */
+  if ( !*(buf->next) && !*(buf->next + 1)) {
+    buf->next += 2;
+    *tagnum = ASN1_TAGNUM_CEILING;
+    return 0;
+  }
   retval = asn1_get_id(buf,class,construction,tagnum);
   if(retval) return retval;
   retval = asn1_get_length(buf,retlen);