| std::function<SCH_CREDENTIALS(const std::string& host)> Ice::SSL::SchannelClientAuthenticationOptions::clientCredentialsSelectionCallback |
A callback for selecting the client's SSL credentials based on the target host name.
This callback is invoked by the SSL transport for each new outgoing connection before starting the SSL handshake to determine the appropriate client credentials. The callback must return a SCH_CREDENTIALS that represents the client's credentials. The returned credentials are passed to AcquireCredentialsHandle to create the credential handle for the connection; see the Schannel documentation for details on the available fields. The SSL transport takes ownership of the credentials' paCred and hRootStore members and releases them when the connection is closed.
Certificate validation is not performed through the returned credentials. Use trustedRootCertificates or serverCertificateValidationCallback instead.
| host | The target host name. |
Example of setting clientCertificateSelectionCallback:
Definition at line 56 of file ClientAuthenticationOptions.h.