summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/engine
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-05-27 17:42:00 +0800
committerPeter Jones <pjones@redhat.com>2014-06-25 09:55:49 -0400
commit5f18e2e3643524c6b6b38c44c6ce4eabdcfd59d1 (patch)
treee5d62e5274b7a19b88f604a3836a719af16beb0d /Cryptlib/OpenSSL/crypto/engine
parentf500a8742c19be604d33907b56ab9597fe448b65 (diff)
downloadefi-boot-shim-5f18e2e3643524c6b6b38c44c6ce4eabdcfd59d1.tar.gz
efi-boot-shim-5f18e2e3643524c6b6b38c44c6ce4eabdcfd59d1.zip
Check the first 4 bytes of the certificate
A non-DER encoding x509 certificate may be mistakenly enrolled into db or MokList. This commit checks the first 4 bytes of the certificate to ensure that it's DER encoding. This commit also removes the iteration of the x509 signature list. Per UEFI SPEC, each x509 signature list contains only one x509 certificate. Besides, the size of certificate is incorrect. The size of the header must be substracted from the signature size. Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/engine')
0 files changed, 0 insertions, 0 deletions