diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 22:59:50 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 22:59:50 +0000 |
commit | 37d6df8704b4210e690ffeb3afc95fd240cceaa2 (patch) | |
tree | ac98d47a9b86e40955ecc4fa6f7db1e0d7a95221 /src/lib/krb5/asn.1/asn1_make.h | |
parent | 4289b42c30a2c905ee3a3614b55861c22a3bbe74 (diff) | |
download | krb5-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_make.h')
-rw-r--r-- | src/lib/krb5/asn.1/asn1_make.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/krb5/asn.1/asn1_make.h b/src/lib/krb5/asn.1/asn1_make.h index d2d3367..51562f2 100644 --- a/src/lib/krb5/asn.1/asn1_make.h +++ b/src/lib/krb5/asn.1/asn1_make.h @@ -50,8 +50,8 @@ asn1_error_code asn1_make_etag PROTOTYPE((asn1buf *buf, const asn1_class class, const asn1_tagnum tagnum, - const int in_len, - int *retlen)); + const unsigned int in_len, + unsigned int *retlen)); /* requires *buf is allocated, in_len is the length of an ASN.1 encoding which has just been inserted in *buf modifies *buf, *retlen @@ -64,8 +64,8 @@ asn1_error_code asn1_make_tag PROTOTYPE((asn1buf *buf, const asn1_class class, const asn1_construction construction, const asn1_tagnum tagnum, - const int in_len, - int *retlen)); + const unsigned int in_len, + unsigned int *retlen)); /* requires *buf is allocated, in_len is the length of an ASN.1 encoding which has just been inserted in *buf modifies *buf, *retlen @@ -78,7 +78,7 @@ asn1_error_code asn1_make_tag the implementation. */ asn1_error_code asn1_make_sequence - PROTOTYPE((asn1buf *buf, const int seq_len, int *len)); + PROTOTYPE((asn1buf *buf, const unsigned int seq_len, unsigned int *len)); /* requires *buf is allocated, seq_len is the length of a series of sequence components which have just been inserted in *buf modifies *buf, *retlen @@ -87,7 +87,8 @@ asn1_error_code asn1_make_sequence Returns ENOMEM if memory runs out. */ asn1_error_code asn1_make_set - PROTOTYPE((asn1buf *buf, const int set_len, int *retlen)); + PROTOTYPE((asn1buf *buf, const unsigned int set_len, + unsigned int *retlen)); /* requires *buf is allocated, seq_len is the length of a series of sequence components which have just been inserted in *buf modifies *buf, *retlen @@ -97,7 +98,7 @@ asn1_error_code asn1_make_set asn1_error_code asn1_make_string PROTOTYPE((asn1buf *buf, - const int len, const char *string, + const unsigned int len, const char *string, int *retlen)); /* requires *buf is allocated, len is the length of *string effects Inserts the encoding of *string @@ -111,7 +112,8 @@ asn1_error_code asn1_make_string /* "helper" procedure for asn1_make_tag */ asn1_error_code asn1_make_length - PROTOTYPE((asn1buf *buf, const int in_len, int *retlen)); + PROTOTYPE((asn1buf *buf, const unsigned int in_len, + unsigned int *retlen)); /* requires *buf is allocated, in_len is the length of an ASN.1 encoding which has just been inserted in *buf modifies *buf, *retlen @@ -124,7 +126,7 @@ asn1_error_code asn1_make_id const asn1_class class, const asn1_construction construction, const asn1_tagnum tagnum, - int *retlen)); + unsigned int *retlen)); /* requires *buf is allocated, class and tagnum are appropriate for the ASN.1 encoding which has just been inserted in *buf modifies *buf, *retlen |