Home
last modified time | relevance | path

Searched refs:pClientSocketFactory (Results 1 – 4 of 4) sorted by relevance

/thrift-3.4.0/lib/cpp/test/
DTSSLSocketInterruptTest.cpp130 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in createClientSocketFactory() local
132 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() local
146 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 …]
DTNonblockingSSLServerTest.cpp121 std::shared_ptr<TSSLSocketFactory> pClientSocketFactory; in createClientSocketFactory() local
123 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() local
235 … std::shared_ptr<TSSLSocket> socket = pClientSocketFactory->createSocket("localhost", serverPort); in canCommunicate()
DSecurityTest.cpp157 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in client() local
162pClientSocketFactory.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()
DSecurityFromBufferTest.cpp151 shared_ptr<TSSLSocketFactory> pClientSocketFactory; in client() local
155pClientSocketFactory.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()