diff options
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_get.h')
-rw-r--r-- | src/lib/krb5/asn.1/asn1_get.h | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/src/lib/krb5/asn.1/asn1_get.h b/src/lib/krb5/asn.1/asn1_get.h index 169490a..50a1b75 100644 --- a/src/lib/krb5/asn.1/asn1_get.h +++ b/src/lib/krb5/asn.1/asn1_get.h @@ -33,12 +33,24 @@ #include "krbasn1.h" #include "asn1buf.h" +typedef struct { + asn1_class asn1class; + asn1_construction construction; + asn1_tagnum tagnum; + unsigned int length; + int indef; +} taginfo; + +asn1_error_code asn1_get_tag_2 (asn1buf *buf, taginfo *tinfo); + +#if 0 asn1_error_code asn1_get_tag_indef (asn1buf *buf, asn1_class *Class, asn1_construction *construction, asn1_tagnum *tagnum, unsigned int *retlen, int *indef); + asn1_error_code asn1_get_tag (asn1buf *buf, asn1_class *Class, @@ -53,6 +65,7 @@ asn1_error_code asn1_get_tag If *buf is empty to begin with, *tagnum is set to ASN1_TAGNUM_CEILING. Returns ASN1_OVERRUN if *buf is exhausted during the parse. */ +#endif asn1_error_code asn1_get_sequence (asn1buf *buf, unsigned int *retlen, int *indef); @@ -61,27 +74,4 @@ asn1_error_code asn1_get_sequence doesn't have a sequence ID. If retlen != NULL, the associated length is returned in *retlen. */ -/****************************************************************/ -/* Private Procedures */ - -asn1_error_code asn1_get_id - (asn1buf *buf, - asn1_class *Class, - asn1_construction *construction, - asn1_tagnum *tagnum); -/* requires *buf is allocated - effects Decodes the group of identifier octets at *buf's - current position. If class != NULL, returns the class - in *Class. Similarly, the construction and tag number - are returned in *construction and *tagnum, respectively. - Returns ASN1_OVERRUN if *buf is exhausted. */ - -asn1_error_code asn1_get_length - (asn1buf *buf, unsigned int *retlen, int *indef); -/* requires *buf is allocated - effects Decodes the group of length octets at *buf's - current position. If retlen != NULL, the - length is returned in *retlen. - Returns ASN1_OVERRUN if *buf is exhausted. */ - #endif |