diff options
author | Theodore Tso <tytso@mit.edu> | 1995-04-13 16:35:42 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-04-13 16:35:42 +0000 |
commit | 73bd684de42505fe4e6a15803ddf074c57db671c (patch) | |
tree | 2ba54a91d188f3622a7237bf5a7bf26c92232fd0 /src/lib/krb5/asn.1/asn1buf.h | |
parent | dc6f3c3836d63a93ff5820aad902e7e76d5eedfb (diff) | |
download | krb5-73bd684de42505fe4e6a15803ddf074c57db671c.zip krb5-73bd684de42505fe4e6a15803ddf074c57db671c.tar.gz krb5-73bd684de42505fe4e6a15803ddf074c57db671c.tar.bz2 |
asn1_k_decode.c (setup, next_tag, apptag, get_field_body,
get_lenfield_body, asn1_decode_ticket): Use the taglength to
determine whether or not the indefinite encoding was used, and
if so skip over the termination flag bytes in the ASN.1
stream.
asn1buf.c (asn1buf_imbed, asn1buf_remains): Make changes to allow for
indefinite encodings. asn1buf_remains() is now only used for
decoding structures and arrays (i.e., asn.1 constructs which
terminate indefinite encodings with two zero octets.
[ Note these fixes to support indefinite encoding aren't
terribly clean; some invalid encodings may be accepted when they
should not be. This should be looked at in more detail later.]
asn1_get.c (asn1_get_tag): Inline original asn1buf_remains() code,
since asn1_get_tag doesn't use asn1buf_remains in the context of
a structure or an array.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5353 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1buf.h')
-rw-r--r-- | src/lib/krb5/asn.1/asn1buf.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/krb5/asn.1/asn1buf.h b/src/lib/krb5/asn.1/asn1buf.h index 067bbf6..0d18f3b 100644 --- a/src/lib/krb5/asn.1/asn1buf.h +++ b/src/lib/krb5/asn.1/asn1buf.h @@ -143,8 +143,10 @@ asn1_error_code INTERFACE asn12krb5_buf int INTERFACE asn1buf_remains - PROTOTYPE((const asn1buf *buf)); -/* effects Returns the number of unprocessed octets remaining in *buf. */ + PROTOTYPE((asn1buf *buf)); +/* requires *buf is a buffer containing an asn.1 structure or array + modifies *buf + effects Returns the number of unprocessed octets remaining in *buf. */ /**************** Private Procedures ****************/ |