Lines Matching refs:ctx_
407 if (ctx_ != nullptr) { in Reset()
410 ctx_.reset(); in Reset()
516 sc->ctx_.reset(SSL_CTX_new(method)); in Init()
517 if (!sc->ctx_) { in Init()
520 SSL_CTX_set_app_data(sc->ctx_.get(), sc); in Init()
526 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv2); in Init()
527 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv3); in Init()
529 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_ALLOW_CLIENT_RENEGOTIATION); in Init()
535 SSL_CTX_clear_mode(sc->ctx_.get(), SSL_MODE_NO_AUTO_CHAIN); in Init()
538 SSL_CTX_set_session_cache_mode(sc->ctx_.get(), in Init()
544 SSL_CTX_set_min_proto_version(sc->ctx_.get(), min_version); in Init()
545 SSL_CTX_set_max_proto_version(sc->ctx_.get(), max_version); in Init()
556 SSL_CTX_set_tlsext_ticket_key_cb(sc->ctx_.get(), TicketCompatibilityCallback); in Init()
560 return SSLPointer(SSL_new(ctx_.get())); in CreateSSL()
564 SSL_CTX_sess_set_new_cb(ctx_.get(), cb); in SetNewSessionCallback()
568 SSL_CTX_sess_set_get_cb(ctx_.get(), cb); in SetGetSessionCallback()
572 SSL_CTX_set_tlsext_servername_callback(ctx_.get(), cb); in SetSelectSNIContextCallback()
576 SSL_CTX_set_keylog_callback(ctx_.get(), cb); in SetKeylogCallback()
587 if (!SSL_CTX_use_PrivateKey(ctx_.get(), key->GetAsymmetricKey().get())) { in UseKey()
624 if (!SSL_CTX_use_PrivateKey(sc->ctx_.get(), key.get())) in SetKey()
639 if (!SSL_CTX_set1_sigalgs_list(sc->ctx_.get(), *sigalgs)) in SetSigalgs()
676 if (!SSL_CTX_use_PrivateKey(sc->ctx_.get(), key.get())) in SetEngineKey()
693 ctx_.get(), std::move(bio), &cert_, &issuer_) == 0) { in AddCert()
715 X509_STORE* cert_store = SSL_CTX_get_cert_store(ctx_.get()); in SetCACert()
720 SSL_CTX_set_cert_store(ctx_.get(), cert_store); in SetCACert()
723 CHECK_EQ(1, SSL_CTX_add_client_CA(ctx_.get(), x509.get())); in SetCACert()
751 X509_STORE* cert_store = SSL_CTX_get_cert_store(ctx_.get()); in SetCRL()
754 SSL_CTX_set_cert_store(ctx_.get(), cert_store); in SetCRL()
782 SSL_CTX_set_cert_store(ctx_.get(), store); in SetRootCerts()
803 if (!SSL_CTX_set_ciphersuites(sc->ctx_.get(), *ciphers)) in SetCipherSuites()
818 if (!SSL_CTX_set_cipher_list(sc->ctx_.get(), *ciphers)) { in SetCiphers()
842 if (curve != "auto" && !SSL_CTX_set1_curves_list(sc->ctx_.get(), *curve)) { in SetECDHCurve()
859 CHECK(SSL_CTX_set_dh_auto(sc->ctx_.get(), true)); in SetDHParam()
888 if (!SSL_CTX_set_tmp_dh(sc->ctx_.get(), dh.get())) { in SetDHParam()
903 CHECK(SSL_CTX_set_min_proto_version(sc->ctx_.get(), version)); in SetMinProto()
915 CHECK(SSL_CTX_set_max_proto_version(sc->ctx_.get(), version)); in SetMaxProto()
925 SSL_CTX_get_min_proto_version(sc->ctx_.get()); in GetMinProto()
936 SSL_CTX_get_max_proto_version(sc->ctx_.get()); in GetMaxProto()
950 SSL_CTX_set_options(sc->ctx_.get(), in SetOptions()
968 if (SSL_CTX_set_session_id_context(sc->ctx_.get(), sid_ctx, sid_ctx_len) == 1) in SetSessionIdContext()
995 SSL_CTX_set_timeout(sc->ctx_.get(), sessionTimeout); in SetSessionTimeout()
1038 X509_STORE* cert_store = SSL_CTX_get_cert_store(sc->ctx_.get()); in LoadPKCS12()
1057 SSL_CTX_use_certificate_chain(sc->ctx_.get(), in LoadPKCS12()
1062 SSL_CTX_use_PrivateKey(sc->ctx_.get(), pkey.get())) { in LoadPKCS12()
1069 SSL_CTX_set_cert_store(sc->ctx_.get(), cert_store); in LoadPKCS12()
1072 SSL_CTX_add_client_CA(sc->ctx_.get(), ca); in LoadPKCS12()
1117 if (!SSL_CTX_set_client_cert_engine(sc->ctx_.get(), engine.get())) in SetClientCertEngine()
1162 SSL_CTX_set_tlsext_ticket_key_cb(wrap->ctx_.get(), TicketKeyCallback); in EnableTicketKeyCallback()
1307 Local<External> ext = External::New(info.GetIsolate(), sc->ctx_.get()); in CtxGetter()