Home
last modified time | relevance | path

Searched refs:TEST_str_eq (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/crypto/openssl/test/
H A Dparam_build_test.c36 || !TEST_str_eq(p->key, "zeronumber") in template_public_single_zero_test()
69 || !TEST_str_eq(p->key, "zeronumber") in template_private_single_zero_test()
148 || !TEST_str_eq(p->key, "i") in template_public_test()
155 || !TEST_str_eq(p->key, "i32") in template_public_test()
161 || !TEST_str_eq(p->key, "i64") in template_public_test()
168 || !TEST_str_eq(p->key, "l") in template_public_test()
175 || !TEST_str_eq(p->key, "t") in template_public_test()
183 || !TEST_str_eq(p->key, "d") in template_public_test()
189 || !TEST_str_eq(p->data, "foo") in template_public_test()
191 || !TEST_str_eq(utf, "foo") in template_public_test()
[all …]
H A Dcipherbytes_test.c58 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(sk, 0)), in test_unsupported()
115 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(sk, 0)), in test_v3()
117 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(sk, 1)), in test_v3()
119 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(sk, 2)), in test_v3()
121 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(scsv, 0)), in test_v3()
123 || !TEST_str_eq(SSL_CIPHER_get_name(sk_SSL_CIPHER_value(scsv, 1)), in test_v3()
H A Dcmactest.c177 if (!TEST_str_eq(p, test[0].mac)) in test_cmac_run()
187 if (!TEST_str_eq(p, test[1].mac)) in test_cmac_run()
195 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run()
203 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run()
213 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run()
223 if (!TEST_str_eq(p, test[3].mac)) in test_cmac_run()
232 if (!TEST_str_eq(p, test[4].mac)) in test_cmac_run()
241 if (!TEST_str_eq(p, test[5].mac)) in test_cmac_run()
251 if (!TEST_str_eq(p, test[6].mac)) in test_cmac_run()
262 if (!TEST_str_eq(p, test[7].mac)) in test_cmac_run()
[all …]
H A Dssl_test_ctx_test.c40 || !TEST_str_eq(conf1->npn_protocols, conf2->npn_protocols) in clientconf_eq()
41 || !TEST_str_eq(conf1->alpn_protocols, conf2->alpn_protocols) in clientconf_eq()
53 || !TEST_str_eq(serv->npn_protocols, serv2->npn_protocols) in serverconf_eq()
54 || !TEST_str_eq(serv->alpn_protocols, serv2->alpn_protocols) in serverconf_eq()
57 || !TEST_str_eq(serv->session_ticket_app_data, in serverconf_eq()
93 || !TEST_str_eq(ctx->expected_npn_protocol, in testctx_eq()
95 || !TEST_str_eq(ctx->expected_alpn_protocol, in testctx_eq()
97 || !TEST_str_eq(ctx->expected_cipher, in testctx_eq()
99 || !TEST_str_eq(ctx->expected_session_ticket_app_data, in testctx_eq()
H A Derrtest.c139 return TEST_str_eq(data, "hello world"); in vdata_appends()
157 || (strlen(f) != 0 && !TEST_str_eq(f, file)) in raised_error()
158 || !TEST_str_eq(data, "calling exit()")) in raised_error()
290 if (!TEST_str_eq(data, "hello world") in test_clear_error()
298 if (!TEST_str_eq(data, "") in test_clear_error()
306 if (!TEST_str_eq(data, "goodbye cruel world") in test_clear_error()
317 if (!TEST_str_eq(data, "") in test_clear_error()
375 if (!TEST_str_eq(data, testdata) in test_save_restore()
394 || !TEST_str_eq(data, testdata) in test_save_restore()
409 || !TEST_str_eq(data, testdata) in test_save_restore()
H A Dciphername_test.c392 if (!TEST_str_eq(p, "(NONE)")) { in test_cipher_name()
398 if (!TEST_str_eq(p, "(NONE)")) { in test_cipher_name()
404 if (!TEST_str_eq(p, "(NONE)")) { in test_cipher_name()
447 if (!TEST_str_eq(p, q)) { in test_cipher_name()
455 if (!TEST_str_eq(r, q)) { in test_cipher_name()
H A Dproperty_test.c68 && TEST_str_eq(ossl_property_name_str(ctx, 1), "provider") in test_property_string()
69 && TEST_str_eq(ossl_property_name_str(ctx, 2), "version") in test_property_string()
70 && TEST_str_eq(ossl_property_name_str(ctx, 3), "fips") in test_property_string()
71 && TEST_str_eq(ossl_property_name_str(ctx, 4), "output") in test_property_string()
72 && TEST_str_eq(ossl_property_name_str(ctx, 5), "input") in test_property_string()
73 && TEST_str_eq(ossl_property_name_str(ctx, 6), "structure") in test_property_string()
75 && TEST_str_eq(ossl_property_name_str(ctx, 7), "fnord") in test_property_string()
76 && TEST_str_eq(ossl_property_name_str(ctx, 8), "name") in test_property_string()
91 && TEST_str_eq(ossl_property_value_str(ctx, 1), "yes") in test_property_string()
92 && TEST_str_eq(ossl_property_value_str(ctx, 2), "no") in test_property_string()
[all …]
H A Dtest_test.c260 if (!TEST(1, TEST_str_eq(NULL, NULL)) in test_string()
261 || !TEST(1, TEST_str_eq("abc", buf)) in test_string()
262 || !TEST(0, TEST_str_eq("abc", NULL)) in test_string()
263 || !TEST(0, TEST_str_eq("abc", "")) in test_string()
264 || !TEST(0, TEST_str_eq(NULL, buf)) in test_string()
266 || !TEST(0, TEST_str_eq("", NULL)) in test_string()
267 || !TEST(0, TEST_str_eq(NULL, "")) in test_string()
269 || !TEST(0, TEST_str_eq("\1\2\3\4\5", "\1x\3\6\5")) in test_string()
273 || !TEST(0, TEST_str_eq("abcdef", "abcdefghijk"))) in test_string()
395 return TEST(0, TEST_str_eq(p, q)) in test_long_output()
[all …]
H A Dhttp_test.c218 && TEST_str_eq(rtext, DOCTYPE_HTML); in test_http_method()
224 && TEST_str_eq(rtext, text1); in test_http_method()
300 && TEST_str_eq(host, exp_host) in test_http_url_ok()
301 && TEST_str_eq(port, exp_port) in test_http_url_ok()
303 && TEST_str_eq(path, exp_path) in test_http_url_ok()
306 res = TEST_str_eq(user, "user:pass"); in test_http_url_ok()
308 res = TEST_str_eq(frag, "fr"); in test_http_url_ok()
310 res = TEST_str_eq(query, "q"); in test_http_url_ok()
327 && TEST_str_eq(host, "host") in test_http_url_path_query_ok()
328 && TEST_str_eq(path, exp_path_qu); in test_http_url_path_query_ok()
[all …]
H A Dhmactest.c103 return TEST_ptr(p) && TEST_str_eq(p, test[idx].digest); in test_hmac_md5()
152 if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest)) in test_hmac_run()
165 if (!TEST_ptr(p) || !TEST_str_eq(p, test[5].digest)) in test_hmac_run()
173 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
182 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
194 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
211 if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest)) in test_hmac_single_shot()
261 if (!TEST_ptr(p) || !TEST_str_eq(p, test[7].digest)) in test_hmac_copy()
425 if (!TEST_ptr(p) || !TEST_str_eq(p, test_chunks[idx].digest)) in test_hmac_chunks()
H A Dprovider_default_search_path_test.c23 && TEST_str_eq(path, retrieved_path); in test_default_libctx()
44 && TEST_str_eq(def_libctx_path, retrieved_defctx_path) in test_explicit_libctx()
46 && TEST_str_eq(path, retrieved_path) in test_explicit_libctx()
H A Dparams_test.c464 || !TEST_str_eq(app_p4, p4_init) /* "provider" value */ in test_case_variant()
468 || !TEST_str_eq(app_p5, p5_init) /* "provider" value */ in test_case_variant()
472 || !TEST_str_eq(app_p6, p6_init) /* "provider" value */ in test_case_variant()
491 || !TEST_str_eq(sneakpeek->p4, app_p4) /* app value set */ in test_case_variant()
492 || !TEST_str_eq(sneakpeek->p5, app_p5) /* app value set */ in test_case_variant()
493 || !TEST_str_eq(sneakpeek->p6, app_p6)) /* app value set */ in test_case_variant()
515 || !TEST_str_eq(app_p4, app_p4_init) /* app value */ in test_case_variant()
519 || !TEST_str_eq(app_p5, app_p5_init) /* app value */ in test_case_variant()
523 || !TEST_str_eq(app_p6, app_p6_init) /* app value */ in test_case_variant()
H A Dhexstr_test.c79 || !TEST_str_eq(out, test->in)) in test_hexstr_sep_to_from()
103 if (!TEST_str_eq(out, test->in)) in test_hexstr_to_from()
132 && TEST_str_eq(out, test->in) in test_hexstr_ex_to_from()
H A Duitest.c60 if (TEST_str_eq(pass, defpass)) in test_old()
82 && TEST_str_eq(pass, cb_data.password)) in test_new_ui()
H A Dssl_test.c172 if (!TEST_str_eq(result->client_npn_negotiated, in check_npn()
175 if (!TEST_str_eq(test_ctx->expected_npn_protocol, in check_npn()
185 if (!TEST_str_eq(result->client_alpn_negotiated, in check_alpn()
188 if (!TEST_str_eq(test_ctx->expected_alpn_protocol, in check_alpn()
208 if (!TEST_str_eq(result->result_session_ticket_app_data, in check_session_ticket_app_data()
351 if (!TEST_str_eq(test_ctx->expected_cipher, in check_cipher()
H A Dbioprinttest.c141 if (!TEST_str_eq(bio_buf, data->expected)) in test_zu()
169 if (!TEST_str_eq(bio_buf, data->expected)) in test_j()
213 } else if (!TEST_str_eq(fpexpected[test][sub][i], result)) { in dofptest()
H A Dbio_core_test.c92 || !TEST_str_eq(buf, msg)) in test_bio_core()
98 || !TEST_str_eq(buf, msg)) in test_bio_core()
H A Dtls13groupselection_test.c477 if (!TEST_str_eq(response_desc[current_test_vector->expected_server_response], in test_groupnegotiation()
480 if (TEST_str_eq(group_name_client, current_test_vector->expected_group)) in test_groupnegotiation()
485 && !TEST_str_eq(response_desc[current_test_vector->expected_server_response], in test_groupnegotiation()
H A Dx509_internal_test.c213 && TEST_str_eq(X509_PURPOSE_get0_name(xp), LN) in tests_X509_PURPOSE()
214 && TEST_str_eq(X509_PURPOSE_get0_sname(xp), SN) in tests_X509_PURPOSE()
H A Dservername_test.c136 if (!TEST_str_eq(hostname, host)) in client_setup_sni_before_state()
189 if (!TEST_str_eq(hostname, host)) in client_setup_sni_after_state()
H A Dcmp_ctx_test.c119 && TEST_str_eq(propq, OSSL_CMP_CTX_get0_propq(cmpctx)); in test_CTX_libctx_propq()
267 (TEST_str_eq(func, "execute_cmp_ctx_log_cb_test") in test_log_cb()
268 || TEST_str_eq(func, "(unknown function)")) in test_log_cb()
271 (TEST_str_eq(file, OPENSSL_FILE) in test_log_cb()
272 || TEST_str_eq(file, "(no file)")) in test_log_cb()
276 && TEST_str_eq(msg, "ok"); in test_log_cb()
H A Dprovider_test.c93 || !TEST_str_eq(greeting, expected_greeting)) in test_provider()
184 || !TEST_str_eq(greeting, custom_buf)) in test_provider_ex()
H A Dprovider_fallback_test.c24 && TEST_str_eq(OSSL_PROVIDER_get0_name(prov), "default"); in test_provider()
H A Ddefltfips_test.c55 && !TEST_str_eq(OSSL_PROVIDER_get0_name(EVP_MD_get0_provider(sha256)), in test_is_fips_enabled()
/freebsd/crypto/openssl/test/testutil/
H A Dcompare.c77 if (!TEST_str_eq(buf1, buf2)) in compare_with_reference_file()

12