diff options
| author | Michael Brown | 2012-05-14 01:13:00 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-05-14 01:20:28 +0200 |
| commit | 7deb610881d36dd156edbf705f923cf43cc0fdf5 (patch) | |
| tree | a5d2ddfc3a44e9facb35f3aa23b7ddf9167520d1 /src/include | |
| parent | [crypto] Generalise x509_parse_time() to asn1_generalized_time() (diff) | |
| download | ipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.tar.gz ipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.tar.xz ipxe-7deb610881d36dd156edbf705f923cf43cc0fdf5.zip | |
[crypto] Generalise asn1_{digest,pubkey,signature}_algorithm()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/asn1.h | 10 |
1 files changed, 8 insertions, 2 deletions
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 ); |
