Lines Matching refs:mServer
74 switch (mServer.protocol) { in tcpConnect()
82 mSslFd.reset(socket(mServer.ss.ss_family, type, mServer.protocol)); in tcpConnect()
105 if (connect(mSslFd.get(), reinterpret_cast<const struct sockaddr *>(&mServer.ss), in tcpConnect()
106 sizeof(mServer.ss)) != 0 && in tcpConnect()
118 BIO_new_mem_buf(mServer.certificate.data(), mServer.certificate.size())); in setTestCaCertificate()
150 if (!mServer.certificate.empty()) { in initialize()
210 if (!mServer.name.empty()) { in sslConnect()
211 LOG(VERBOSE) << "Checking DNS over TLS hostname = " << mServer.name.c_str(); in sslConnect()
212 if (SSL_set_tlsext_host_name(ssl.get(), mServer.name.c_str()) != 1) { in sslConnect()
213 LOG(ERROR) << "Failed to set SNI to " << mServer.name; in sslConnect()
217 if (X509_VERIFY_PARAM_set1_host(param, mServer.name.data(), mServer.name.size()) != 1) { in sslConnect()
218 LOG(ERROR) << "Failed to set verify host param to " << mServer.name; in sslConnect()
245 if (int err = waitForReading(fd, mServer.connectTimeout.count()); err <= 0) { in sslConnect()
254 if (int err = waitForWriting(fd, mServer.connectTimeout.count()); err <= 0) { in sslConnect()