From 531aa74299b874dbcb900c4c830200da18abaf0c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 17 Jun 1995 04:01:36 +0000 Subject: [PATCH] Added final change to allow for ASN.1 indefinite encoding; needed for DCE compatibility. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6088 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 5 +++++ src/lib/krb5/asn.1/asn1_get.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 5090baafa..07e82b5a6 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -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 * configure.in: Remove standardized set of autoconf macros, which diff --git a/src/lib/krb5/asn.1/asn1_get.c b/src/lib/krb5/asn.1/asn1_get.c index 602a25e8c..7d491a4cd 100644 --- a/src/lib/krb5/asn.1/asn1_get.c +++ b/src/lib/krb5/asn.1/asn1_get.c @@ -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); -- 2.26.2