std::function<CFArrayRef(const std::string& adapterName)> Ice::SSL::SecureTransportServerAuthenticationOptions::serverCertificateSelectionCallback |
A callback for selecting the server's SSL certificate chain based on the name of the object adapter that accepts the connection.
This callback is invoked by the SSL transport for each new incoming connection before starting the SSL handshake to determine the appropriate server certificate chain. The callback must return a CFArrayRef that represents the server'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.
adapterName | The name of the object adapter that accepted the connection. |
Example of setting serverCertificateSelectionCallback:
See the SSLSetCertificate documentation for requirements on the certificate chain format.
Definition at line 127 of file ServerAuthenticationOptions.h.