[crypto] Add certstat() to display basic certificate information

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-08-25 15:39:43 +01:00
parent 9a1a42f283
commit 1e277ab062
3 changed files with 81 additions and 2 deletions

View File

@@ -122,10 +122,10 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
__einfo_uniqify ( EINFO_EACCES, 0x0b, "No usable certificates" )
/**
* Get X.509 certificate name (for debugging)
* Get X.509 certificate display name
*
* @v cert X.509 certificate
* @ret name Name (for debugging)
* @ret name Display name
*/
const char * x509_name ( struct x509_certificate *cert ) {
struct asn1_cursor *common_name = &cert->subject.common_name;