std::function<CFArrayRef(const std::string& host)> Ice::SSL::SecureTransportClientAuthenticationOptions::clientCertificateSelectionCallback |
A callback for selecting the client's SSL certificate chain 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 certificate chain. The callback must return a CFArrayRef that represents the client's certificate chain, or nullptr if no certificate chain should be used for the connection. The SSL transport takes ownership of the returned CFArrayRef and releases it when the connection is closed.
host | The target host name. |
Example of setting clientCertificateSelectionCallback:
See the SSLSetCertificate documentation for requirements on the certificate chain format.
Definition at line 122 of file ClientAuthenticationOptions.h.