Home
last modified time | relevance | path

Searched refs:client_conn (Results 1 – 25 of 260) sorted by relevance

1234567891011

/dports/security/s2n/s2n-tls-1.1.2/tests/unit/
H A Ds2n_early_data_io_test.c31 *client_conn = s2n_connection_new(S2N_CLIENT); in s2n_test_client_and_server_new()
32 EXPECT_NOT_NULL(*client_conn); in s2n_test_client_and_server_new()
100 EXPECT_FALSE(WITH_EARLY_DATA(client_conn)); in main()
127 EXPECT_FALSE(WITH_EARLY_DATA(client_conn)); in main()
190 EXPECT_TRUE(WITH_EARLY_DATA(client_conn)); in main()
238 EXPECT_TRUE(WITH_EARLY_DATA(client_conn)); in main()
359 EXPECT_FALSE(client_conn->closed); in main()
388 client_conn->early_data_bytes = 0; in main()
438 EXPECT_NOT_NULL(client_conn); in main()
486 EXPECT_FALSE(client_conn->closed); in main()
[all …]
H A Ds2n_self_talk_session_resumption_test.c119 RESULT_ENSURE_REF(client_conn); in s2n_test_issue_new_session_ticket()
144 RESULT_ENSURE_REF(client_conn); in s2n_test_negotiate()
241 EXPECT_NOT_NULL(client_conn); in main()
294 EXPECT_NOT_NULL(client_conn); in main()
345 EXPECT_NOT_NULL(client_conn); in main()
401 EXPECT_NOT_NULL(client_conn); in main()
451 EXPECT_NOT_NULL(client_conn); in main()
502 EXPECT_NOT_NULL(client_conn); in main()
586 EXPECT_NOT_NULL(client_conn); in main()
727 EXPECT_NOT_NULL(client_conn); in main()
[all …]
H A Ds2n_self_talk_psk_test.c68 RESULT_ENSURE_REF(client_conn); in setup_client_psks()
102 RESULT_ENSURE_REF(client_conn); in setup_psks_with_no_match()
159 struct s2n_connection *client_conn = NULL; in main() local
190 EXPECT_OK(setup_client_psks(client_conn)); in main()
205 EXPECT_SUCCESS(s2n_connection_wipe(client_conn)); in main()
215 EXPECT_OK(setup_client_psks(client_conn)); in main()
247 EXPECT_OK(setup_client_psks(client_conn)); in main()
277 EXPECT_OK(setup_client_psks(client_conn)); in main()
306 EXPECT_OK(setup_client_psks(client_conn)); in main()
341 EXPECT_OK(setup_client_psks(client_conn)); in main()
[all …]
H A Ds2n_handshake_partial_test.c27 *client_conn = s2n_connection_new(S2N_CLIENT); in s2n_get_test_client_and_server()
28 RESULT_ENSURE_REF(*client_conn); in s2n_get_test_client_and_server()
34 RESULT_GUARD_POSIX(s2n_connection_set_config(*client_conn, config)); in s2n_get_test_client_and_server()
79 struct s2n_connection *client_conn = NULL, *server_conn = NULL; in main() local
87 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
93 struct s2n_connection *client_conn = NULL, *server_conn = NULL; in main() local
101 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
140 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
158 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
183 EXPECT_TRUE(WITH_EARLY_DATA(client_conn)); in main()
[all …]
H A Ds2n_server_hello_test.c145 struct s2n_connection *client_conn; in main() local
179 struct s2n_connection *client_conn; in main() local
206 struct s2n_connection *client_conn; in main() local
225 client_conn->session_id[i] = i; in main()
235 client_conn->session_id_len = 32; in main()
243 client_conn->session_id[i] ^= 1; in main()
246 client_conn->session_id[i] ^= 1; in main()
269 struct s2n_connection *client_conn; in main() local
313 struct s2n_connection *client_conn; in main() local
356 struct s2n_connection *client_conn; in main() local
[all …]
H A Ds2n_tls13_server_finished_test.c60 struct s2n_connection *client_conn; in main() local
83 client_conn->handshake.io.blob.data[0] ^= 1; in main()
89 client_conn->handshake.server_finished[0] ^= 1; in main()
110 struct s2n_connection *client_conn; in main() local
117 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
132 struct s2n_connection *client_conn; in main() local
134 client_conn->actual_protocol_version = S2N_TLS13; in main()
141 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
156 struct s2n_connection *client_conn; in main() local
158 client_conn->actual_protocol_version = S2N_TLS13; in main()
[all …]
H A Ds2n_tls13_client_finished_test.c49 struct s2n_connection *client_conn; in main() local
52 client_conn->actual_protocol_version = S2N_TLS13; in main()
99 struct s2n_connection *client_conn; in main() local
106 client_conn->actual_protocol_version = S2N_TLS13; in main()
118 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
123 struct s2n_connection *client_conn; in main() local
126 client_conn->actual_protocol_version = S2N_TLS13; in main()
142 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
147 struct s2n_connection *client_conn; in main() local
150 client_conn->actual_protocol_version = S2N_TLS13; in main()
[all …]
H A Ds2n_server_early_data_indication_test.c26 RESULT_GUARD_POSIX(s2n_client_hello_send(client_conn)); in s2n_exchange_hellos()
34 RESULT_GUARD_POSIX(s2n_server_hello_recv(client_conn)); in s2n_exchange_hellos()
145 EXPECT_NOT_NULL(client_conn); in main()
167 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
185 EXPECT_NOT_NULL(client_conn); in main()
207 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
221 EXPECT_NOT_NULL(client_conn); in main()
243 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
260 EXPECT_NOT_NULL(client_conn); in main()
282 client_conn->handshake.message_number = 2; in main()
[all …]
H A Ds2n_tls13_compute_shared_secret_test.c46 struct s2n_connection *client_conn; in main() local
54 client_conn->actual_protocol_version = S2N_TLS13; in main()
70 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
79 client_conn->actual_protocol_version = S2N_TLS13; in main()
96 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
109 client_conn->actual_protocol_version = S2N_TLS13; in main()
123 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
128 client_conn = s2n_connection_new(S2N_CLIENT); in main()
129 EXPECT_NOT_NULL(client_conn); in main()
136 EXPECT_SUCCESS(s2n_client_hello_send(client_conn)); in main()
[all …]
H A Ds2n_client_auth_handshake_test.c45 struct s2n_connection *client_conn; in s2n_test_client_auth_negotiation() local
51 client_conn->x509_validator.skip_cert_validation = 1; in s2n_test_client_auth_negotiation()
52 client_conn->server_protocol_version = S2N_TLS13; in s2n_test_client_auth_negotiation()
53 client_conn->client_protocol_version = S2N_TLS13; in s2n_test_client_auth_negotiation()
54 client_conn->actual_protocol_version = S2N_TLS13; in s2n_test_client_auth_negotiation()
87 EXPECT_TRUE(IS_CLIENT_AUTH_HANDSHAKE(client_conn)); in s2n_test_client_auth_negotiation()
97 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in s2n_test_client_auth_negotiation()
109 struct s2n_connection *client_conn; in s2n_test_client_auth_message_by_message() local
209 EXPECT_SUCCESS(s2n_handshake_read_io(client_conn)); in s2n_test_client_auth_message_by_message()
214 EXPECT_SUCCESS(s2n_handshake_read_io(client_conn)); in s2n_test_client_auth_message_by_message()
[all …]
H A Ds2n_self_talk_io_mem_test.c52 EXPECT_NOT_NULL(client_conn); in main()
80 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
87 EXPECT_NOT_NULL(client_conn); in main()
123 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
141 EXPECT_NOT_NULL(client_conn); in main()
182 EXPECT_NOT_NULL(client_conn); in main()
190 EXPECT_EQUAL(client_conn->in.blob.size, 0); in main()
192 EXPECT_EQUAL(client_conn->out.blob.size, 0); in main()
205 EXPECT_NOT_EQUAL(client_conn->in.blob.size, 0); in main()
213 EXPECT_EQUAL(client_conn->in.blob.size, 0); in main()
[all …]
H A Ds2n_client_early_data_indication_test.c288 EXPECT_NOT_NULL(client_conn); in main()
308 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
315 EXPECT_NOT_NULL(client_conn); in main()
335 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
342 EXPECT_NOT_NULL(client_conn); in main()
363 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
370 EXPECT_NOT_NULL(client_conn); in main()
416 EXPECT_NOT_NULL(client_conn); in main()
440 client_conn->handshake.message_number = 2; in main()
458 EXPECT_NOT_NULL(client_conn); in main()
[all …]
H A Ds2n_client_hello_recv_test.c41 struct s2n_connection *client_conn; in main() local
140 s2n_connection_free(client_conn); in main()
166 s2n_connection_free(client_conn); in main()
195 s2n_connection_free(client_conn); in main()
223 s2n_connection_free(client_conn); in main()
262 s2n_connection_free(client_conn); in main()
289 s2n_connection_free(client_conn); in main()
323 s2n_connection_free(client_conn); in main()
350 s2n_connection_free(client_conn); in main()
408 s2n_connection_free(client_conn); in main()
[all …]
H A Ds2n_session_ticket_test.c74 struct s2n_connection *client_conn; in main() local
195 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
232 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
285 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
350 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
407 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
460 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
527 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
589 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
636 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
[all …]
H A Ds2n_server_supported_versions_extension_test.c67 struct s2n_connection *client_conn; in main() local
68 EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT)); in main()
77 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
84 struct s2n_connection *client_conn; in main() local
98 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
104 struct s2n_connection *client_conn; in main() local
118 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
124 struct s2n_connection *client_conn; in main() local
134 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
140 struct s2n_connection *client_conn; in main() local
[all …]
H A Ds2n_client_empty_cert_test.c50 struct s2n_connection *client_conn; in main() local
51 EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT)); in main()
56 EXPECT_SUCCESS(s2n_client_cert_send(client_conn)); in main()
67 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
76 struct s2n_connection *client_conn; in main() local
82 EXPECT_FAILURE(s2n_client_cert_send(client_conn)); in main()
84 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
93 struct s2n_connection *client_conn; in main() local
104 EXPECT_SUCCESS(s2n_client_cert_send(client_conn)); in main()
110 …CT_SUCCESS(s2n_stuffer_copy(&client_conn->handshake.io, &server_conn->handshake.io, s2n_stuffer_da… in main()
[all …]
H A Ds2n_client_extensions_test.c170 struct s2n_connection *client_conn; in main() local
217 struct s2n_connection *client_conn; in main() local
675 struct s2n_connection *client_conn; in main() local
734 struct s2n_connection *client_conn; in main() local
791 struct s2n_connection *client_conn; in main() local
842 struct s2n_connection *client_conn; in main() local
901 struct s2n_connection *client_conn; in main() local
965 struct s2n_connection *client_conn; in main() local
1013 struct s2n_connection *client_conn; in main() local
1065 struct s2n_connection *client_conn; in main() local
[all …]
H A Ds2n_client_cert_request_context_test.c39 struct s2n_connection *client_conn; in main() local
45 EXPECT_SUCCESS(s2n_client_cert_send(client_conn)); in main()
47 EXPECT_SUCCESS(s2n_client_cert_recv(client_conn)); in main()
54 client_conn->actual_protocol_version = S2N_TLS13; in main()
55 EXPECT_SUCCESS(s2n_client_cert_send(client_conn)); in main()
57 EXPECT_SUCCESS(s2n_client_cert_recv(client_conn)); in main()
60 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
72 struct s2n_connection *client_conn; in main() local
76 client_conn->actual_protocol_version = S2N_TLS13; in main()
78 EXPECT_SUCCESS(s2n_client_cert_send(client_conn)); in main()
[all …]
H A Ds2n_server_key_share_extension_test.c251 struct s2n_connection *client_conn; in main() local
279 struct s2n_connection *client_conn; in main() local
313 struct s2n_connection *client_conn; in main() local
330 struct s2n_connection *client_conn; in main() local
357 struct s2n_connection *client_conn, *server_conn; in main() local
399 &client_conn->kex_params.client_ecc_evp_params, in main()
400 &client_conn->kex_params.server_ecc_evp_params, in main()
419 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
465 struct s2n_connection *client_conn; in main() local
580 struct s2n_connection *client_conn = NULL; in main() local
[all …]
H A Ds2n_client_hello_retry_test.c100 struct s2n_connection *client_conn; in main() local
310 struct s2n_connection *client_conn; in main() local
397 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
409 struct s2n_connection *client_conn; in main() local
452 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
466 struct s2n_connection *client_conn; in main() local
512 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
525 struct s2n_connection *client_conn; in main() local
586 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
610 struct s2n_connection *client_conn; in main() local
[all …]
H A Ds2n_tls13_handshake_test.c155 struct s2n_connection *client_conn; in main() local
203 …EXPECT_SUCCESS(s2n_tls13_conn_copy_hash(client_conn, &client_conn->handshake.hashes->server_hello_… in main()
215 EXPECT_EQUAL(client_conn->server, &client_conn->secure); in main()
217 EXPECT_EQUAL(client_conn->client, &client_conn->secure); in main()
247 client_conn->server = &client_conn->secure; in main()
254 client_conn->client = &client_conn->initial; in main()
263 client_conn->client = &client_conn->secure; in main()
267 …EXPECT_SUCCESS(s2n_stuffer_copy(&client_conn->out, &server_conn->in, s2n_stuffer_data_available(&c… in main()
278 …EXPECT_SUCCESS(s2n_tls13_conn_copy_hash(client_conn, &client_conn->handshake.hashes->server_finish… in main()
314 …EXPECT_SUCCESS(s2n_stuffer_copy(&client_conn->out, &server_conn->in, s2n_stuffer_data_available(&c… in main()
[all …]
H A Ds2n_key_update_test.c161 struct s2n_connection *client_conn; in main() local
163 client_conn->actual_protocol_version = S2N_TLS13; in main()
175 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
183 struct s2n_connection *client_conn; in main() local
185 client_conn->actual_protocol_version = S2N_TLS13; in main()
195 client_conn->key_update_pending = true; in main()
205 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
210 struct s2n_connection *client_conn; in main() local
222 client_conn->key_update_pending = false; in main()
240 struct s2n_connection *client_conn; in main() local
[all …]
H A Ds2n_early_data_io_api_test.c34 *client_conn = s2n_connection_new(S2N_CLIENT); in s2n_test_client_and_server_new()
35 EXPECT_NOT_NULL(*client_conn); in s2n_test_client_and_server_new()
131 EXPECT_NOT_NULL(client_conn); in main()
153 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
159 EXPECT_NOT_NULL(client_conn); in main()
169 client_conn->send_in_use = true; in main()
180 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
250 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
358 client_conn->closed = false; in main()
544 EXPECT_NOT_NULL(client_conn); in main()
[all …]
H A Ds2n_optional_client_auth_test.c76 struct s2n_connection *client_conn; in main() local
116 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
140 struct s2n_connection *client_conn; in main() local
180 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
204 struct s2n_connection *client_conn; in main() local
244 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
269 struct s2n_connection *client_conn; in main() local
315 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
339 struct s2n_connection *client_conn; in main() local
385 EXPECT_SUCCESS(s2n_connection_free(client_conn)); in main()
[all …]
/dports/www/civetweb/civetweb-1.15/unittest/
H A Dpublic_server.c700 client_conn = in START_TEST()
815 client_conn = in START_TEST()
1480 client_conn = in START_TEST()
1533 client_conn = in START_TEST()
1547 client_conn = in START_TEST()
1855 client_conn = in START_TEST()
1879 client_conn = in START_TEST()
1906 client_conn = in START_TEST()
1931 client_conn = in START_TEST()
1958 client_conn = in START_TEST()
[all …]

1234567891011