Lines Matching refs:server_ctx
1638 SSL_CTX *client_ctx, SSL_CTX *server_ctx, in ConnectClientAndServer() argument
1642 bssl::UniquePtr<SSL> client(SSL_new(client_ctx)), server(SSL_new(server_ctx)); in ConnectClientAndServer()
1809 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
1811 ASSERT_TRUE(server_ctx); in TEST()
1817 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
1818 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
1822 server_ctx.get())); in TEST()
2159 SSL_CTX *client_ctx, SSL_CTX *server_ctx, in CreateClientSession() argument
2166 if (!ConnectClientAndServer(&client, &server, client_ctx, server_ctx, in CreateClientSession()
2182 static void ExpectSessionReused(SSL_CTX *client_ctx, SSL_CTX *server_ctx, in ExpectSessionReused() argument
2188 ConnectClientAndServer(&client, &server, client_ctx, server_ctx, config)); in ExpectSessionReused()
2197 SSL_CTX *server_ctx, in ExpectSessionRenewed() argument
2205 if (!ConnectClientAndServer(&client, &server, client_ctx, server_ctx, in ExpectSessionRenewed()
2649 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
2653 ASSERT_TRUE(server_ctx); in TEST()
2655 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
2656 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
2658 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
2661 server_ctx.get(), in TEST()
2672 server_ctx.get())); in TEST()
3284 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3285 ASSERT_TRUE(server_ctx); in TEST()
3287 ASSERT_EQ(nullptr, SSL_CTX_get0_chain(server_ctx.get())); in TEST()
3299 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3303 sk_CRYPTO_BUFFER_num(SSL_CTX_get0_chain(server_ctx.get()))); in TEST()
3313 server_ctx.get())); in TEST()
3319 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3320 ASSERT_TRUE(server_ctx); in TEST()
3327 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3334 server_ctx.get())); in TEST()
3343 server_ctx.get())); in TEST()
3349 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3350 ASSERT_TRUE(server_ctx); in TEST()
3357 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3368 server_ctx.get())); in TEST()
3379 server_ctx.get())); in TEST()
3390 server_ctx.get())); in TEST()
3396 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3397 ASSERT_TRUE(server_ctx); in TEST()
3410 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3420 SSL_CTX_set0_client_CAs(server_ctx.get(), ca_names.release()); in TEST()
3429 server_ctx.get(), SSL_VERIFY_PEER, in TEST()
3451 server_ctx.get())); in TEST()
3584 SSL_CTX *client_ctx, SSL_CTX *server_ctx, unsigned retry_count, in ConnectClientAndServerWithTicketMethod() argument
3586 bssl::UniquePtr<SSL> client(SSL_new(client_ctx)), server(SSL_new(server_ctx)); in ConnectClientAndServerWithTicketMethod()
3632 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST_P() local
3633 ASSERT_TRUE(server_ctx); in TEST_P()
3642 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST_P()
3643 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST_P()
3646 ASSERT_TRUE(SSL_CTX_set_min_proto_version(server_ctx.get(), version)); in TEST_P()
3647 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), version)); in TEST_P()
3650 SSL_CTX_set_session_cache_mode(server_ctx.get(), SSL_SESS_CACHE_BOTH); in TEST_P()
3652 SSL_CTX_set_current_time_cb(server_ctx.get(), FrozenTimeCallback); in TEST_P()
3655 SSL_CTX_set_ticket_aead_method(server_ctx.get(), &kSSLTestTicketMethod); in TEST_P()
3659 server_ctx.get(), retry_count, in TEST_P()
3677 server_ctx.get(), retry_count, in TEST_P()
3787 server_ctx(SSL_CTX_new(TLSv1_2_method())); in TEST() local
3789 ASSERT_TRUE(server_ctx); in TEST()
3795 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3796 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3800 server_ctx.get())); in TEST()
3830 server_ctx(SSL_CTX_new(TLSv1_2_method())); in TEST() local
3832 ASSERT_TRUE(server_ctx); in TEST()
3838 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3839 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3843 server_ctx.get())); in TEST()
3868 server_ctx(SSL_CTX_new(TLSv1_2_method())); in TEST() local
3870 ASSERT_TRUE(server_ctx); in TEST()
3876 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3877 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3881 server_ctx.get())); in TEST()
3907 server_ctx(SSL_CTX_new(TLSv1_2_method())); in TEST() local
3909 ASSERT_TRUE(server_ctx); in TEST()
3915 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3916 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3920 server_ctx.get())); in TEST()
4134 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4136 ASSERT_TRUE(server_ctx); in TEST()
4142 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
4143 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
4146 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
4150 server_ctx.get(), 0x1234, XORCompressFunc, XORDecompressFunc)); in TEST()
4154 server_ctx.get())); in TEST()
4175 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4178 ASSERT_TRUE(server_ctx); in TEST()
4183 SSL_CTX_set_handoff_mode(server_ctx.get(), 1); in TEST()
4185 SSL_CTX_get_tlsext_ticket_keys(server_ctx.get(), &keys, sizeof(keys)); in TEST()
4210 server_ctx.get(), config, in TEST()
4263 bssl::UniquePtr<SSL> server2(SSL_new(server_ctx.get())); in TEST()
4291 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4293 ASSERT_TRUE(server_ctx); in TEST()
4295 SSL_CTX_set_handoff_mode(server_ctx.get(), 1); in TEST()
4296 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_2_VERSION)); in TEST()
4302 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
4303 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
4307 server_ctx.get(), ClientConfig(), in TEST()
4477 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4478 bssl::UniquePtr<SSL> server(SSL_new(server_ctx.get())); in TEST()
4515 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4516 bssl::UniquePtr<SSL> server(SSL_new(server_ctx.get())); in TEST()
4554 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4555 EXPECT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
4556 EXPECT_TRUE(SSL_CTX_set_min_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
4561 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
4562 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
4570 server_ctx.get())); in TEST()
6517 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
6519 ASSERT_TRUE(server_ctx); in TEST()
6525 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
6526 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
6529 SSL_CTX_set_session_cache_mode(server_ctx.get(), SSL_SESS_CACHE_BOTH); in TEST()
6531 SSL_CTX_set_early_data_enabled(server_ctx.get(), 1); in TEST()
6534 CreateClientSession(client_ctx.get(), server_ctx.get()); in TEST()
6543 server_ctx.get(), config, in TEST()
6556 server_ctx.get(), config)); in TEST()
6573 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
6575 ASSERT_TRUE(server_ctx); in TEST()
6577 ASSERT_TRUE(SSL_CTX_set_min_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
6579 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
6580 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
6581 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
6585 server_ctx.get())); in TEST()
6635 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
6637 ASSERT_TRUE(server_ctx); in TEST()
6643 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
6644 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
6650 server_ctx.get())); in TEST()