Changes from the Kerbnet release by Cygnus
* asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
asn1buf_ensure_space, asn1buf_len): Add macro versions.
(asn1buf_insert_octet) [__GNUC__ >= 2]: Ditto, using a GNU C
extension.
* asn1buf.c (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
asn1buf_ensure_space, asn1buf_len, asn1buf_insert_octet): Undef
macros before defining as functions.
[Kerbnet changes made by raeburn@cygnus.com]
* asn1buf.h (asn1buf_expand): Remove "const" from int arg in
prototype.
* asn1buf.c (asn1buf_remove_charstring, asn1buf_create,
asn1buf_remove_octetstring, asn12krb5_buf): Call malloc instead of
calloc.
(asn1buf_unparse, asn1buf_hex_unparse): Ditto. Also don't
allocate extra byte, since sizeof(STRING) does count the trailing
null.
(asn1buf_expand): Adjust bound based on increment
value used, not value specified by caller.
[Kerbnet changes made by raeburn@cygnus.com]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10174
dc483132-0cff-0310-8789-
dd5450dbe970