I would like to get a list of all the CAs added to the X509_STORE. For this I use:
X509_STORE_set_default_paths or X509_STORE_load_locations.
Basically I need to get the list of the CAs out of the store or the store context. I could not figure out a proper way to do this. I tried to use X509_STORE_get1_certs but this seems to require a X509_NAME which I do not have since I want all the certificates out of the CAs.