Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ sslNewSessionCallback

std::function<void(::SSL* ssl, const std::string& adapterName)> Ice::SSL::OpenSSLServerAuthenticationOptions::sslNewSessionCallback {}

A callback invoked before initiating a new SSL handshake, providing an opportunity to customize the SSL parameters for the connection.

Parameters
sslA pointer to the SSL object representing the connection.
adapterNameThe name of the object adapter that accepted the connection.

Example of setting sslNewSessionCallback:

communicator->createObjectAdapterWithEndpoints(
"Hello",
"ssl -h 127.0.0.1 -p 10000",
.sslNewSessionCallback = [](SSL* ssl, const std::string&)
{
SSL_set_verify(
ssl,
SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
nullptr);
}});
See also
SSL_new.

Definition at line 244 of file ServerAuthenticationOptions.h.