diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-21 17:14:05 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-22 00:31:22 +0000 |
commit | c28537838858be19a0d9ee903fc3758ec73d756d (patch) | |
tree | 334ec41e125e0e704a7d04c0a829b24dc17ca9aa /src/include/ipxe | |
parent | d56499ab1887f6b9e2ec8635c1f5a93af2bb6ea8 (diff) | |
download | ipxe-c28537838858be19a0d9ee903fc3758ec73d756d.zip ipxe-c28537838858be19a0d9ee903fc3758ec73d756d.tar.gz ipxe-c28537838858be19a0d9ee903fc3758ec73d756d.tar.bz2 |
[crypto] Parse X.509 certificate serial number
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r-- | src/include/ipxe/x509.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h index 45f738c..ca2912f 100644 --- a/src/include/ipxe/x509.h +++ b/src/include/ipxe/x509.h @@ -24,6 +24,12 @@ struct x509_bit_string { unsigned int unused; }; +/** An X.509 serial number */ +struct x509_serial { + /** Raw serial number */ + struct asn1_cursor raw; +}; + /** An X.509 issuer */ struct x509_issuer { /** Raw issuer */ @@ -121,6 +127,8 @@ struct x509_certificate { struct asn1_cursor raw; /** Version */ unsigned int version; + /** Serial number */ + struct x509_serial serial; /** Raw tbsCertificate */ struct asn1_cursor tbs; /** Signature algorithm */ |