Changes from the Kerbnet release by Cygnus
authorEzra Peisach <epeisach@mit.edu>
Thu, 14 Aug 1997 15:38:14 +0000 (15:38 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 14 Aug 1997 15:38:14 +0000 (15:38 +0000)
commit3144fb833f8e7eb4f8ac183d48404e5c68b295a2
treeb4b9c11ffb122d1a0c54f45d611fa792a9332c21
parentf2952ba70fbf6694213996e318b633570d8dae24
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
src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1buf.c
src/lib/krb5/asn.1/asn1buf.h