david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/crypto
Michael Brown 5cbdc41778 [crypto] Fix parsing of OCSP responder ID key hash
We currently compare the entirety of the KeyHash object (including the
ASN.1 tag and length byte) against the raw SHA-1 hash of the
certificate's public key.  This causes OCSP validation to fail for any
responses which identify the responder by key hash rather than by
name, and hence prevents the use of X.509 certificates where any
certificate in the chain has an OCSP responder which chooses to
identify itself via its key hash.

Fix by adding the missing asn1_enter() required to enter the ASN.1
octet string containing the key hash.

Also add a corresponding test case including an OCSP response where
the responder is identified by key hash, to ensure that this
functionality cannot be broken in future.

Debugged-by: Brian Rak <brak@gameservers.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-11-24 15:05:43 +00:00
..
axtls [crypto] Remove obsolete AXTLS RSA algorithm 2012-03-18 14:47:16 +00:00
aes_wrap.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
arc4.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
asn1.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
axtls_aes.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
bigint.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
cbc.c [crypto] Allow in-place CBC decryption 2012-09-27 01:54:55 +01:00
certstore.c [crypto] Generalise X.509 cache to a full certificate store 2014-03-28 17:09:40 +00:00
chap.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
cms.c [crypto] Generalise X.509 cache to a full certificate store 2014-03-28 17:09:40 +00:00
crc32.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
crypto_null.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
deflate.c [deflate] Fix literal data length calculation 2014-01-12 22:53:10 +01:00
drbg.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
entropy.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
hash_df.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
hmac.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
hmac_drbg.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
md5.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
null_entropy.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
ocsp.c [crypto] Fix parsing of OCSP responder ID key hash 2014-11-24 15:05:43 +00:00
privkey.c [crypto] Generalise X.509 cache to a full certificate store 2014-03-28 17:09:40 +00:00
random_nz.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
rbg.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
rootcert.c [settings] Force settings into alphabetical order within sections 2013-12-05 12:43:28 +00:00
rsa.c [crypto] Add pubkey_match() to check for matching public/private key pairs 2014-03-27 00:30:47 +00:00
sha1.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
sha1extra.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
sha256.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
x509.c [crypto] Fix debug message 2014-07-12 14:24:40 +01:00