Home
last modified time | relevance | path

Searched refs:serverssl (Results 1 – 12 of 12) sorted by relevance

/openssl/test/
H A Dsslbuffertest.c81 SSL *serverssl = NULL, *clientssl = NULL; in test_func() local
164 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_func()
168 int ssl_error = SSL_get_error(serverssl, ret); in test_func()
187 SSL_free(serverssl); in test_func()
208 SSL *serverssl = NULL, *clientssl = NULL; in test_free_buffers() local
228 || !TEST_true(SSL_set_max_proto_version(serverssl, in test_free_buffers()
230 || !TEST_true(SSL_set_max_pipelines(serverssl, 2))) in test_free_buffers()
234 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_free_buffers()
267 tmp = SSL_get_rbio(serverssl); in test_free_buffers()
335 if (!TEST_false(SSL_free_buffers(serverssl))) in test_free_buffers()
[all …]
H A Dsslapitest.c421 SSL_free(serverssl); in test_keylog()
499 SSL_free(serverssl); in test_keylog_no_master_key()
538 SSL_free(serverssl); in test_keylog_no_master_key()
789 SSL_free(serverssl); in test_client_hello_cb()
840 SSL_free(serverssl); in test_no_ems()
950 SSL_free(serverssl); in test_ccs_change_cipher()
1013 SSL_free(serverssl); in execute_test_large_message()
1288 if (serverssl) { in execute_test_ktls()
1430 if (serverssl) { in execute_test_ktls_sendfile()
1960 serverssl = NULL; in test_tlsext_status_type()
[all …]
H A Drpktest.c102 SSL *clientssl = NULL, *serverssl = NULL; in test_rpk() local
262 if (!TEST_int_gt(SSL_dane_enable(serverssl, NULL), 0)) in test_rpk()
405 SSL_set_options(serverssl, SSL_OP_NO_TICKET); in test_rpk()
454 SSL_set_options(serverssl, SSL_OP_NO_TICKET); in test_rpk()
515 if (!TEST_true(SSL_do_handshake(serverssl))) in test_rpk()
528 if (!TEST_ptr(SSL_get0_peer_rpk(serverssl))) in test_rpk()
557 SSL_shutdown(serverssl); in test_rpk()
559 SSL_free(serverssl); in test_rpk()
560 serverssl = clientssl = NULL; in test_rpk()
641 if (!TEST_ptr(SSL_get0_peer_rpk(serverssl))) in test_rpk()
[all …]
H A Ddtlstest.c233 SSL_shutdown(serverssl); in test_dtls_drop_records()
234 SSL_free(serverssl); in test_dtls_drop_records()
300 SSL_free(serverssl); in test_dtls_drop_records()
341 SSL_free(serverssl); in test_cookie()
384 SSL_free(serverssl); in test_dtls_duplicate_records()
400 SSL *serverssl = NULL; in test_just_finished() local
434 serverssl = SSL_new(sctx); in test_just_finished()
442 SSL_set0_rbio(serverssl, rbio); in test_just_finished()
443 SSL_set0_wbio(serverssl, wbio); in test_just_finished()
465 SSL_free(serverssl); in test_just_finished()
[all …]
H A Dtls13groupselection_test.c376 SSL *clientssl = NULL, *serverssl = NULL; in test_invalidsyntax() local
395 &serverssl, &clientssl, in test_invalidsyntax()
405 SSL_free(serverssl); in test_invalidsyntax()
421 SSL *clientssl = NULL, *serverssl = NULL; in test_groupnegotiation() local
448 &serverssl, &clientssl, in test_groupnegotiation()
461 TEST_true_or_end(SSL_set_min_proto_version(serverssl, TLS1_3_VERSION)); in test_groupnegotiation()
464 SSL_set_options(serverssl, SSL_OP_CIPHER_SERVER_PREFERENCE); in test_groupnegotiation()
474 TEST_true_or_end(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)); in test_groupnegotiation()
482 negotiated_group_server = SSL_get_negotiated_group(serverssl); in test_groupnegotiation()
491 TEST_false_or_end(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)); in test_groupnegotiation()
[all …]
H A Dcert_comp_test.c126 SSL *clientssl = NULL, *serverssl = NULL; in test_ssl_cert_comp() local
193 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_cert_comp()
199 if (!TEST_true(SSL_set_app_data(serverssl, &server_seen))) in test_ssl_cert_comp()
202 SSL_set_info_callback(serverssl, cert_comp_info_cb); in test_ssl_cert_comp()
205 if (!TEST_int_eq(ssl_comp_cert(serverssl, expected_server), expected_server)) in test_ssl_cert_comp()
209 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_ssl_cert_comp()
213 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(serverssl); in test_ssl_cert_comp()
222 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(serverssl); in test_ssl_cert_comp()
233 if (!TEST_true(*(int*)SSL_get_app_data(serverssl))) in test_ssl_cert_comp()
240 SSL_free(serverssl); in test_ssl_cert_comp()
H A Drecordlentest.c83 SSL *clientssl = NULL, *serverssl = NULL; in test_record_overflow() local
122 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_record_overflow()
126 serverbio = SSL_get_rbio(serverssl); in test_record_overflow()
139 if (!TEST_int_le(SSL_accept(serverssl), 0)) in test_record_overflow()
149 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_record_overflow()
167 if (!TEST_false(SSL_read_ex(serverssl, &buf, sizeof(buf), &written))) in test_record_overflow()
177 SSL_free(serverssl); in test_record_overflow()
H A Dssl_handshake_rtt_test.c49 SSL *clientssl = NULL, *serverssl = NULL; in test_handshake_rtt() local
70 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_handshake_rtt()
74 s = SSL_CONNECTION_FROM_SSL(tst % 2 == 0 ? clientssl : serverssl); in test_handshake_rtt()
126 SSL_free(serverssl); in test_handshake_rtt()
H A Dasynciotest.c292 SSL *serverssl = NULL, *clientssl = NULL; in test_asyncio() local
325 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, in test_asyncio()
327 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_asyncio()
366 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_asyncio()
370 int ssl_error = SSL_get_error(serverssl, ret); in test_asyncio()
383 SSL_free(serverssl); in test_asyncio()
384 clientssl = serverssl = NULL; in test_asyncio()
390 SSL_free(serverssl); in test_asyncio()
H A Dservername_test.c205 SSL *clientssl = NULL, *serverssl = NULL; in server_setup_sni() local
212 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in server_setup_sni()
217 SSL_set_tlsext_host_name(serverssl, host); in server_setup_sni()
219 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in server_setup_sni()
222 if (!TEST_ptr_null(SSL_get_servername(serverssl, in server_setup_sni()
230 SSL_free(serverssl); in server_setup_sni()
/openssl/test/helpers/
H A Dssltestlib.c1092 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects2() local
1097 serverssl = *sssl; in create_ssl_objects2()
1132 *sssl = serverssl; in create_ssl_objects2()
1137 SSL_free(serverssl); in create_ssl_objects2()
1159 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects() local
1163 serverssl = *sssl; in create_ssl_objects()
1202 *sssl = serverssl; in create_ssl_objects()
1207 SSL_free(serverssl); in create_ssl_objects()
1232 int isdtls = SSL_is_dtls(serverssl); in create_bare_ssl_connection()
1379 SSL_shutdown(serverssl); in shutdown_ssl_connection()
[all …]
H A Dssltestlib.h29 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want,
35 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want);
36 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl);

Completed in 70 milliseconds