Browse Source

[crypto] Expose asn1_grow()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
e5bfa107ba
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      src/crypto/asn1.c
  2. 1
    0
      src/include/ipxe/asn1.h

+ 1
- 1
src/crypto/asn1.c View File

739
  * @v extra		Extra space to prepend
739
  * @v extra		Extra space to prepend
740
  * @ret rc		Return status code
740
  * @ret rc		Return status code
741
  */
741
  */
742
-static int asn1_grow ( struct asn1_builder *builder, size_t extra ) {
742
+int asn1_grow ( struct asn1_builder *builder, size_t extra ) {
743
 	size_t new_len;
743
 	size_t new_len;
744
 	void *new;
744
 	void *new;
745
 
745
 

+ 1
- 0
src/include/ipxe/asn1.h View File

365
 				      struct asn1_algorithm **algorithm );
365
 				      struct asn1_algorithm **algorithm );
366
 extern int asn1_generalized_time ( const struct asn1_cursor *cursor,
366
 extern int asn1_generalized_time ( const struct asn1_cursor *cursor,
367
 				   time_t *time );
367
 				   time_t *time );
368
+extern int asn1_grow ( struct asn1_builder *builder, size_t extra );
368
 extern int asn1_prepend_raw ( struct asn1_builder *builder, const void *data,
369
 extern int asn1_prepend_raw ( struct asn1_builder *builder, const void *data,
369
 			      size_t len );
370
 			      size_t len );
370
 extern int asn1_prepend ( struct asn1_builder *builder, unsigned int type,
371
 extern int asn1_prepend ( struct asn1_builder *builder, unsigned int type,

Loading…
Cancel
Save