Home
last modified time | relevance | path

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

/packages/modules/adb/tls/
Dtls_connection.cpp73 bssl::UniquePtr<SSL_CTX> ssl_ctx_; member in adb::tls::__anon687488e00111::TlsConnectionImpl
216 ssl_ctx_.reset(SSL_CTX_new(TLS_method())); in DoHandshake()
220 if (ssl_ctx_.get() == nullptr || in DoHandshake()
221 !SSL_CTX_set_min_proto_version(ssl_ctx_.get(), TLS1_3_VERSION) || in DoHandshake()
222 !SSL_CTX_set_max_proto_version(ssl_ctx_.get(), TLS1_3_VERSION)) { in DoHandshake()
229 if (X509_STORE_add_cert(SSL_CTX_get_cert_store(ssl_ctx_.get()), cert.get()) == 0) { in DoHandshake()
237 SSL_CTX_set_cert_verify_callback(ssl_ctx_.get(), SSLSetCertVerifyCb, this); in DoHandshake()
242 SSL_CTX_set_cert_cb(ssl_ctx_.get(), SSLSetCertCb, this); in DoHandshake()
248 SSL_CTX_set_client_CA_list(ssl_ctx_.get(), names.release()); in DoHandshake()
255 if (!SSL_CTX_set_chain_and_key(ssl_ctx_.get(), cert_chain.data(), cert_chain.size(), in DoHandshake()
[all …]