aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-05-14 00:13:00 +0100
committerMichael Brown <mcb30@ipxe.org>2012-05-14 00:20:28 +0100
commit7deb610881d36dd156edbf705f923cf43cc0fdf5 (patch)
treea5d2ddfc3a44e9facb35f3aa23b7ddf9167520d1 /src/include/ipxe
parent88c09b36cfefc037cca7c409423b14d8c556e3be (diff)
downloadipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.zip
ipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.tar.gz
ipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.tar.bz2
[crypto] Generalise asn1_{digest,pubkey,signature}_algorithm()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/asn1.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h
index 38f0e5b..cd0d534 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 );