From 7deb610881d36dd156edbf705f923cf43cc0fdf5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 14 May 2012 00:13:00 +0100 Subject: [crypto] Generalise asn1_{digest,pubkey,signature}_algorithm() Signed-off-by: Michael Brown --- src/include/ipxe/asn1.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/include/ipxe/asn1.h') diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h index 38f0e5b01..cd0d53423 100644 --- a/src/include/ipxe/asn1.h +++ b/src/include/ipxe/asn1.h @@ -238,8 +238,14 @@ extern int asn1_boolean ( const struct asn1_cursor *cursor ); extern int asn1_integer ( const struct asn1_cursor *cursor, int *value ); extern int asn1_compare ( const struct asn1_cursor *cursor1, const struct asn1_cursor *cursor2 ); -extern struct asn1_algorithm * -asn1_algorithm ( const struct asn1_cursor *cursor ); +extern int asn1_algorithm ( const struct asn1_cursor *cursor, + struct asn1_algorithm **algorithm ); +extern int asn1_pubkey_algorithm ( const struct asn1_cursor *cursor, + struct asn1_algorithm **algorithm ); +extern int asn1_digest_algorithm ( const struct asn1_cursor *cursor, + struct asn1_algorithm **algorithm ); +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 ); -- cgit v1.2.3-55-g7522