Lines Matching refs:tst
1470 static int test_ktls_sendfile(int tst)
1474 OPENSSL_assert(tst < (int)NUM_KTLS_TEST_CIPHERS);
1475 cipher = &ktls_test_ciphers[tst];
1519 static int test_large_app_data(int tst)
1529 switch (tst >> 2) {
1625 if ((tst & 1) != 0) {
1634 if ((tst & 2) != 0) {
5824 static int test_custom_exts(int tst)
5836 if (tst < 3)
5850 if (tst == 2
5857 if (tst < 3) {
5864 if (tst == 5) {
5876 } else if (tst == 4) {
5890 if (tst == 0) {
5915 if (tst == 0) {
5945 if (tst == 2) {
5958 if (tst == 0) {
5964 } else if (tst == 1 || tst == 2 || tst == 3) {
5969 || (tst != 2 && snicb != 0)
5970 || (tst == 2 && snicb != 1))
5972 } else if (tst == 5) {
5994 if (tst == 3 || tst == 5) {
6013 if (tst == 0) {
6019 } else if (tst == 1 || tst == 2 || tst == 3) {
6189 static int test_export_key_mat(int tst)
6210 if (tst == 0)
6214 if (tst == 1)
6217 if (is_fips && (tst == 0 || tst == 1))
6220 if (tst == 2)
6224 if (tst >= 3)
6232 OPENSSL_assert(tst >= 0 && (size_t)tst < OSSL_NELEM(protocols));
6233 SSL_CTX_set_max_proto_version(cctx, protocols[tst]);
6234 SSL_CTX_set_min_proto_version(cctx, protocols[tst]);
6235 if ((protocols[tst] < TLS1_2_VERSION) &&
6257 if (tst == 5) {
6270 } else if (tst == 4) {
6331 if ((tst < 3 && !TEST_mem_ne(ckeymat2, sizeof(ckeymat2), ckeymat3,
6333 || (tst >= 3 && !TEST_mem_eq(ckeymat2, sizeof(ckeymat2), ckeymat3,
6490 static int test_key_update_peer_in_write(int tst)
6513 peerupdate = tst == 0 ? clientssl : serverssl;
6514 peerwrite = tst == 0 ? serverssl : clientssl;
6576 static int test_key_update_peer_in_read(int tst)
6597 local = tst == 0 ? clientssl : serverssl;
6598 peer = tst == 0 ? serverssl : clientssl;
6659 static int test_key_update_local_in_write(int tst)
6682 local = tst == 0 ? clientssl : serverssl;
6683 peer = tst == 0 ? serverssl : clientssl;
6750 static int test_key_update_local_in_read(int tst)
6771 local = tst == 0 ? clientssl : serverssl;
6772 peer = tst == 0 ? serverssl : clientssl;
7198 static int test_srp(int tst)
7209 if (tst == 0 || tst == 1) {
7213 if (tst == 4 || tst == 5) {
7236 if (tst % 2 == 1) {
7250 if (!TEST_true(tst % 2 == 0))
7253 if (!TEST_true(tst % 2 == 1))
7419 static int test_info_callback(int tst)
7427 if (tst < 2) {
7446 info_cb_offset = tst;
7449 if (tst >= 4) {
7463 SSL_set_info_callback((tst % 2) == 0 ? serverssl : clientssl,
7499 SSL_CTX_set_info_callback((tst % 2) == 0 ? sctx : cctx,
7539 static int test_ssl_pending(int tst)
7548 if (tst == 0) {
7696 static int int_test_ssl_get_shared_ciphers(int tst, int clnt)
7727 shared_ciphers_data[tst].maxprot,
7732 shared_ciphers_data[tst].clntciphers))
7733 || (shared_ciphers_data[tst].clnttls13ciphers != NULL
7735 shared_ciphers_data[tst].clnttls13ciphers)))
7737 shared_ciphers_data[tst].srvrciphers))
7738 || (shared_ciphers_data[tst].srvrtls13ciphers != NULL
7740 shared_ciphers_data[tst].srvrtls13ciphers))))
7753 ? shared_ciphers_data[tst].fipsshared
7754 : shared_ciphers_data[tst].shared),
7772 static int test_ssl_get_shared_ciphers(int tst)
7774 return int_test_ssl_get_shared_ciphers(tst, 0)
7775 && int_test_ssl_get_shared_ciphers(tst, 1);
7939 static int test_ticket_callbacks(int tst)
7947 if (tst % 2 == 0)
7951 if (tst % 2 == 1)
7955 if (tst >= 8 && tst <= 13)
7963 if (tst == 10 || tst == 11 || tst == 16 || tst == 17)
7965 else if (tst == 12 || tst == 13 || tst == 18 || tst == 19)
7971 switch (tst) {
7999 ((tst % 2) == 0) ? TLS1_2_VERSION
8015 if (tst >= 14) {
8019 } else if (tst >= 8) {
8039 || !TEST_int_eq(dec_tick_called, ((tst % 2) == 0) ? 1 : 0))
8075 || !TEST_int_eq(dec_tick_called, (tst == 13 || tst == 19) ? 0 : 1))
8099 static int test_incorrect_shutdown(int tst)
8112 if (tst == 1)
8129 if (tst == 0 && !TEST_int_eq(SSL_get_error(serverssl, 0), SSL_ERROR_SSL) )
8131 if (tst == 1 && !TEST_int_eq(SSL_get_error(serverssl, 0), SSL_ERROR_ZERO_RETURN) )
8158 static int test_shutdown(int tst)
8169 if (tst <= 1)
8173 if (tst >= 2)
8180 (tst <= 1) ? TLS1_2_VERSION
8185 if (tst == 5)
8192 if (tst == 3) {
8208 if (tst >= 4) {
8224 if (tst == 4
8228 if (tst == 5) {
8233 if ((tst == 4 || tst == 5)
8238 if (tst == 4 || tst == 5) {
8256 if (tst < 4) {
8273 } else if (tst == 4 || tst == 5) {
8285 * tst == 6
8409 static int test_cert_cb_int(int prot, int tst)
8417 if (tst >= 3)
8428 if (tst == 0)
8430 else if (tst >= 3)
8435 if (tst == 2) {
8447 if (tst == 4) {
8455 } else if (tst == 5) {
8466 if (!TEST_true(tst == 0 || tst == 4 || tst == 5 ? !ret : ret)
8467 || (tst > 0
8485 static int test_cert_cb(int tst)
8490 testresult &= test_cert_cb_int(TLS1_2_VERSION, tst);
8493 testresult &= test_cert_cb_int(TLS1_3_VERSION, tst);
8535 static int test_client_cert_cb(int tst)
8542 if (tst == 0)
8546 if (tst == 1)
8553 tst == 0 ? TLS1_2_VERSION
8592 static int test_ca_names_int(int prot, int tst)
8623 if (tst == 0 || tst == 1) {
8636 if (tst == 1 || tst == 2) {
8662 && (tst == 0 || tst == 1)) {
8683 name[tst == 0 ? 0 : 2]), 0)
8685 name[tst == 0 ? 1 : 3]), 0))
8704 static int test_ca_names(int tst)
8709 testresult &= test_ca_names_int(TLS1_2_VERSION, tst);
8712 testresult &= test_ca_names_int(TLS1_3_VERSION, tst);
9072 static int test_servername(int tst)
9081 if (tst <= 4)
9085 if (tst >= 5)
9092 (tst <= 4) ? TLS1_2_VERSION
9099 if (tst != 1 && tst != 6) {
9105 if (tst != 3 && tst != 8) {
9141 if (tst == 2 || tst == 7) {
9149 if (tst == 7)
9156 } else if (tst == 4 || tst == 9) {
9161 if (tst == 9)
9180 if (tst == 1 || tst == 3)