Lines Matching refs:ssl
228 bssl::UniquePtr<SSL> ssl(SSL_new(mSslCtx.get())); in prepareForSslConnect() local
231 SSL_set_bio(ssl.get(), bio.get(), bio.get()); in prepareForSslConnect()
234 if (!mCache->prepareSsl(ssl.get())) { in prepareForSslConnect()
240 if (SSL_set_tlsext_host_name(ssl.get(), mServer.name.c_str()) != 1) { in prepareForSslConnect()
244 X509_VERIFY_PARAM* param = SSL_get0_param(ssl.get()); in prepareForSslConnect()
250 SSL_set_verify(ssl.get(), SSL_VERIFY_PEER, nullptr); in prepareForSslConnect()
256 SSL_set_session(ssl.get(), session.get()); in prepareForSslConnect()
261 return ssl; in prepareForSslConnect()
265 bssl::UniquePtr<SSL> ssl; in sslConnect() local
266 if (ssl = prepareForSslConnect(fd); !ssl) { in sslConnect()
272 int ret = SSL_connect(ssl.get()); in sslConnect()
276 const int ssl_err = SSL_get_error(ssl.get(), ret); in sslConnect()
306 return ssl; in sslConnect()
310 bssl::UniquePtr<SSL> ssl; in sslConnectV2() local
311 if (ssl = prepareForSslConnect(fd); !ssl) { in sslConnectV2()
317 int ret = SSL_connect(ssl.get()); in sslConnectV2()
327 const int ssl_err = SSL_get_error(ssl.get(), ret); in sslConnectV2()
359 return ssl; in sslConnectV2()