blpapi::TlsOptions tlsOptionsFromFiles
= blpapi::TlsOptions::createFromFiles("client",
"mypassword",
"trusted");
tlsOptionsFromFiles.setTlsHandshakeTimeoutMs(123456);
SessionOptions sessionOptions1;
sessionOptions1.setTlsOptions(tlsOptionsFromFiles);
std::string credentials = getCredentials();
std::string password = getPassword();
std::string trustedCerts = getCerts();
blpapi::TlsOptions tlsOptionsFromBlobs
= blpapi::TlsOptions::createFromBlobs(credentials.data(),
credentials.size(),
password.c_str(),
trustedCerts.data(),
trustedCerts.size());
tlsOptionsFromBlobs.setCrlFetchTimeoutMs(234567);
SessionOptions sessionOptions2;
sessionOptions2.setTlsOptions(tlsOptionsFromBlobs);