std::function<SSL_CTX*(const std::string& host)> Ice::SSL::OpenSSLClientAuthenticationOptions::clientSSLContextSelectionCallback {} |
A callback that selects the client's SSL_CTX object based on the target host name.
This callback associates a specific SSL configuration with an outgoing connection identified by the target host name. The callback must return a pointer to a valid SSL_CTX object previously initialized using the OpenSSL API. The SSL transport takes ownership of the returned SSL_CTX object and releases it after closing the connection.
If the application does not provide a callback, the SSL transport will use an SSL_CTX object created with SSL_CTX_new(), which uses the default OpenSSL configuration.
The SSL transport calls this callback for each new outgoing connection to obtain the SSL_CTX object before starting the SSL handshake.
host | The target host name. |
Example of setting clientSSLContextSelectionCallback:
Definition at line 219 of file ClientAuthenticationOptions.h.