Home
last modified time | relevance | path

Searched refs:TEST_int_eq (Results 1 – 25 of 69) sorted by relevance

123

/third_party/openssl/test/
Dbio_callback_test.c58 if (!TEST_int_eq(i, test1len) in test_bio_callback()
59 || !TEST_int_eq(my_param_count, 2) in test_bio_callback()
61 || !TEST_int_eq(my_param_oper[0], BIO_CB_WRITE) in test_bio_callback()
63 || !TEST_int_eq(my_param_argi[0], test1len) in test_bio_callback()
67 || !TEST_int_eq(my_param_oper[1], BIO_CB_WRITE | BIO_CB_RETURN) in test_bio_callback()
69 || !TEST_int_eq(my_param_argi[1], test1len) in test_bio_callback()
77 || !TEST_int_eq(my_param_count, 2) in test_bio_callback()
79 || !TEST_int_eq(my_param_oper[0], BIO_CB_READ) in test_bio_callback()
81 || !TEST_int_eq(my_param_argi[0], sizeof(buf)) in test_bio_callback()
85 || !TEST_int_eq(my_param_oper[1], BIO_CB_READ | BIO_CB_RETURN) in test_bio_callback()
[all …]
Dctype_internal_test.c30 if (!TEST_int_eq(isascii((unsigned char)n) != 0, ossl_isascii(n) != 0)) in test_ctype_chars()
36 return TEST_int_eq(isalpha(n) != 0, ossl_isalpha(n) != 0) in test_ctype_chars()
37 && TEST_int_eq(isalnum(n) != 0, ossl_isalnum(n) != 0) in test_ctype_chars()
39 && TEST_int_eq(isblank(n) != 0, ossl_isblank(n) != 0) in test_ctype_chars()
41 && TEST_int_eq(iscntrl(n) != 0, ossl_iscntrl(n) != 0) in test_ctype_chars()
42 && TEST_int_eq(isdigit(n) != 0, ossl_isdigit(n) != 0) in test_ctype_chars()
43 && TEST_int_eq(isgraph(n) != 0, ossl_isgraph(n) != 0) in test_ctype_chars()
44 && TEST_int_eq(islower(n) != 0, ossl_islower(n) != 0) in test_ctype_chars()
45 && TEST_int_eq(isprint(n) != 0, ossl_isprint(n) != 0) in test_ctype_chars()
46 && TEST_int_eq(ispunct(n) != 0, ossl_ispunct(n) != 0) in test_ctype_chars()
[all …]
Dssl_test_ctx_test.c39 if (!TEST_int_eq(conf1->verify_callback, conf2->verify_callback) in clientconf_eq()
40 || !TEST_int_eq(conf1->servername, conf2->servername) in clientconf_eq()
43 || !TEST_int_eq(conf1->ct_validation, conf2->ct_validation) in clientconf_eq()
44 || !TEST_int_eq(conf1->max_fragment_len_mode, in clientconf_eq()
53 if (!TEST_int_eq(serv->servername_callback, serv2->servername_callback) in serverconf_eq()
56 || !TEST_int_eq(serv->broken_session_ticket, in serverconf_eq()
60 || !TEST_int_eq(serv->cert_status, serv2->cert_status)) in serverconf_eq()
77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq()
78 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode) in testctx_eq()
79 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size) in testctx_eq()
[all …]
Dbio_memleak_test.c34 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) in test_bio_memleak()
54 if (!TEST_int_eq(BIO_puts(bio, "Hello World\n"), 12)) in test_bio_get_mem()
83 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_new_mem_buf()
91 if (!TEST_int_eq(BIO_read(bio, data, 16), 7)) in test_bio_new_mem_buf()
97 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_new_mem_buf()
118 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_rdonly_mem_buf()
132 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf()
138 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf()
159 if (!TEST_int_eq(BIO_puts(bio, "Hello World\n"), 12)) in test_bio_rdwr_rdonly()
163 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_rdwr_rdonly()
[all …]
Dstack_test.c93 if (!TEST_int_eq(sk_sint_num(s), i)) { in test_int_stack()
99 if (!TEST_int_eq(sk_sint_num(s), n)) in test_int_stack()
114 if (!TEST_int_eq(sk_sint_find(s, val), finds[i].unsorted)) { in test_int_stack()
125 if (!TEST_int_eq(sk_sint_find_ex(s, val), finds[i].unsorted)) { in test_int_stack()
141 if (!TEST_int_eq(sk_sint_find(s, &finds[i].value), finds[i].sorted)) { in test_int_stack()
148 if (!TEST_int_eq(sk_sint_find_ex(s, &finds[i].value), finds[i].ex)) { in test_int_stack()
153 if (!TEST_int_eq(sk_sint_find_ex(s, &exfinds[i].value), exfinds[i].ex)){ in test_int_stack()
188 if (!TEST_int_eq(sk_uchar_num(s), i)) { in test_uchar_stack()
194 if (!TEST_int_eq(sk_uchar_num(s), n)) in test_uchar_stack()
199 if (!TEST_int_eq(sk_uchar_num(r), n)) in test_uchar_stack()
[all …]
Dcurve448_internal_test.c616 || !TEST_int_eq(memcmp(sig1, outsig, sizeof(sig1)), 0) in test_ed448()
619 || !TEST_int_eq(memcmp(sig2, outsig, sizeof(sig2)), 0) in test_ed448()
622 || !TEST_int_eq(memcmp(sig3, outsig, sizeof(sig3)), 0) in test_ed448()
625 || !TEST_int_eq(memcmp(sig4, outsig, sizeof(sig4)), 0) in test_ed448()
628 || !TEST_int_eq(memcmp(sig5, outsig, sizeof(sig5)), 0) in test_ed448()
631 || !TEST_int_eq(memcmp(sig6, outsig, sizeof(sig6)), 0) in test_ed448()
634 || !TEST_int_eq(memcmp(sig7, outsig, sizeof(sig7)), 0) in test_ed448()
637 || !TEST_int_eq(memcmp(sig8, outsig, sizeof(sig8)), 0) in test_ed448()
640 || !TEST_int_eq(memcmp(sig9, outsig, sizeof(sig9)), 0) in test_ed448()
644 || !TEST_int_eq(memcmp(phsig1, outsig, sizeof(phsig1)), 0) in test_ed448()
[all …]
Dssl_ctx_test.c46 if (!TEST_int_eq(SSL_CTX_set_min_proto_version(ctx, t.min_version), t.min_ok)) in test_set_min_max_version()
48 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version()
50 if (!TEST_int_eq(SSL_CTX_get_min_proto_version(ctx), t.expected_min)) in test_set_min_max_version()
52 if (!TEST_int_eq(SSL_CTX_get_max_proto_version(ctx), t.expected_max)) in test_set_min_max_version()
55 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) in test_set_min_max_version()
57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version()
59 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) in test_set_min_max_version()
61 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) in test_set_min_max_version()
Dasn1_time_test.c123 if (!TEST_int_eq(ASN1_TIME_check(&atime), td->check_result)) { in test_table()
130 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(&atime, td->t), 0)) { in test_table()
139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
154 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(&atime, gtime_t), td->cmp_result)) { in test_table()
165 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table()
170 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
185 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table()
189 if (!TEST_int_eq(ASN1_TIME_normalize(ptime), td->check_result)) { in test_table()
193 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table()
198 …(!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(sec… in test_table()
[all …]
Dec_internal_test.c204 || !TEST_int_eq(grp->decoded_from_explicit_params, 0)) in decoded_flag_test()
211 || !TEST_int_eq(grp->decoded_from_explicit_params, 0)) in decoded_flag_test()
217 || !TEST_int_eq(grp_copy->decoded_from_explicit_params, 0)) in decoded_flag_test()
225 if (!TEST_int_eq(EC_GROUP_get_asn1_flag(grp), OPENSSL_EC_NAMED_CURVE) in decoded_flag_test()
228 || !TEST_int_eq(grp_copy->decoded_from_explicit_params, 0) in decoded_flag_test()
231 || !TEST_int_eq(EC_KEY_decoded_from_explicit_params(key), -1) in decoded_flag_test()
232 || !TEST_int_eq(EC_KEY_set_group(key, grp_copy), 1) in decoded_flag_test()
234 || !TEST_int_eq(EC_KEY_decoded_from_explicit_params(key), 0)) in decoded_flag_test()
245 || !TEST_int_eq(grp_copy->decoded_from_explicit_params, 0)) in decoded_flag_test()
256 || !TEST_int_eq(EC_GROUP_get_asn1_flag(grp_copy), OPENSSL_EC_EXPLICIT_CURVE) in decoded_flag_test()
[all …]
Dgmdifftest.c36 if (!TEST_int_eq(tm1.tm_year, tm2.tm_year) in check_time()
37 || !TEST_int_eq(tm1.tm_mon, tm2.tm_mon) in check_time()
38 || !TEST_int_eq(tm1.tm_mday, tm2.tm_mday) in check_time()
39 || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) in check_time()
40 || !TEST_int_eq(tm1.tm_min, tm2.tm_min) in check_time()
41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
Dcipherbytes_test.c33 if (!TEST_int_eq(SSL_bytes_to_cipher_list(s, bytes, 0, 0, &sk, &scsv), 0) in test_empty()
55 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 1) in test_unsupported()
57 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 0) in test_unsupported()
81 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 2) in test_v2()
83 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 0)) in test_v2()
110 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 3) in test_v3()
112 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 2) in test_v3()
Dexdatatest.c31 if (!TEST_int_eq(idx, saved_idx) in exnew()
41 if (!TEST_int_eq(idx, saved_idx) in exdup()
52 if (!TEST_int_eq(idx, saved_idx) in exfree()
74 if (!TEST_int_eq(idx, saved_idx2) in exnew2()
92 if (!TEST_int_eq(idx, saved_idx2) in exdup2()
116 if (!TEST_int_eq(idx, saved_idx2) in exfree2()
143 if (!TEST_int_eq(obj->st, 1)) in MYOBJ_sethello()
206 if (!TEST_int_eq(t1->st, 1) || !TEST_int_eq(t2->st, 1)) in test_exdata()
232 if (!TEST_int_eq(t3->st, 1)) in test_exdata()
238 if (!TEST_int_eq(ex_data->dup, 1)) in test_exdata()
Dconf_include_test.c77 || !TEST_int_eq(err = ERR_peek_error(), 0)) { in test_load_config()
102 if (!TEST_int_eq(NCONF_get_number(conf, "CA_default", "default_days", &val), 1) in test_load_config()
103 || !TEST_int_eq(val, 365)) { in test_load_config()
110 if (!TEST_int_eq(NCONF_get_number(conf, "req", "default_bits", &val), 1) in test_load_config()
111 || !TEST_int_eq(val, 2048)) { in test_load_config()
136 if (!TEST_int_eq(setenv("FNORD", "123", 1), 0) in test_check_null_numbers()
147 if (!TEST_int_eq(unsetenv("FNORD"), 0) in test_check_null_numbers()
Dsslapitest.c158 if (!TEST_int_eq(hexed[0], hex_encoded[j]) in compare_hex_encoded_buffer()
159 || !TEST_int_eq(hexed[1], hex_encoded[j + 1])) in compare_hex_encoded_buffer()
478 || !TEST_int_eq(SSL_read_early_data(serverssl, buf, sizeof(buf), in test_keylog_no_master_key()
481 || !TEST_int_eq(SSL_get_early_data_status(serverssl), in test_keylog_no_master_key()
539 || !TEST_int_eq(*p, 0)) in full_client_hello_callback()
578 || !TEST_int_eq(SSL_get_error(serverssl, -1), in test_client_hello_cb()
644 || !TEST_int_eq(TLS1_CK_RSA_WITH_AES_128_GCM_SHA256, in test_ccs_change_cipher()
669 } else if (!TEST_int_eq(SSL_get_error(clientssl, 0), in test_ccs_change_cipher()
676 } else if (!TEST_int_eq(SSL_get_error(serverssl, 0), in test_ccs_change_cipher()
687 || !TEST_int_eq(TLS1_CK_RSA_WITH_AES_256_GCM_SHA384, in test_ccs_change_cipher()
[all …]
Dlhash_test.c98 if (!TEST_int_eq(lh_int_num_items(h), n_int_tests)) in test_int_lhash()
103 if (!TEST_int_eq(*lh_int_retrieve(h, int_tests + i), int_tests[i])) { in test_int_lhash()
129 if (!TEST_int_eq(int_found[i], 1)) { in test_int_lhash()
138 if (!TEST_int_eq(int_found[i], 1)) { in test_int_lhash()
146 if (!TEST_int_eq(b ^ dels[i].null, 0)) { in test_int_lhash()
153 if (!TEST_int_eq(lh_int_error(h), 0)) in test_int_lhash()
189 if (!TEST_int_eq(lh_int_num_items(h), n)) in test_stress()
205 if (!TEST_int_eq(*p, j)) { in test_stress()
Dectest.c58 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests()
62 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx))) in group_order_tests()
75 || (i == 1 && !TEST_int_eq(0, EC_POINT_cmp(group, P, G, ctx))) in group_order_tests()
80 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests()
85 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests()
90 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx))) in group_order_tests()
109 || !TEST_int_eq(0, EC_POINT_cmp(group, R, S, ctx))) in group_order_tests()
247 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests()
256 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests()
265 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests()
[all …]
Dssl_test.c33 if (!TEST_int_eq(result->result, test_ctx->expected_result)) { in check_result()
44 if (!TEST_int_eq(result->client_alert_sent, in check_alerts()
63 if (!TEST_int_eq(result->server_alert_sent, in check_alerts()
102 if (!TEST_int_eq(result->client_protocol, result->server_protocol)) { in check_protocol()
110 if (!TEST_int_eq(result->client_protocol, in check_protocol()
123 if (!TEST_int_eq(result->servername, test_ctx->expected_servername)) { in check_servername()
136 if (!TEST_int_eq(result->session_ticket, in check_session_ticket()
150 if (!TEST_int_eq(result->session_id, test_ctx->session_id_expected)) { in check_session_id()
161 if (!TEST_int_eq(result->compression, test_ctx->compression_expected)) in check_compression()
214 if (!TEST_int_eq(result->client_resumed, result->server_resumed)) in check_resumption()
[all …]
Ddsatest.c86 if (!TEST_int_eq(counter, 105)) in dsa_test()
88 if (!TEST_int_eq(h, 2)) in dsa_test()
94 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_q, i)) in dsa_test()
99 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_p, i)) in dsa_test()
104 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_g, i)) in dsa_test()
Dx509_time_test.c268 if (!TEST_int_eq(result, x509_cmp_tests[idx].expected)) { in test_x509_cmp_time()
287 if (!TEST_int_eq(cmp_result, -1)) in test_x509_cmp_time_current()
291 if (!TEST_int_eq(cmp_result, 1)) in test_x509_cmp_time_current()
316 if (!TEST_int_eq(result, x509_format_tests[idx].expected)) { in test_x509_time()
324 if (!TEST_int_eq(t->type, x509_format_tests[idx].expected_type)) { in test_x509_time()
422 && TEST_int_eq(t.tm_yday, day_of_week_tests[n].yd) in test_days()
423 && TEST_int_eq(t.tm_wday, day_of_week_tests[n].wd); in test_days()
477 || !TEST_int_eq(rv, (int)strlen(readable)) in test_x509_time_print()
Dcipherlist_test.c164 if (!TEST_int_eq(num_ciphers, num_expected_ciphers)) in test_default_cipherlist()
170 if (!TEST_int_eq(cipher_id, expected_cipher_id)) { in test_default_cipherlist()
227 if (!TEST_int_eq(SSL_CTX_set_cipher_list(fixture->server, "no-such"), 0)) in test_default_cipherlist_clear()
230 if (!TEST_int_eq(ERR_GET_REASON(ERR_get_error()), SSL_R_NO_CIPHER_MATCH)) in test_default_cipherlist_clear()
238 if (!TEST_int_eq(SSL_set_cipher_list(s, "no-such"), 0)) in test_default_cipherlist_clear()
241 if (!TEST_int_eq(ERR_GET_REASON(ERR_get_error()), in test_default_cipherlist_clear()
Drsa_mp_test.c136 if (!TEST_int_eq(RSA_set0_key(key, in key2048p3()
142 if (!TEST_int_eq(RSA_set0_factors(key, in key2048p3()
147 if (!TEST_int_eq(RSA_set0_crt_params(key, in key2048p3()
202 if (!TEST_int_eq(clen, 256)) in test_rsa_mp()
210 if (!TEST_int_eq(num, clen)) in test_rsa_mp()
Decdsatest.c144 || !TEST_int_eq(q_len, p_len) in x9_62_tests()
154 || !TEST_int_eq(ECDSA_do_verify(digest, dgst_len, signature, key), 1)) in x9_62_tests()
244 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 0) in test_builtin()
248 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len - 1, tbs, sizeof(tbs)), -1) in test_builtin()
252 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1)) in test_builtin()
259 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 0)) in test_builtin()
265 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1)) in test_builtin()
305 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1)) in test_builtin()
Dcrltest.c301 && TEST_int_eq(verify(test_leaf, test_root, in test_basic_crl()
304 && TEST_int_eq(verify(test_leaf, test_root, in test_basic_crl()
314 return TEST_int_eq(verify(test_leaf, test_root, NULL, in test_no_crl()
325 && TEST_int_eq(verify(test_leaf, test_root, in test_bad_issuer_crl()
339 && TEST_int_eq(verify(test_leaf, test_root, in test_known_critical_crl()
352 && TEST_int_eq(verify(test_leaf, test_root, in test_unknown_critical_crl()
Ddrbgtest.c398 || !TEST_int_eq(t.entropycnt, 1) in error_check()
399 || !TEST_int_eq(drbg->generate_counter, reseed_counter_tmp + 1) in error_check()
423 || !TEST_int_eq(t.entropycnt, 1) in error_check()
424 || !TEST_int_eq(drbg->generate_counter, reseed_counter_tmp + 1) in error_check()
622 if (!TEST_int_eq(RAND_bytes(buf, sizeof(buf)), expect_success) in test_drbg_reseed()
623 || !TEST_int_eq(RAND_priv_bytes(buf, sizeof(buf)), expect_success)) in test_drbg_reseed()
633 if (!TEST_int_eq(master->state, expected_state) in test_drbg_reseed()
634 || !TEST_int_eq(public->state, expected_state) in test_drbg_reseed()
635 || !TEST_int_eq(private->state, expected_state)) in test_drbg_reseed()
640 if (!TEST_int_eq(master_ctx.reseed_count, expect_master_reseed)) in test_drbg_reseed()
[all …]
Dd2i_test.c76 if (TEST_int_eq(expected_error, ASN1_DECODE)) in test_bad_asn1()
84 if (TEST_int_eq(expected_error, ASN1_ENCODE)) in test_bad_asn1()
90 if (TEST_int_eq(expected_error, ASN1_COMPARE)) in test_bad_asn1()
95 if (TEST_int_eq(expected_error, ASN1_OK)) in test_bad_asn1()

123