aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/asn.1/asn1_get.h
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-10-17 22:59:50 +0000
committerEzra Peisach <epeisach@mit.edu>2000-10-17 22:59:50 +0000
commit37d6df8704b4210e690ffeb3afc95fd240cceaa2 (patch)
treeac98d47a9b86e40955ecc4fa6f7db1e0d7a95221 /src/lib/krb5/asn.1/asn1_get.h
parent4289b42c30a2c905ee3a3614b55861c22a3bbe74 (diff)
downloadkrb5-37d6df8704b4210e690ffeb3afc95fd240cceaa2.zip
krb5-37d6df8704b4210e690ffeb3afc95fd240cceaa2.tar.gz
krb5-37d6df8704b4210e690ffeb3afc95fd240cceaa2.tar.bz2
* asn1buf.h: Lengths are now unsigned int for
asn1buf_ensure_space(), asn1buf_expand(), asn1buf_imbed(), asn1buf_sync(), asn1buf_insert_octetstring(), asn1buf_insert_charstring(), asn1_remove_octetstring(), asn1buf_remove_charstring(), * krb5_decode.c, krb5_encode.c: Length fields are unsigned ints. * asn1_make.c, asn1_make.h: Prototypes changed to use an unsigned int * in_len and retlen for: asn1_make_etag(), asn1_make_tag(), asn1_make_sequence(), asn1_make_set(), asn1_make_string(), asn1_make_length(), asn1_make_id(). * asn1_k_encode.h, asn1_k_encode.c: Change length fields to unsigned ints for all functions. (asn1_encode_etype_info_entry): Test for KRB5_ETYPE_NO_SALT instead of -1. * asn1_k_decode.c (asn1_decode_etype_info_entry): Use a length of KRB5_ETYPE_NO_SALT to indicate the optional salt not being present. (instead of -1). (setup): Length is now unsigned int. * asn1_get.c, asn1_get.h: Change retlent to unsigned int * for asn1_get_tag(), asn1_get_tag_indef(), asn1_get_sequence, asn1_get_length(). * asn1_encode.c, asn1_encode.h: Change retlen to unsigned int * for asn1_encode_integer(), asn1_encode_unsigned_integer(), asn1_encode_octetstring(), asn1_encode_charstring(), asn1_encode_printable_string(), asn1_encode_ia5string(), asn1_encode_generaltime(), asn1_encode_generalstring() * asn1_decode.c, asn1_decode.h: Change retlen to unsigned int * for asn1_decode_octetstring(), asn1_decode_generalstring(), asn1_decode_charstring(), git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12779 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_get.h')
-rw-r--r--src/lib/krb5/asn.1/asn1_get.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/krb5/asn.1/asn1_get.h b/src/lib/krb5/asn.1/asn1_get.h
index 2f5edf1..4503470 100644
--- a/src/lib/krb5/asn.1/asn1_get.h
+++ b/src/lib/krb5/asn.1/asn1_get.h
@@ -38,13 +38,13 @@ asn1_error_code asn1_get_tag_indef
asn1_class *class,
asn1_construction *construction,
asn1_tagnum *tagnum,
- int *retlen, int *indef));
+ unsigned int *retlen, int *indef));
asn1_error_code asn1_get_tag
PROTOTYPE((asn1buf *buf,
asn1_class *class,
asn1_construction *construction,
asn1_tagnum *tagnum,
- int *retlen));
+ unsigned int *retlen));
/* requires *buf is allocated
effects Decodes the tag in *buf. If class != NULL, returns
the class in *class. Similarly, the construction,
@@ -55,7 +55,7 @@ asn1_error_code asn1_get_tag
Returns ASN1_OVERRUN if *buf is exhausted during the parse. */
asn1_error_code asn1_get_sequence
- PROTOTYPE((asn1buf *buf, int *retlen, int *indef));
+ PROTOTYPE((asn1buf *buf, unsigned int *retlen, int *indef));
/* requires *buf is allocated
effects Decodes a tag from *buf and returns ASN1_BAD_ID if it
doesn't have a sequence ID. If retlen != NULL, the
@@ -77,7 +77,7 @@ asn1_error_code asn1_get_id
Returns ASN1_OVERRUN if *buf is exhausted. */
asn1_error_code asn1_get_length
- PROTOTYPE((asn1buf *buf, int *retlen, int *indef));
+ PROTOTYPE((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