summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2017-06-13 13:11:40 +0200
committerMichael Brown2017-06-20 10:49:00 +0200
commite5bfa107bad45ea9e0304a74f07cc0c7fc9860ae (patch)
treed72ed864a344ac9b4b75103c1ffaa23a0e268979 /src
parent[crypto] Expose RSA_CTX_SIZE constant (diff)
downloadipxe-e5bfa107bad45ea9e0304a74f07cc0c7fc9860ae.tar.gz
ipxe-e5bfa107bad45ea9e0304a74f07cc0c7fc9860ae.tar.xz
ipxe-e5bfa107bad45ea9e0304a74f07cc0c7fc9860ae.zip
[crypto] Expose asn1_grow()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/asn1.c2
-rw-r--r--src/include/ipxe/asn1.h1
2 files changed, 2 insertions, 1 deletions
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,