wolfssl
wolfssl copied to clipboard
Add pkcs12 tests for wolfcrypt
Existing PKCS12 tests in test.c are really for the PKCS12 password based KDF functionality in pwdbased.c, so those have been renamed pcks12_kdf tests and a new function with the same symbol name now tests the APIs in pkcs12.h. Function wc_PKCS12_parse() yields an allocated WC_DerCertList structure, so I added a new publicly exposed associated free function, the existing wc_FreeCertList() is local and does not follow naming conventions, so I added a public wrapper for it. Stack sizes for certs are no larger than the ones used in the existing kyber tests.
Test with WOLFSSL_NO_MALLOC fails:
PKCS12 test failed!
error L=24872