Maintain client credentials and trust material. More...
Namespaces | |
namespace | blpapi |
Maintain client credentials and trust material.
blpapi::TlsOptions | user specified TLS options. |
TlsOptions::createFromBlobs
and TlsOptions::createFromFiles
; both accept the DER encoded client credentials in PKCS#12 format and the DER encoded trusted material in PKCS#7 format. SessionOptions
. 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);