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

◆ sslNewSessionCallback

std::function<void(::SSL* ssl, const std::string& host)> Ice::SSL::OpenSSLClientAuthenticationOptions::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.
hostThe target host name.

Example of setting sslNewSessionCallback:

auto initData = Ice::InitializationData{
.clientAuthenticationOptions = Ice::SSL::ClientAuthenticationOptions{
.sslNewSessionCallback = [](SSL* ssl, const std::string&)
{
if (!SSL_set_cipher_list(ssl, "HIGH:!aNULL:!MD5"))
{
// Handle error
}
}}};
See also
SSL_new.

Definition at line 233 of file ClientAuthenticationOptions.h.