wolfssl
wolfssl copied to clipboard
Fix X509 load locations to handle PEM files with multiple certs
Description
wolfSSL_X509_load_locations() previously did not handle PEM files with multiple certs in one file, only the first cert would be loaded. Modify wolfSSL_X509_load_locations() to fix this by using existing logic in x509.c to loop over the PEM headers and load each item, cert or CRL.
Fixes zd 19835
Checklist
- [x] added tests
Retest this please.
Found unhandled hudson.remoting.RequestAbortedException exception: java.io.IOException: Unexpected EOF
@ColtonWilley please rebase to run all the latest tests.