You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I load trusted certificates into a vector of vmime::shared_ptrvmime::security::cert::X509Certificate and then pass it to a default verifier:
auto defaultVerifier = vmime::make_sharedvmime::security::cert::defaultCertificateVerifier();
defaultVerifier->setX509RootCAs(trustedCACerts);
finally I pass the verifier to the transport:
transport->setCertificateVerifier(defaultVerifier);
that is it.
Thanks josusky
would you be willing to post the entire set of code for that part?
I assume you are on version 0.9.2. Do you know if this part even works in version 0.9.1?
Thanks!
The full example is in the documentation (the VMime book): 6.7.3.2 "Using the default certificate verifier". Available since a few years, so should be ok in 0.9.1.
Is it possible to get a better example of using defaultCertificateVerifier?
example6.cpp only uses the version that accepts user input.
Thanks!
The text was updated successfully, but these errors were encountered: