diff options
| author | Henry Kleynhans <hkleynhans@fb.com> | 2021-12-22 15:05:59 +0000 |
|---|---|---|
| committer | Daniel P. Berrangé <berrange@redhat.com> | 2025-07-21 11:30:07 +0100 |
| commit | 6f7f3419cce86553dd239f10a5deb9ab872bd8c2 (patch) | |
| tree | dab61c61fa8d1d83cde98f95b7171a979dcbca2b /crypto/x509-utils.c | |
| parent | 2183ab62512c6253293e83cce3970b0b42e65630 (diff) | |
| download | focaccia-qemu-6f7f3419cce86553dd239f10a5deb9ab872bd8c2.tar.gz focaccia-qemu-6f7f3419cce86553dd239f10a5deb9ab872bd8c2.zip | |
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>
Diffstat (limited to 'crypto/x509-utils.c')
0 files changed, 0 insertions, 0 deletions