• Home
  • Raw
  • Download

Lines Matching refs:server_ctx

1560                                    SSL_CTX *client_ctx, SSL_CTX *server_ctx,  in ConnectClientAndServer()  argument
1564 bssl::UniquePtr<SSL> client(SSL_new(client_ctx)), server(SSL_new(server_ctx)); in ConnectClientAndServer()
1729 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
1731 ASSERT_TRUE(server_ctx); in TEST()
1737 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
1738 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
1742 server_ctx.get())); in TEST()
2079 SSL_CTX *client_ctx, SSL_CTX *server_ctx, in CreateClientSession() argument
2086 if (!ConnectClientAndServer(&client, &server, client_ctx, server_ctx, in CreateClientSession()
2104 static void ExpectSessionReused(SSL_CTX *client_ctx, SSL_CTX *server_ctx, in ExpectSessionReused() argument
2110 ConnectClientAndServer(&client, &server, client_ctx, server_ctx, config)); in ExpectSessionReused()
2119 SSL_CTX *server_ctx, in ExpectSessionRenewed() argument
2127 if (!ConnectClientAndServer(&client, &server, client_ctx, server_ctx, in ExpectSessionRenewed()
2573 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
2577 ASSERT_TRUE(server_ctx); in TEST()
2579 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
2580 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
2582 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
2585 server_ctx.get(), in TEST()
2596 server_ctx.get())); in TEST()
3132 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3133 ASSERT_TRUE(server_ctx); in TEST()
3145 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3156 server_ctx.get())); in TEST()
3162 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3163 ASSERT_TRUE(server_ctx); in TEST()
3170 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3177 server_ctx.get())); in TEST()
3186 server_ctx.get())); in TEST()
3192 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3193 ASSERT_TRUE(server_ctx); in TEST()
3200 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3211 server_ctx.get())); in TEST()
3222 server_ctx.get())); in TEST()
3233 server_ctx.get())); in TEST()
3239 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_with_buffers_method())); in TEST() local
3240 ASSERT_TRUE(server_ctx); in TEST()
3253 ASSERT_TRUE(SSL_CTX_set_chain_and_key(server_ctx.get(), &chain[0], in TEST()
3263 SSL_CTX_set0_client_CAs(server_ctx.get(), ca_names.release()); in TEST()
3272 server_ctx.get(), SSL_VERIFY_PEER, in TEST()
3294 server_ctx.get())); in TEST()
3427 SSL_CTX *client_ctx, SSL_CTX *server_ctx, unsigned retry_count, in ConnectClientAndServerWithTicketMethod() argument
3429 bssl::UniquePtr<SSL> client(SSL_new(client_ctx)), server(SSL_new(server_ctx)); in ConnectClientAndServerWithTicketMethod()
3475 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST_P() local
3476 ASSERT_TRUE(server_ctx); in TEST_P()
3485 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST_P()
3486 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST_P()
3489 ASSERT_TRUE(SSL_CTX_set_min_proto_version(server_ctx.get(), version)); in TEST_P()
3490 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), version)); in TEST_P()
3493 SSL_CTX_set_session_cache_mode(server_ctx.get(), SSL_SESS_CACHE_BOTH); in TEST_P()
3495 SSL_CTX_set_current_time_cb(server_ctx.get(), FrozenTimeCallback); in TEST_P()
3498 SSL_CTX_set_ticket_aead_method(server_ctx.get(), &kSSLTestTicketMethod); in TEST_P()
3502 server_ctx.get(), retry_count, in TEST_P()
3522 server_ctx.get(), retry_count, in TEST_P()
3632 server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
3634 ASSERT_TRUE(server_ctx); in TEST()
3640 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3641 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3645 server_ctx.get())); in TEST()
3675 server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
3677 ASSERT_TRUE(server_ctx); in TEST()
3683 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3684 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3688 server_ctx.get())); in TEST()
3713 server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
3715 ASSERT_TRUE(server_ctx); in TEST()
3721 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3722 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3726 server_ctx.get())); in TEST()
3752 server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
3754 ASSERT_TRUE(server_ctx); in TEST()
3760 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3761 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3765 server_ctx.get())); in TEST()
3979 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
3981 ASSERT_TRUE(server_ctx); in TEST()
3987 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
3988 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
3991 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
3995 server_ctx.get(), 0x1234, XORCompressFunc, XORDecompressFunc)); in TEST()
3999 server_ctx.get())); in TEST()
4020 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4023 ASSERT_TRUE(server_ctx); in TEST()
4026 SSL_CTX_set_handoff_mode(server_ctx.get(), 1); in TEST()
4027 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_2_VERSION)); in TEST()
4040 server_ctx.get(), ClientConfig(), in TEST()
4078 bssl::UniquePtr<SSL> server2(SSL_new(server_ctx.get())); in TEST()
4097 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4099 ASSERT_TRUE(server_ctx); in TEST()
4101 SSL_CTX_set_handoff_mode(server_ctx.get(), 1); in TEST()
4102 ASSERT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_2_VERSION)); in TEST()
4108 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
4109 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
4113 server_ctx.get(), ClientConfig(), in TEST()
4282 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4283 bssl::UniquePtr<SSL> server(SSL_new(server_ctx.get())); in TEST()
4320 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4321 bssl::UniquePtr<SSL> server(SSL_new(server_ctx.get())); in TEST()
4359 bssl::UniquePtr<SSL_CTX> server_ctx(SSL_CTX_new(TLS_method())); in TEST() local
4360 EXPECT_TRUE(SSL_CTX_set_max_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
4361 EXPECT_TRUE(SSL_CTX_set_min_proto_version(server_ctx.get(), TLS1_3_VERSION)); in TEST()
4366 ASSERT_TRUE(SSL_CTX_use_certificate(server_ctx.get(), cert.get())); in TEST()
4367 ASSERT_TRUE(SSL_CTX_use_PrivateKey(server_ctx.get(), key.get())); in TEST()
4375 server_ctx.get())); in TEST()