• Home
  • Raw
  • Download

Lines Matching refs:ctx_

311     bssl::UniquePtr<SSL> ssl_handoff(SSL_new(ctx_.get()));  in TestOneInput()
312 bssl::UniquePtr<SSL> ssl_handback(SSL_new(ctx_.get())); in TestOneInput()
379 ctx_.reset(SSL_CTX_new(protocol_ == kDTLS ? DTLS_method() : TLS_method())); in Init()
383 if (!ctx_ || !privkey || !pkey || in Init()
385 !SSL_CTX_use_PrivateKey(ctx_.get(), pkey.get())) { in Init()
392 !SSL_CTX_use_certificate(ctx_.get(), cert.get()) || in Init()
393 !SSL_CTX_set_ocsp_response(ctx_.get(), kOCSPResponse, in Init()
395 !SSL_CTX_set_signed_cert_timestamp_list(ctx_.get(), kSCT, in Init()
402 ctx_.get(), in Init()
405 SSL_CTX_enable_signed_cert_timestamps(ctx_.get()); in Init()
406 SSL_CTX_enable_ocsp_stapling(ctx_.get()); in Init()
409 if (!SSL_CTX_set_strict_cipher_list(ctx_.get(), "ALL:NULL-SHA")) { in Init()
413 !SSL_CTX_set_max_proto_version(ctx_.get(), TLS1_3_VERSION)) { in Init()
419 if (!SSL_CTX_set1_curves(ctx_.get(), kCurves, in Init()
424 SSL_CTX_set_early_data_enabled(ctx_.get(), 1); in Init()
426 SSL_CTX_set_next_proto_select_cb(ctx_.get(), NPNSelectCallback, nullptr); in Init()
427 SSL_CTX_set_next_protos_advertised_cb(ctx_.get(), NPNAdvertiseCallback, in Init()
430 SSL_CTX_set_alpn_select_cb(ctx_.get(), ALPNSelectCallback, nullptr); in Init()
431 if (SSL_CTX_set_alpn_protos(ctx_.get(), kALPNProtocols, in Init()
439 if (!pkey || !SSL_CTX_set1_tls_channel_id(ctx_.get(), pkey.get())) { in Init()
442 SSL_CTX_set_tls_channel_id_enabled(ctx_.get(), 1); in Init()
453 SSL_CTX_flush_sessions(ctx_.get(), 0); in SetupTest()
457 bssl::UniquePtr<SSL> ssl(SSL_new(ctx_.get())); in SetupTest()
479 CBS_data(&data), CBS_len(&data), ctx_.get())); in SetupTest()
485 SSL_CTX_add_session(ctx_.get(), session.get()); in SetupTest()
573 bssl::UniquePtr<SSL_CTX> ctx_; variable