aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/x509.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-05-14 09:54:19 +0100
committerMichael Brown <mcb30@ipxe.org>2012-05-14 11:02:38 +0100
commit4aad46ac70933458f118f59506044de35eb9f7cf (patch)
treeebdac8ad53dbfd64df37a9a4d498e2c52c9d733b /src/include/ipxe/x509.h
parent7deb610881d36dd156edbf705f923cf43cc0fdf5 (diff)
downloadipxe-4aad46ac70933458f118f59506044de35eb9f7cf.tar.gz
[crypto] Generalise x509_parse_bit_string() to asn1_bit_string()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/x509.h')
-rw-r--r--src/include/ipxe/x509.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h
index a55511b81..8b1dda25f 100644
--- a/src/include/ipxe/x509.h
+++ b/src/include/ipxe/x509.h
@@ -16,16 +16,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/refcnt.h>
#include <ipxe/list.h>
-/** An X.509 bit string */
-struct x509_bit_string {
- /** Data */
- const void *data;
- /** Length */
- size_t len;
- /** Unused bits at end of data */
- unsigned int unused;
-};
-
/** An X.509 serial number */
struct x509_serial {
/** Raw serial number */
@@ -59,7 +49,7 @@ struct x509_public_key {
/** Public key algorithm */
struct asn1_algorithm *algorithm;
/** Raw public key bit string */
- struct x509_bit_string raw_bits;
+ struct asn1_bit_string raw_bits;
};
/** An X.509 certificate subject */
@@ -77,7 +67,7 @@ struct x509_signature {
/** Signature algorithm */
struct asn1_algorithm *algorithm;
/** Signature value */
- struct x509_bit_string value;
+ struct asn1_bit_string value;
};
/** An X.509 certificate basic constraints set */