/openssl/test/ |
H A D | rpktest.c | 100 SSL *clientssl = NULL, *serverssl = NULL; in test_rpk() local 361 SSL_set_post_handshake_auth(clientssl, 1); in test_rpk() 395 SSL_set_options(clientssl, SSL_OP_NO_TICKET); in test_rpk() 444 SSL_set_options(clientssl, SSL_OP_NO_TICKET); in test_rpk() 525 SSL_shutdown(clientssl); in test_rpk() 527 SSL_free(clientssl); in test_rpk() 529 serverssl = clientssl = NULL; in test_rpk() 596 verify = SSL_get_verify_result(clientssl); in test_rpk() 599 if (!TEST_true(SSL_session_reused(clientssl))) in test_rpk() 602 if (!TEST_ptr(SSL_get0_peer_rpk(clientssl))) in test_rpk() [all …]
|
H A D | sslapitest.c | 420 SSL_free(clientssl); in test_keylog() 498 SSL_free(clientssl); in test_keylog_no_master_key() 537 SSL_free(clientssl); in test_keylog_no_master_key() 1281 if (clientssl) { in execute_test_ktls() 1423 if (clientssl) { in execute_test_ktls_sendfile() 1926 clientssl = NULL; in test_tlsext_status_type() 1938 clientssl = NULL; in test_tlsext_status_type() 1958 clientssl = NULL; in test_tlsext_status_type() 1975 clientssl = NULL; in test_tlsext_status_type() 5912 clientssl = NULL; in test_stateless() [all …]
|
H A D | sslbuffertest.c | 75 SSL *serverssl = NULL, *clientssl = NULL; in test_func() local 107 if (test >= 1 && (!TEST_true(SSL_free_buffers(clientssl)) in test_func() 110 if (test >= 2 && (!TEST_true(SSL_alloc_buffers(clientssl)) in test_func() 117 if (test >= 4 && (!TEST_true(SSL_free_buffers(clientssl)) in test_func() 121 ret = SSL_write(clientssl, testdata + len, in test_func() 126 int ssl_error = SSL_get_error(clientssl, ret); in test_func() 180 SSL_free(clientssl); in test_func() 202 SSL *serverssl = NULL, *clientssl = NULL; in test_free_buffers() local 217 &clientssl, NULL, NULL))) in test_free_buffers() 228 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_free_buffers() [all …]
|
H A D | dtlstest.c | 194 SSL *serverssl = NULL, *clientssl = NULL; in test_dtls_drop_records() local 232 SSL_shutdown(clientssl); in test_dtls_drop_records() 235 SSL_free(clientssl); in test_dtls_drop_records() 236 serverssl = clientssl = NULL; in test_dtls_drop_records() 264 DTLS_set_timer_cb(clientssl, timer_cb); in test_dtls_drop_records() 301 SSL_free(clientssl); in test_dtls_drop_records() 342 SSL_free(clientssl); in test_cookie() 373 DTLS_set_timer_cb(clientssl, timer_cb); in test_dtls_duplicate_records() 385 SSL_free(clientssl); in test_dtls_duplicate_records() 618 DTLS_set_timer_cb(clientssl, timer_cb); in test_listen() [all …]
|
H A D | cert_comp_test.c | 125 SSL *clientssl = NULL, *serverssl = NULL; in test_ssl_cert_comp() local 192 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_cert_comp() 196 if (!TEST_true(SSL_set_app_data(clientssl, &client_seen))) in test_ssl_cert_comp() 200 SSL_set_info_callback(clientssl, cert_comp_info_cb); in test_ssl_cert_comp() 208 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_ssl_cert_comp() 218 if (!TEST_false(*(int*)SSL_get_app_data(clientssl))) in test_ssl_cert_comp() 226 if (!TEST_true(*(int*)SSL_get_app_data(clientssl))) in test_ssl_cert_comp() 240 SSL_free(clientssl); in test_ssl_cert_comp()
|
H A D | ssl_handshake_rtt_test.c | 48 SSL *clientssl = NULL, *serverssl = NULL; in test_handshake_rtt() local 69 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_handshake_rtt() 73 s = SSL_CONNECTION_FROM_SSL(tst % 2 == 0 ? clientssl : serverssl); in test_handshake_rtt() 126 SSL_free(clientssl); in test_handshake_rtt()
|
H A D | asynciotest.c | 292 SSL *serverssl = NULL, *clientssl = NULL; in test_asyncio() local 326 &clientssl, s_to_c_fbio, c_to_s_fbio)) in test_asyncio() 327 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_asyncio() 344 ret = SSL_write(clientssl, testdata + len, in test_asyncio() 349 int ssl_error = SSL_get_error(clientssl, ret); in test_asyncio() 382 SSL_free(clientssl); in test_asyncio() 384 clientssl = serverssl = NULL; in test_asyncio() 389 SSL_free(clientssl); in test_asyncio()
|
H A D | recordlentest.c | 83 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() 149 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_record_overflow() 178 SSL_free(clientssl); in test_record_overflow()
|
H A D | servername_test.c | 205 SSL *clientssl = NULL, *serverssl = NULL; in server_setup_sni() local 212 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in server_setup_sni() 219 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in server_setup_sni() 231 SSL_free(clientssl); in server_setup_sni()
|
/openssl/test/helpers/ |
H A D | ssltestlib.c | 1092 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects2() local 1101 clientssl = *cssl; in create_ssl_objects2() 1133 *cssl = clientssl; in create_ssl_objects2() 1138 SSL_free(clientssl); in create_ssl_objects2() 1167 clientssl = *cssl; in create_ssl_objects() 1171 if (SSL_is_dtls(clientssl)) { in create_ssl_objects() 1198 *cssl = clientssl; in create_ssl_objects() 1203 SSL_free(clientssl); in create_ssl_objects() 1250 retc = SSL_connect(clientssl); in create_bare_ssl_connection() 1373 SSL_shutdown(clientssl); in shutdown_ssl_connection() [all …]
|
H A D | ssltestlib.h | 29 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);
|
H A D | quictestlib.c | 486 if (clientssl != NULL) in qtest_create_quic_connection_ex() 492 } else if (clientssl == NULL) { in qtest_create_quic_connection_ex() 494 } else if (SSL_get_blocking_mode(clientssl) > 0) { in qtest_create_quic_connection_ex() 516 retc = SSL_connect(clientssl); in qtest_create_quic_connection_ex() 518 err = SSL_get_error(clientssl, retc); in qtest_create_quic_connection_ex() 540 if (clientssl != NULL) in qtest_create_quic_connection_ex() 541 SSL_handle_events(clientssl); in qtest_create_quic_connection_ex() 554 if (clientssl != NULL && ++abortctr == MAXLOOPS) { in qtest_create_quic_connection_ex() 607 int qtest_shutdown(QUIC_TSERVER *qtserv, SSL *clientssl) in qtest_shutdown() argument 619 if (SSL_get_blocking_mode(clientssl) > 0) { in qtest_shutdown() [all …]
|
H A D | quictestlib.h | 73 int qtest_create_quic_connection(QUIC_TSERVER *qtserv, SSL *clientssl); 85 int qtest_create_quic_connection_ex(QUIC_TSERVER *qtserv, SSL *clientssl, 91 int qtest_shutdown(QUIC_TSERVER *qtserv, SSL *clientssl);
|
/openssl/doc/designs/quic-design/ |
H A D | quic-fault-injector.md | 229 int qtest_create_quic_connection(QUIC_TSERVER *qtserv, SSL *clientssl); 233 * clientssl indicates SSL_ERROR_WANT_XXX as specified by |wanterr| 235 int qtest_create_quic_connection_ex(QUIC_TSERVER *qtserv, SSL *clientssl,
|