]> git.baikalelectronics.ru Git - kernel.git/commit
PKCS#7: X.509 certificate issuer and subject are mandatory fields in the ASN.1
authorDavid Howells <dhowells@redhat.com>
Thu, 31 Jul 2014 13:46:44 +0000 (14:46 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 31 Jul 2014 13:46:44 +0000 (14:46 +0100)
commit273e5dff0abcbdd5ad727104e2ada922da47d095
treeb586323b6a88ebb192178eec2c6955db2a1d901a
parent1ff47f11120faefba9e75f129932c89e5ac48c40
PKCS#7: X.509 certificate issuer and subject are mandatory fields in the ASN.1

X.509 certificate issuer and subject fields are mandatory fields in the ASN.1
and so their existence needn't be tested for.  They are guaranteed to end up
with an empty string if the name material has nothing we can use (see
x509_fabricate_name()).

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
crypto/asymmetric_keys/pkcs7_verify.c