diff options
author | Theodore Tso <tytso@mit.edu> | 1995-06-17 04:01:36 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-06-17 04:01:36 +0000 |
commit | 531aa74299b874dbcb900c4c830200da18abaf0c (patch) | |
tree | ba64afdce7c58637da0b071d51159bd079053062 /src/lib/krb5/asn.1/asn1_get.c | |
parent | d4f9e59eb6d9a6732573a5f3233122458ef29986 (diff) | |
download | krb5-531aa74299b874dbcb900c4c830200da18abaf0c.zip krb5-531aa74299b874dbcb900c4c830200da18abaf0c.tar.gz krb5-531aa74299b874dbcb900c4c830200da18abaf0c.tar.bz2 |
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
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_get.c')
-rw-r--r-- | src/lib/krb5/asn.1/asn1_get.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/asn.1/asn1_get.c b/src/lib/krb5/asn.1/asn1_get.c index 602a25e..7d491a4 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); |