If we're not making asn1buf_insert_octet an inline function, then make
authorKen Raeburn <raeburn@mit.edu>
Mon, 3 Nov 2008 18:41:33 +0000 (18:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 3 Nov 2008 18:41:33 +0000 (18:41 +0000)
commitb093fb36e64edf461a560926b9cac9c4fc5a07d9
tree9557c3a364c44ca1c3acc49a8b0e6bd3218905bb
parent69c7a12b6b2c625797ff637bbc5693f0a1b6ee02
If we're not making asn1buf_insert_octet an inline function, then make
asn1buf_size, asn1buf_ensure_space, and asn1buf_expand static in
asn1buf.c, for better optimization.

Recode asn1buf_ensure_space to directly return the result of asn1buf_expand.
Don't check for NULL before malloc/realloc in asn1buf_expand.

Fix a couple minor signedness warnings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20957 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/asn.1/asn1_encode.c
src/lib/krb5/asn.1/asn1_k_encode.c
src/lib/krb5/asn.1/asn1buf.c
src/lib/krb5/asn.1/asn1buf.h