Searched refs:pClientSocketFactory (Results 1 – 4 of 4) sorted by relevance
130 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in createClientSocketFactory() local132 pClientSocketFactory.reset(new TSSLSocketFactory()); in createClientSocketFactory()133 pClientSocketFactory->authenticate(true); in createClientSocketFactory()134 pClientSocketFactory->loadCertificate(certFile("client.crt").string().c_str()); in createClientSocketFactory()135 pClientSocketFactory->loadPrivateKey(certFile("client.key").string().c_str()); in createClientSocketFactory()136 pClientSocketFactory->loadTrustedCertificates(certFile("CA.pem").string().c_str()); in createClientSocketFactory()137 return pClientSocketFactory; in createClientSocketFactory()145 shared_ptr<TSSLSocketFactory> pClientSocketFactory = createClientSocketFactory(); in BOOST_AUTO_TEST_CASE() local146 shared_ptr<TSSLSocket> clientSock = pClientSocketFactory->createSocket("localhost", port); in BOOST_AUTO_TEST_CASE()165 shared_ptr<TSSLSocketFactory> pClientSocketFactory = createClientSocketFactory(); in BOOST_AUTO_TEST_CASE() local[all …]
121 std::shared_ptr<TSSLSocketFactory> pClientSocketFactory; in createClientSocketFactory() local123 pClientSocketFactory.reset(new TSSLSocketFactory()); in createClientSocketFactory()124 pClientSocketFactory->authenticate(true); in createClientSocketFactory()125 pClientSocketFactory->loadCertificate(certFile("client.crt").string().c_str()); in createClientSocketFactory()126 pClientSocketFactory->loadPrivateKey(certFile("client.key").string().c_str()); in createClientSocketFactory()127 pClientSocketFactory->loadTrustedCertificates(certFile("CA.pem").string().c_str()); in createClientSocketFactory()128 return pClientSocketFactory; in createClientSocketFactory()234 std::shared_ptr<TSSLSocketFactory> pClientSocketFactory = createClientSocketFactory(); in canCommunicate() local235 … std::shared_ptr<TSSLSocket> socket = pClientSocketFactory->createSocket("localhost", serverPort); in canCommunicate()
157 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in client() local162 …pClientSocketFactory.reset(new TSSLSocketFactory(static_cast<apache::thrift::transport::SSLProtoco… in client()163 pClientSocketFactory->authenticate(true); in client()164 pClientSocketFactory->loadCertificate(certFile("client.crt").string().c_str()); in client()165 pClientSocketFactory->loadPrivateKey(certFile("client.key").string().c_str()); in client()166 pClientSocketFactory->loadTrustedCertificates(certFile("CA.pem").string().c_str()); in client()167 pClientSocket = pClientSocketFactory->createSocket("localhost", mPort); in client()
151 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in client() local155 …pClientSocketFactory.reset(new TSSLSocketFactory(static_cast<apache::thrift::transport::SSLProtoco… in client()156 pClientSocketFactory->authenticate(true); in client()157 pClientSocketFactory->loadCertificateFromBuffer(certString("client.crt").c_str()); in client()158 pClientSocketFactory->loadPrivateKeyFromBuffer(certString("client.key").c_str()); in client()159 pClientSocketFactory->loadTrustedCertificatesFromBuffer(certString("CA.pem").c_str()); in client()160 pClientSocket = pClientSocketFactory->createSocket("localhost", mPort); in client()