Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This version of Boost is under active development. You are currently in the develop branch. The current version is 1.91.0.
Set the callback used to verify peer certificates.
template< typename VerifyCallback> void set_verify_callback( VerifyCallback callback, boost::system::error_code & ec);
This function is used to specify a callback function that will be called by the implementation when it needs to verify a peer certificate.
The function object to be used for verifying a certificate. The function signature of the handler must be:
bool verify_callback( bool preverified, // True if the certificate passed pre-verification. verify_context& ctx // The peer certificate and other context. );
The return value of the callback is true if the certificate has passed verification, false otherwise.
Set to indicate what error occurred, if any.
Calls SSL_set_verify.