Bläddra i källkod

[crypto] Expose asn1_grow()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 år sedan
förälder
incheckning
e5bfa107ba
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1
    1
      src/crypto/asn1.c
  2. 1
    0
      src/include/ipxe/asn1.h

+ 1
- 1
src/crypto/asn1.c Visa fil

@@ -739,7 +739,7 @@ static size_t asn1_header ( struct asn1_builder_header *header,
739 739
  * @v extra		Extra space to prepend
740 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 743
 	size_t new_len;
744 744
 	void *new;
745 745
 

+ 1
- 0
src/include/ipxe/asn1.h Visa fil

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

Laddar…
Avbryt
Spara