From e5bfa107bad45ea9e0304a74f07cc0c7fc9860ae Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 13 Jun 2017 12:11:40 +0100 Subject: [PATCH] [crypto] Expose asn1_grow() Signed-off-by: Michael Brown --- src/crypto/asn1.c | 2 +- src/include/ipxe/asn1.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/asn1.c b/src/crypto/asn1.c index ff56e1f3..549ee4d8 100644 --- a/src/crypto/asn1.c +++ b/src/crypto/asn1.c @@ -739,7 +739,7 @@ static size_t asn1_header ( struct asn1_builder_header *header, * @v extra Extra space to prepend * @ret rc Return status code */ -static int asn1_grow ( struct asn1_builder *builder, size_t extra ) { +int asn1_grow ( struct asn1_builder *builder, size_t extra ) { size_t new_len; void *new; diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h index b0a82c00..5a6c0d9c 100644 --- a/src/include/ipxe/asn1.h +++ b/src/include/ipxe/asn1.h @@ -365,6 +365,7 @@ extern int asn1_signature_algorithm ( const struct asn1_cursor *cursor, struct asn1_algorithm **algorithm ); extern int asn1_generalized_time ( const struct asn1_cursor *cursor, time_t *time ); +extern int asn1_grow ( struct asn1_builder *builder, size_t extra ); extern int asn1_prepend_raw ( struct asn1_builder *builder, const void *data, size_t len ); extern int asn1_prepend ( struct asn1_builder *builder, unsigned int type,