Lines Matching refs:tst

1501     int tst = test >> 1;  in test_ktls_sendfile()  local
1503 OPENSSL_assert(tst < (int)NUM_KTLS_TEST_CIPHERS); in test_ktls_sendfile()
1504 cipher = &ktls_test_ciphers[tst]; in test_ktls_sendfile()
1549 static int test_large_app_data(int tst) in test_large_app_data() argument
1559 switch (tst >> 2) { in test_large_app_data()
1657 if ((tst & 1) != 0) { in test_large_app_data()
1666 if ((tst & 2) != 0) { in test_large_app_data()
6099 static int test_custom_exts(int tst) in test_custom_exts() argument
6111 if (tst < 3) in test_custom_exts()
6125 if (tst == 2 in test_custom_exts()
6132 if (tst < 3) { in test_custom_exts()
6139 if (tst == 5) { in test_custom_exts()
6151 } else if (tst == 4) { in test_custom_exts()
6165 if (tst == 0) { in test_custom_exts()
6190 if (tst == 0) { in test_custom_exts()
6220 if (tst == 2) { in test_custom_exts()
6233 if (tst == 0) { in test_custom_exts()
6239 } else if (tst == 1 || tst == 2 || tst == 3) { in test_custom_exts()
6244 || (tst != 2 && snicb != 0) in test_custom_exts()
6245 || (tst == 2 && snicb != 1)) in test_custom_exts()
6247 } else if (tst == 5) { in test_custom_exts()
6269 if (tst == 3 || tst == 5) { in test_custom_exts()
6288 if (tst == 0) { in test_custom_exts()
6294 } else if (tst == 1 || tst == 2 || tst == 3) { in test_custom_exts()
6464 static int test_export_key_mat(int tst) in test_export_key_mat() argument
6487 if (tst == 0) in test_export_key_mat()
6491 if (tst == 1) in test_export_key_mat()
6494 if (is_fips && (tst == 0 || tst == 1)) in test_export_key_mat()
6497 if (tst == 2) in test_export_key_mat()
6501 if (tst >= 3) in test_export_key_mat()
6509 OPENSSL_assert(tst >= 0 && (size_t)tst < OSSL_NELEM(protocols)); in test_export_key_mat()
6510 SSL_CTX_set_max_proto_version(cctx, protocols[tst]); in test_export_key_mat()
6511 SSL_CTX_set_min_proto_version(cctx, protocols[tst]); in test_export_key_mat()
6512 if ((protocols[tst] < TLS1_2_VERSION) && in test_export_key_mat()
6534 if (tst == 5) { in test_export_key_mat()
6547 } else if (tst == 4) { in test_export_key_mat()
6632 if ((tst < 3 && !TEST_mem_ne(ckeymat2, sizeof(ckeymat2), ckeymat3, in test_export_key_mat()
6634 || (tst >= 3 && !TEST_mem_eq(ckeymat2, sizeof(ckeymat2), ckeymat3, in test_export_key_mat()
6791 static int test_key_update_peer_in_write(int tst) in test_key_update_peer_in_write() argument
6814 peerupdate = tst == 0 ? clientssl : serverssl; in test_key_update_peer_in_write()
6815 peerwrite = tst == 0 ? serverssl : clientssl; in test_key_update_peer_in_write()
6886 static int test_key_update_peer_in_read(int tst) in test_key_update_peer_in_read() argument
6907 local = tst == 0 ? clientssl : serverssl; in test_key_update_peer_in_read()
6908 peer = tst == 0 ? serverssl : clientssl; in test_key_update_peer_in_read()
6969 static int test_key_update_local_in_write(int tst) in test_key_update_local_in_write() argument
6992 local = tst == 0 ? clientssl : serverssl; in test_key_update_local_in_write()
6993 peer = tst == 0 ? serverssl : clientssl; in test_key_update_local_in_write()
7060 static int test_key_update_local_in_read(int tst) in test_key_update_local_in_read() argument
7081 local = tst == 0 ? clientssl : serverssl; in test_key_update_local_in_read()
7082 peer = tst == 0 ? serverssl : clientssl; in test_key_update_local_in_read()
7579 static int test_srp(int tst) in test_srp() argument
7590 if (tst == 0 || tst == 1) { in test_srp()
7594 if (tst == 4 || tst == 5) { in test_srp()
7617 if (tst % 2 == 1) { in test_srp()
7631 if (!TEST_true(tst % 2 == 0)) in test_srp()
7634 if (!TEST_true(tst % 2 == 1)) in test_srp()
7834 static int test_info_callback(int tst) in test_info_callback() argument
7842 if (tst < 2) { in test_info_callback()
7861 info_cb_offset = tst; in test_info_callback()
7864 if (tst >= 4 && tst < 6) { in test_info_callback()
7879 SSL_set_info_callback((tst % 2) == 0 ? serverssl : clientssl, in test_info_callback()
7922 SSL_CTX_set_info_callback((tst % 2) == 0 ? sctx : cctx, in test_info_callback()
7924 if (tst >= 6) { in test_info_callback()
7966 static int test_ssl_pending(int tst) in test_ssl_pending() argument
7975 if (tst == 0) { in test_ssl_pending()
8123 static int int_test_ssl_get_shared_ciphers(int tst, int clnt) in int_test_ssl_get_shared_ciphers() argument
8154 shared_ciphers_data[tst].maxprot, in int_test_ssl_get_shared_ciphers()
8159 shared_ciphers_data[tst].clntciphers)) in int_test_ssl_get_shared_ciphers()
8160 || (shared_ciphers_data[tst].clnttls13ciphers != NULL in int_test_ssl_get_shared_ciphers()
8162 shared_ciphers_data[tst].clnttls13ciphers))) in int_test_ssl_get_shared_ciphers()
8164 shared_ciphers_data[tst].srvrciphers)) in int_test_ssl_get_shared_ciphers()
8165 || (shared_ciphers_data[tst].srvrtls13ciphers != NULL in int_test_ssl_get_shared_ciphers()
8167 shared_ciphers_data[tst].srvrtls13ciphers)))) in int_test_ssl_get_shared_ciphers()
8180 ? shared_ciphers_data[tst].fipsshared in int_test_ssl_get_shared_ciphers()
8181 : shared_ciphers_data[tst].shared), in int_test_ssl_get_shared_ciphers()
8199 static int test_ssl_get_shared_ciphers(int tst) in test_ssl_get_shared_ciphers() argument
8201 return int_test_ssl_get_shared_ciphers(tst, 0) in test_ssl_get_shared_ciphers()
8202 && int_test_ssl_get_shared_ciphers(tst, 1); in test_ssl_get_shared_ciphers()
8366 static int test_ticket_callbacks(int tst) in test_ticket_callbacks() argument
8374 if (tst % 2 == 0) in test_ticket_callbacks()
8378 if (tst % 2 == 1) in test_ticket_callbacks()
8382 if (tst >= 8 && tst <= 13) in test_ticket_callbacks()
8390 if (tst == 10 || tst == 11 || tst == 16 || tst == 17) in test_ticket_callbacks()
8392 else if (tst == 12 || tst == 13 || tst == 18 || tst == 19) in test_ticket_callbacks()
8398 switch (tst) { in test_ticket_callbacks()
8426 ((tst % 2) == 0) ? TLS1_2_VERSION in test_ticket_callbacks()
8442 if (tst >= 14) { in test_ticket_callbacks()
8446 } else if (tst >= 8) { in test_ticket_callbacks()
8466 || !TEST_int_eq(dec_tick_called, ((tst % 2) == 0) ? 1 : 0)) in test_ticket_callbacks()
8502 || !TEST_int_eq(dec_tick_called, (tst == 13 || tst == 19) ? 0 : 1)) in test_ticket_callbacks()
8526 static int test_incorrect_shutdown(int tst) in test_incorrect_shutdown() argument
8539 if (tst == 1) in test_incorrect_shutdown()
8556 if (tst == 0 && !TEST_int_eq(SSL_get_error(serverssl, 0), SSL_ERROR_SSL) ) in test_incorrect_shutdown()
8558 if (tst == 1 && !TEST_int_eq(SSL_get_error(serverssl, 0), SSL_ERROR_ZERO_RETURN) ) in test_incorrect_shutdown()
8585 static int test_shutdown(int tst) in test_shutdown() argument
8596 if (tst <= 1) in test_shutdown()
8600 if (tst >= 2) in test_shutdown()
8607 (tst <= 1) ? TLS1_2_VERSION in test_shutdown()
8612 if (tst == 5) in test_shutdown()
8619 if (tst == 3) { in test_shutdown()
8635 if (tst >= 4) { in test_shutdown()
8651 if (tst == 4 in test_shutdown()
8655 if (tst == 5) { in test_shutdown()
8660 if ((tst == 4 || tst == 5) in test_shutdown()
8665 if (tst == 4 || tst == 5) { in test_shutdown()
8683 if (tst < 4) { in test_shutdown()
8700 } else if (tst == 4 || tst == 5) { in test_shutdown()
8912 static int test_cert_cb_int(int prot, int tst) in test_cert_cb_int() argument
8920 if (tst >= 3) in test_cert_cb_int()
8931 if (tst == 0) in test_cert_cb_int()
8933 else if (tst >= 3) in test_cert_cb_int()
8938 if (tst == 2) { in test_cert_cb_int()
8950 if (tst == 4) { in test_cert_cb_int()
8958 } else if (tst == 5) { in test_cert_cb_int()
8969 if (!TEST_true(tst == 0 || tst == 4 || tst == 5 ? !ret : ret) in test_cert_cb_int()
8970 || (tst > 0 in test_cert_cb_int()
8988 static int test_cert_cb(int tst) in test_cert_cb() argument
8993 testresult &= test_cert_cb_int(TLS1_2_VERSION, tst); in test_cert_cb()
8996 testresult &= test_cert_cb_int(TLS1_3_VERSION, tst); in test_cert_cb()
9038 static int test_client_cert_cb(int tst) in test_client_cert_cb() argument
9045 if (tst == 0) in test_client_cert_cb()
9049 if (tst == 1) in test_client_cert_cb()
9056 tst == 0 ? TLS1_2_VERSION in test_client_cert_cb()
9095 static int test_ca_names_int(int prot, int tst) in test_ca_names_int() argument
9126 if (tst == 0 || tst == 1) { in test_ca_names_int()
9139 if (tst == 1 || tst == 2) { in test_ca_names_int()
9165 && (tst == 0 || tst == 1)) { in test_ca_names_int()
9186 name[tst == 0 ? 0 : 2]), 0) in test_ca_names_int()
9188 name[tst == 0 ? 1 : 3]), 0)) in test_ca_names_int()
9207 static int test_ca_names(int tst) in test_ca_names() argument
9212 testresult &= test_ca_names_int(TLS1_2_VERSION, tst); in test_ca_names()
9215 testresult &= test_ca_names_int(TLS1_3_VERSION, tst); in test_ca_names()
9575 static int test_servername(int tst) in test_servername() argument
9584 if (tst <= 4) in test_servername()
9588 if (tst >= 5) in test_servername()
9595 (tst <= 4) ? TLS1_2_VERSION in test_servername()
9602 if (tst != 1 && tst != 6) { in test_servername()
9608 if (tst != 3 && tst != 8) { in test_servername()
9644 if (tst == 2 || tst == 7) { in test_servername()
9652 if (tst == 7) in test_servername()
9659 } else if (tst == 4 || tst == 9) { in test_servername()
9664 if (tst == 9) in test_servername()
9683 if (tst == 1 || tst == 3) in test_servername()