]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto: load all certificates in X509 CA file
authorHenry Kleynhans <hkleynhans@fb.com>
Wed, 22 Dec 2021 15:05:59 +0000 (15:05 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 21 Jul 2025 10:30:07 +0000 (11:30 +0100)
commit6f7f3419cce86553dd239f10a5deb9ab872bd8c2
treedab61c61fa8d1d83cde98f95b7171a979dcbca2b
parent2183ab62512c6253293e83cce3970b0b42e65630
crypto: load all certificates in X509 CA file

Some CA files may contain multiple intermediaries and roots of trust.
These may not fit into the hard-coded limit of 16.

Extend the validation code to allocate enough space to load all of the
certificates present in the CA file and ensure they are cleaned up.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Henry Kleynhans <hkleynhans@fb.com>
[DB: drop MAX_CERTS constant & whitespace tweaks]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/tlscredsx509.c