/openssl/test/ |
H A D | quicfaultstest.c | 28 SSL *cssl = NULL; in test_basic() local 61 SSL_free(cssl); in test_basic() 96 SSL *cssl = NULL; in test_unknown_frame() local 135 if (!TEST_true(SSL_handle_events(cssl))) in test_unknown_frame() 154 SSL_free(cssl); in test_unknown_frame() 182 SSL *cssl = NULL; in test_drop_extensions() local 219 SSL_free(cssl); in test_drop_extensions() 266 SSL *cssl = NULL; in test_corrupted_data() local 336 if (!TEST_true(SSL_handle_events(cssl))) in test_corrupted_data() 346 if (!TEST_true(SSL_handle_events(cssl))) in test_corrupted_data() [all …]
|
H A D | quic_newcid_test.c | 54 SSL *cssl = NULL; in test_ncid_frame() local 71 &qtserv, &cssl, &fault, NULL))) in test_ncid_frame() 74 if (!TEST_true(qtest_create_quic_connection(qtserv, cssl))) in test_ncid_frame() 77 if (!TEST_int_eq(SSL_write(cssl, msg, msglen), msglen)) in test_ncid_frame() 115 if (!TEST_true(SSL_handle_events(cssl))) in test_ncid_frame() 118 if (!TEST_int_eq(SSL_read(cssl, buf, sizeof(buf)), msglen)) in test_ncid_frame() 124 if (!TEST_int_eq(SSL_write(cssl, msg, msglen), msglen)) in test_ncid_frame() 143 SSL_free(cssl); in test_ncid_frame()
|
H A D | tls13ccstest.c | 246 SSL *sssl = NULL, *cssl = NULL; in test_tls13ccs() local 306 sess = SSL_get1_session(cssl); in test_tls13ccs() 309 SSL_shutdown(cssl); in test_tls13ccs() 312 SSL_free(cssl); in test_tls13ccs() 313 sssl = cssl = NULL; in test_tls13ccs() 345 if (!TEST_true(SSL_set_session(cssl, sess)) in test_tls13ccs() 346 || !TEST_true(SSL_write_early_data(cssl, msg, strlen(msg), in test_tls13ccs() 354 if (!TEST_int_gt(SSL_connect(cssl), 0)) in test_tls13ccs() 357 if (!TEST_int_le(SSL_connect(cssl), 0)) in test_tls13ccs() 367 if (!TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs() [all …]
|
H A D | fatalerrtest.c | 22 SSL *sssl = NULL, *cssl = NULL; in test_fatalerr() local 46 || !TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, in test_fatalerr() 50 wbio = SSL_get_wbio(cssl); in test_fatalerr() 57 if (!TEST_false(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_fatalerr() 78 SSL_free(cssl); in test_fatalerr()
|
H A D | dtlstest.c | 481 SSL *sssl = NULL, *cssl = NULL; in test_swap_records() local 504 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, in test_swap_records() 509 if (!TEST_int_le(SSL_connect(cssl), 0)) in test_swap_records() 517 if (!TEST_int_le(SSL_connect(cssl), 0)) in test_swap_records() 522 bio = SSL_get_wbio(cssl); in test_swap_records() 558 if (!TEST_int_gt(SSL_connect(cssl), 0)) in test_swap_records() 563 if (!TEST_int_eq(SSL_pending(cssl), 0) in test_swap_records() 564 || !TEST_false(SSL_has_pending(cssl))) in test_swap_records() 569 if (!TEST_int_eq(SSL_pending(cssl), (int)sizeof(msg)) in test_swap_records() 570 || !TEST_true(SSL_has_pending(cssl))) in test_swap_records() [all …]
|
H A D | sslapitest.c | 2450 static int post_handshake_verify(SSL *sssl, SSL *cssl) in post_handshake_verify() argument 2458 || !TEST_int_le(SSL_read(cssl, NULL, 0), 0) in post_handshake_verify() 2460 || !TEST_true(create_ssl_connection(sssl, cssl, in post_handshake_verify()
|
/openssl/test/helpers/ |
H A D | quictestlib.c | 139 if (*cssl == NULL) { in qtest_create_quic_objects() 140 *cssl = SSL_new(clientctx); in qtest_create_quic_objects() 141 if (!TEST_ptr(*cssl)) in qtest_create_quic_objects() 157 SSL_set_msg_callback(*cssl, SSL_trace); in qtest_create_quic_objects() 158 SSL_set_msg_callback_arg(*cssl, tmpbio); in qtest_create_quic_objects() 267 SSL_set_msg_callback(*cssl, noise_msg_callback); in qtest_create_quic_objects() 268 SSL_set_msg_callback_arg(*cssl, &(*fault)->noiseargs); in qtest_create_quic_objects() 271 SSL_set_bio(*cssl, cbio, cbio); in qtest_create_quic_objects() 273 if (!TEST_true(SSL_set_blocking_mode(*cssl, in qtest_create_quic_objects() 338 SSL_free(*cssl); in qtest_create_quic_objects() [all …]
|
H A D | ssltestlib.h | 28 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); 32 SSL **cssl, int sfd, int cfd);
|
H A D | ssltestlib.c | 1090 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument 1100 if (*cssl != NULL) in create_ssl_objects2() 1101 clientssl = *cssl; in create_ssl_objects2() 1133 *cssl = clientssl; in create_ssl_objects2() 1157 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio) in create_ssl_objects() argument 1166 if (*cssl != NULL) in create_ssl_objects() 1167 clientssl = *cssl; in create_ssl_objects() 1198 *cssl = clientssl; in create_ssl_objects()
|
H A D | quictestlib.h | 46 int flags, QUIC_TSERVER **qtserv, SSL **cssl,
|
/openssl/doc/designs/quic-design/ |
H A D | quic-fault-injector.md | 217 int block, QUIC_TSERVER **qtserv, SSL **cssl, 432 SSL *cssl = NULL; 443 &qtserv, &cssl, &fault, NULL))) 446 if (!TEST_true(qtest_create_quic_connection(qtserv, cssl))) 466 if (!TEST_true(SSL_tick(cssl))) 469 if (!TEST_int_le(ret = SSL_read(cssl, buf, sizeof(buf)), 0)) 472 if (!TEST_int_eq(SSL_get_error(cssl, ret), SSL_ERROR_SSL)) 485 SSL_free(cssl); 519 SSL *cssl = NULL; 538 if (!TEST_false(qtest_create_quic_connection(qtserv, cssl))) [all …]
|