mirror of
https://github.com/ipxe/ipxe
synced 2026-01-11 16:08:34 +03:00
[crypto] Allow for X.509 certificates with no common name
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -745,7 +745,8 @@ int cms_verify ( struct cms_signature *sig, userptr_t data, size_t len,
|
||||
/* Verify using all signerInfos */
|
||||
list_for_each_entry ( info, &sig->info, list ) {
|
||||
cert = x509_first ( info->chain );
|
||||
if ( name && ( strcmp ( name, cert->subject.name ) != 0 ) )
|
||||
if ( name && ( ( cert->subject.name == NULL ) ||
|
||||
( strcmp ( cert->subject.name, name ) != 0 ) ) )
|
||||
continue;
|
||||
if ( ( rc = cms_verify_signer_info ( sig, info, data, len,
|
||||
time, root ) ) != 0 )
|
||||
|
||||
Reference in New Issue
Block a user