| /src/crypto/openssl/test/ |
| H A D | provider_pkey_test.c | 32 if (!TEST_ptr(sig)) in fetch_sig() 35 if (!TEST_ptr(prov = EVP_SIGNATURE_get0_provider(sig))) in fetch_sig() 59 if (!TEST_ptr(fake_rsa = fake_rsa_start(libctx))) in test_pkey_sig() 62 if (!TEST_ptr(deflt = OSSL_PROVIDER_load(libctx, "default"))) in test_pkey_sig() 71 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", in test_pkey_sig() 75 || !TEST_ptr(pkey)) in test_pkey_sig() 90 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, in test_pkey_sig() 129 if (!TEST_ptr(deflt = OSSL_PROVIDER_load(libctx, "default"))) in test_alternative_keygen_init() 133 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL))) in test_alternative_keygen_init() 139 if (!TEST_ptr(provider = EVP_PKEY_CTX_get0_provider(ctx))) in test_alternative_keygen_init() [all …]
|
| H A D | keymgmt_internal_test.c | 55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))) in set_up() 56 || !TEST_ptr(fixture->ctx1 = OSSL_LIB_CTX_new()) in set_up() 57 || !TEST_ptr(fixture->prov1 = OSSL_PROVIDER_load(fixture->ctx1, in set_up() 59 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new()) in set_up() 60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up() 109 if (!TEST_ptr(p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_RSA_N)) in export_cb() 111 || !TEST_ptr(p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_RSA_E)) in export_cb() 113 || !TEST_ptr(p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_RSA_D)) in export_cb() 117 if (!TEST_ptr(p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_RSA_FACTOR1)) in export_cb() 119 || !TEST_ptr(p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_RSA_FACTOR2)) in export_cb() [all …]
|
| H A D | cmp_protect_test.c | 58 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 61 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL))) { in set_up() 92 int res = TEST_ptr(protection) in execute_calc_protection_pbmac_test() 124 int ret = (TEST_ptr(protection) in execute_calc_protection_signature_test() 136 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_unprotected_f, libctx)) in test_cmp_calc_protection_no_key_no_secret() 137 …|| !TEST_ptr(fixture->msg->header->protectionAlg = X509_ALGOR_new() /* no specific alg needed here… in test_cmp_calc_protection_no_key_no_secret() 151 || !TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx))) { in test_cmp_calc_protection_pkey() 165 || !TEST_ptr(fixture->msg = load_pkimsg(genm_prot_Ed_f, libctx))) { in test_cmp_calc_protection_pkey_Ed() 181 || !TEST_ptr(fixture->msg = load_pkimsg(ip_PBM_f, libctx))) { in test_cmp_calc_protection_pbmac() 201 if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) in test_MSG_protect_unprotected_request() [all …]
|
| H A D | bntest.c | 119 if (!TEST_ptr(ret = getBN(s, attribute)) in getint() 156 if (!TEST_ptr(a = BN_new()) in test_swap() 157 || !TEST_ptr(b = BN_new()) in test_swap() 158 || !TEST_ptr(c = BN_new()) in test_swap() 159 || !TEST_ptr(d = BN_new())) in test_swap() 164 && TEST_ptr(BN_copy(c, a)) in test_swap() 165 && TEST_ptr(BN_copy(d, b)))) in test_swap() 244 if (!TEST_ptr(a = BN_new()) in test_sub() 245 || !TEST_ptr(b = BN_new()) in test_sub() 246 || !TEST_ptr(c = BN_new())) in test_sub() [all …]
|
| H A D | param_build_test.c | 26 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in template_public_single_zero_test() 27 || !TEST_ptr(zbn = BN_new()) in template_public_single_zero_test() 30 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_public_single_zero_test() 35 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_public_single_zero_test() 59 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in template_private_single_zero_test() 60 || !TEST_ptr(zbn = BN_secure_new()) in template_private_single_zero_test() 62 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_private_single_zero_test() 67 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_private_single_zero_test() 103 if (!TEST_ptr(bld) in template_public_test() 109 || !TEST_ptr(zbn = BN_new()) in template_public_test() [all …]
|
| H A D | dhtest.c | 57 if (!TEST_ptr(dh = DH_new()) in dh_test() 58 || !TEST_ptr(p = BN_new()) in dh_test() 59 || !TEST_ptr(q = BN_new()) in dh_test() 60 || !TEST_ptr(g = BN_new()) in dh_test() 61 || !TEST_ptr(priv_key = BN_new())) in dh_test() 127 if (!TEST_ptr(BN_copy(q, p)) || !TEST_true(BN_add(q, q, BN_value_one()))) in dh_test() 155 if (!TEST_ptr(_cb = BN_GENCB_new())) in dh_test() 158 if (!TEST_ptr(a = DH_new()) in dh_test() 181 if (!TEST_ptr(b = DH_new())) in dh_test() 184 if (!TEST_ptr(bp = BN_dup(ap)) in dh_test() [all …]
|
| H A D | ectest.c | 47 if (!TEST_ptr(n1 = BN_new()) in group_order_tests() 48 || !TEST_ptr(n2 = BN_new()) in group_order_tests() 49 || !TEST_ptr(order = BN_new()) in group_order_tests() 50 || !TEST_ptr(ctx = BN_CTX_new()) in group_order_tests() 51 || !TEST_ptr(G = EC_GROUP_get0_generator(group)) in group_order_tests() 52 || !TEST_ptr(P = EC_POINT_new(group)) in group_order_tests() 53 || !TEST_ptr(Q = EC_POINT_new(group)) in group_order_tests() 54 || !TEST_ptr(R = EC_POINT_new(group)) in group_order_tests() 55 || !TEST_ptr(S = EC_POINT_new(group))) in group_order_tests() 173 if (!TEST_ptr(ctx = BN_CTX_new()) in prime_field_tests() [all …]
|
| H A D | rsa_sp800_56b_test.c | 113 ret = TEST_ptr(e = BN_new()) in test_check_public_exponent() 151 ret = TEST_ptr(p = BN_new()) in test_check_prime_factor_range() 152 && TEST_ptr(bn_p1 = bn_load_new(p1, sizeof(p1))) in test_check_prime_factor_range() 153 && TEST_ptr(bn_p2 = bn_load_new(p2, sizeof(p2))) in test_check_prime_factor_range() 154 && TEST_ptr(bn_p3 = bn_load_new(p3, sizeof(p3))) in test_check_prime_factor_range() 155 && TEST_ptr(bn_p4 = bn_load_new(p4, sizeof(p4))) in test_check_prime_factor_range() 156 && TEST_ptr(ctx = BN_CTX_new()) in test_check_prime_factor_range() 193 ret = TEST_ptr(p = BN_new()) in test_check_prime_factor() 194 && TEST_ptr(bn_p1 = bn_load_new(p1, sizeof(p1))) in test_check_prime_factor() 195 && TEST_ptr(bn_p2 = bn_load_new(p2, sizeof(p2))) in test_check_prime_factor() [all …]
|
| H A D | ocspapitest.c | 31 if (!TEST_ptr(certbio = BIO_new_file(certstr, "r"))) in get_cert_and_key() 35 if (!TEST_ptr(keybio = BIO_new_file(privkeystr, "r"))) in get_cert_and_key() 39 if (!TEST_ptr(cert) || !TEST_ptr(key)) in get_cert_and_key() 55 if (!TEST_ptr(certbio = BIO_new_file(certstr, "r"))) in get_cert() 59 if (!TEST_ptr(cert)) in get_cert() 81 if (!TEST_ptr(name) in make_dummy_resp() 82 || !TEST_ptr(key) in make_dummy_resp() 83 || !TEST_ptr(serial) in make_dummy_resp() 91 if (!TEST_ptr(bs) in make_dummy_resp() 92 || !TEST_ptr(thisupd) in make_dummy_resp() [all …]
|
| H A D | evp_extra_test.c | 966 if (!TEST_ptr(pkey)) in load_example_hmac_key() 979 if (!TEST_ptr(fetched_properties) in test_EVP_set_config_properties() 1000 if (!TEST_ptr(ctx = OSSL_LIB_CTX_new()) in test_EVP_set_default_properties() 1001 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", NULL))) in test_EVP_set_default_properties() 1008 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", "-provider"))) in test_EVP_set_default_properties() 1014 if (!TEST_ptr(fetched_properties) in test_EVP_set_default_properties() 1023 if (!TEST_ptr(fetched_properties) in test_EVP_set_default_properties() 1033 || !TEST_ptr(md = EVP_MD_fetch(ctx, "sha256", NULL))) in test_EVP_set_default_properties() 1049 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, keytype, testpropq))) in make_key_fromdata() 1059 if (!TEST_ptr(tmp_pkey)) in make_key_fromdata() [all …]
|
| H A D | pem_read_depr_test.c | 31 if (!TEST_ptr(paramsfile)) in getfile() 47 if (!TEST_ptr(infile)) in test_read_dh_params() 51 if (!TEST_ptr(dh)) in test_read_dh_params() 68 if (!TEST_ptr(infile)) in test_read_dh_x942_params() 72 if (!TEST_ptr(dh)) in test_read_dh_x942_params() 91 if (!TEST_ptr(infile)) in test_read_dsa_params() 95 if (!TEST_ptr(dsa)) in test_read_dsa_params() 112 if (!TEST_ptr(infile)) in test_read_dsa_private() 116 if (!TEST_ptr(dsa)) in test_read_dsa_private() 133 if (!TEST_ptr(infile)) in test_read_dsa_public() [all …]
|
| H A D | x509_test.c | 98 ret = TEST_ptr(x = d2i_X509(NULL, &p, sizeof(certdata))) in test_x509_tbs_cache() 116 ret = TEST_ptr(crl = d2i_X509_CRL(NULL, &p, sizeof(crldata))) in test_x509_crl_tbs_cache() 137 if (!TEST_ptr(certfile = test_get_argument(0)) in test_asn1_item_verify() 138 || !TEST_ptr(bio = BIO_new_file(certfile, "r")) in test_asn1_item_verify() 139 || !TEST_ptr(x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL)) in test_asn1_item_verify() 140 || !TEST_ptr(pkey = X509_get0_pubkey(x509))) in test_asn1_item_verify() 145 if (!TEST_ptr(rsa = EVP_PKEY_get1_RSA(pkey))) in test_asn1_item_verify() 188 if (!TEST_ptr((x509 = X509_new())) in test_x509_delete_last_extension() 192 || !TEST_ptr((ext = X509_EXTENSION_new())) in test_x509_delete_last_extension() 193 || !TEST_ptr((obj = OBJ_nid2obj(NID_subject_key_identifier))) in test_x509_delete_last_extension() [all …]
|
| H A D | rsa_mp_test.c | 163 if (!TEST_ptr(pris) || !TEST_ptr(exps) || !TEST_ptr(coeffs)) in key2048p3_v1() 169 if (!TEST_ptr(pris[0]) || !TEST_ptr(exps[0]) || !TEST_ptr(coeffs[0])) in key2048p3_v1() 198 if (!TEST_ptr(primes = sk_BIGNUM_new_null()) in key2048p3_v2() 199 || !TEST_ptr(exps = sk_BIGNUM_new_null()) in key2048p3_v2() 200 || !TEST_ptr(coeffs = sk_BIGNUM_new_null())) in key2048p3_v2() 203 if (!TEST_ptr(num = BN_bin2bn(p, sizeof(p) - 1, NULL)) in key2048p3_v2() 205 || !TEST_ptr(num = BN_bin2bn(q, sizeof(q) - 1, NULL)) in key2048p3_v2() 207 || !TEST_ptr(num = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL)) in key2048p3_v2() 211 if (!TEST_ptr(num = BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL)) in key2048p3_v2() 213 || !TEST_ptr(num = BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL)) in key2048p3_v2() [all …]
|
| H A D | cmsapitest.c | 36 if (!TEST_ptr(certstack) || !TEST_ptr(msgbio) || !TEST_ptr(outmsgbio)) in test_encrypt_decrypt() 43 if (!TEST_ptr(content)) in test_encrypt_decrypt() 51 && !TEST_ptr(contentbio = CMS_EnvelopedData_decrypt(content->d.envelopedData, in test_encrypt_decrypt() 97 ret = TEST_ptr(cms = CMS_ContentInfo_new()) in test_CMS_add1_cert() 98 && TEST_ptr(CMS_add1_signer(cms, cert, privkey, NULL, 0)) in test_CMS_add1_cert() 307 ret = TEST_ptr(bio = BIO_new_mem_buf(cms_data, sizeof(cms_data))) in test_d2i_CMS_bio_NULL() 308 && TEST_ptr(cms = d2i_CMS_bio(bio, NULL)) in test_d2i_CMS_bio_NULL() 310 && TEST_ptr(content = CMS_SignedData_verify(cms->d.signedData, NULL, NULL, NULL, in test_d2i_CMS_bio_NULL() 359 if (!TEST_ptr(bio = BIO_new_file(derin, "r"))) in test_d2i_CMS_decode() 364 if (!TEST_ptr(cms = d2i_CMS_bio(bio, NULL))) in test_d2i_CMS_decode() [all …]
|
| H A D | ec_internal_test.c | 37 if (!TEST_ptr(c = BN_CTX_get(ctx)) in group_field_tests() 79 if (!TEST_ptr(ctx = BN_CTX_new())) in field_tests() 85 if (!TEST_ptr(b = BN_CTX_get(ctx)) in field_tests() 86 || !TEST_ptr(group = EC_GROUP_new(meth)) in field_tests() 167 if (!TEST_ptr(b = BN_CTX_get(ctx)) in ec2m_field_sanity() 223 if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(nid)) in field_tests_default() 224 || !TEST_ptr(ctx = BN_CTX_new()) in field_tests_default() 256 if (!TEST_ptr(ctx)) in underflow_test() 266 if (!TEST_ptr(k)) in underflow_test() 273 if (!TEST_ptr(grp) || !TEST_ptr(P) || !TEST_ptr(Q) || !TEST_ptr(R)) in underflow_test() [all …]
|
| H A D | evp_kdf_test.c | 71 ret = TEST_ptr(params) in test_kdf_tls1_prf() 72 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf() 89 ret = TEST_ptr(params) in test_kdf_tls1_prf_invalid_digest() 90 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf_invalid_digest() 108 ret = TEST_ptr(params) in test_kdf_tls1_prf_zero_output_size() 109 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf_zero_output_size() 127 ret = TEST_ptr(params) in test_kdf_tls1_prf_empty_secret() 128 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf_empty_secret() 145 ret = TEST_ptr(params) in test_kdf_tls1_prf_1byte_secret() 146 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf_1byte_secret() [all …]
|
| H A D | slh_dsa_test.c | 44 ret = TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(lib_ctx, alg, NULL)) in slh_dsa_key_from_data() 65 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in slh_dsa_create_keypair() 74 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in slh_dsa_create_keypair() 75 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(lib_ctx, name, NULL)) in slh_dsa_create_keypair() 130 if (!TEST_ptr(key[0] = slh_dsa_key_from_data(td1->alg, td1->pub, td1->pub_len, 1)) in slh_dsa_key_eq_test() 131 || !TEST_ptr(key[1] = slh_dsa_key_from_data(td1->alg, td1->pub, td1->pub_len, 1)) in slh_dsa_key_eq_test() 132 || !TEST_ptr(key[2] = slh_dsa_key_from_data(td2->alg, td2->pub, td2->pub_len, 1)) in slh_dsa_key_eq_test() 133 || !TEST_ptr(key[3] = EVP_PKEY_dup(key[0]))) in slh_dsa_key_eq_test() 142 if (!TEST_ptr(eckey = EVP_PKEY_Q_keygen(lib_ctx, NULL, "EC", "P-256"))) in slh_dsa_key_eq_test() 162 if (!TEST_ptr(key = slh_dsa_key_from_data(td->alg, td->pub, td->pub_len, 1))) in slh_dsa_key_validate_test() [all …]
|
| H A D | evp_extra_test2.c | 1561 || !TEST_ptr(OSSL_PARAM_locate(keypair_params, privtag))) in do_pkey_tofrom_data_select() 1568 if (!TEST_ptr(fromctx = EVP_PKEY_CTX_new_from_name(mainctx, keytype, NULL)) in do_pkey_tofrom_data_select() 1608 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DHX", NULL)) in test_dh_tofrom_data_select() 1614 ret = ret && TEST_ptr(dhkey = EVP_PKEY_get0_DH(key)) in test_dh_tofrom_data_select() 1615 && TEST_ptr(privkey = DH_get0_priv_key(dhkey)) in test_dh_tofrom_data_select() 1636 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DH", NULL)) in test_dh_paramgen() 1640 && TEST_ptr(pkey); in test_dh_paramgen() 1645 ret = ret && TEST_ptr(gctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL)) in test_dh_paramgen() 1691 ret = TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(mainctx, "DH", NULL)) in test_dh_paramfromdata() 1722 if (TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "XOR"))) in test_new_keytype() [all …]
|
| H A D | crltest.c | 347 if (!TEST_ptr(ctx) in verify() 348 || !TEST_ptr(store) in verify() 349 || !TEST_ptr(param) in verify() 350 || !TEST_ptr(roots)) in verify() 425 r = TEST_ptr(basic_crl) in test_basic_crl() 426 && TEST_ptr(revoked_crl) in test_basic_crl() 452 r = TEST_ptr(bad_issuer_crl) in test_bad_issuer_crl() 466 r = TEST_ptr(empty_idp_crl) in test_crl_empty_idp() 480 r = TEST_ptr(known_critical_crl) in test_known_critical_crl() 494 r = TEST_ptr(unknown_critical_crl) in test_unknown_critical_crl() [all …]
|
| H A D | evp_pkey_provided_test.c | 98 if (!TEST_ptr(fullfile)) in compare_with_file() 102 if (!TEST_ptr(file)) in compare_with_file() 146 if (!TEST_ptr(membio)) in test_print_key_using_pem() 262 if (!TEST_ptr(membio)) in test_print_key_type_using_encoder() 267 if (!TEST_ptr(ctx = OSSL_ENCODER_CTX_new_for_pkey(pk, selection, in test_print_key_type_using_encoder() 384 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(NULL, "RSA", NULL))) in test_fromdata_rsa() 402 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, pk, ""))) in test_fromdata_rsa() 412 if (!TEST_ptr(copy_pk = EVP_PKEY_new()) in test_fromdata_rsa() 424 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_rsa() 469 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(NULL, "RSA", NULL)) in do_fromdata_rsa_derive() [all …]
|
| H A D | exptest.c | 55 if (!TEST_ptr(m = BN_new()) in test_mod_exp_zero() 56 || !TEST_ptr(a = BN_new()) in test_mod_exp_zero() 57 || !TEST_ptr(p = BN_new()) in test_mod_exp_zero() 58 || !TEST_ptr(r = BN_new())) in test_mod_exp_zero() 98 if (!TEST_ptr(mont = BN_MONT_CTX_new())) in test_mod_exp_zero() 164 if (!TEST_ptr(ctx = BN_CTX_new())) in test_mod_exp() 167 if (!TEST_ptr(r_mont = BN_new()) in test_mod_exp() 168 || !TEST_ptr(r_mont_const = BN_new()) in test_mod_exp() 169 || !TEST_ptr(r_recp = BN_new()) in test_mod_exp() 170 || !TEST_ptr(r_simple = BN_new()) in test_mod_exp() [all …]
|
| H A D | bio_enc_test.c | 54 if (!TEST_ptr(b)) in do_bio_cipher() 59 if (!TEST_ptr(mem)) in do_bio_cipher() 68 if (!TEST_ptr(b)) in do_bio_cipher() 75 if (!TEST_ptr(mem)) in do_bio_cipher() 107 if (!TEST_ptr(b)) in do_bio_cipher() 114 if (!TEST_ptr(mem)) in do_bio_cipher() 133 if (!TEST_ptr(b)) in do_bio_cipher() 139 if (!TEST_ptr(mem)) in do_bio_cipher() 163 if (!TEST_ptr(b)) in do_bio_cipher() 170 if (!TEST_ptr(mem)) in do_bio_cipher() [all …]
|
| H A D | cmp_vfy_test.c | 57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up() 165 || !TEST_ptr(fixture->msg = load_pkimsg(ip_waiting_f, libctx))) { in test_validate_msg_mac_alg_protection() 202 || !TEST_ptr(fixture->msg = load_pkimsg(ip_waiting_f, libctx))) { in test_validate_msg_mac_alg_protection_bad() 232 || !TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx)) in test_validate_msg_signature_partial_chain() 264 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx)) in test_validate_msg_signature_srvcert() 306 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_0_extracerts, libctx)) in test_validate_msg_signature_sender_cert_untrusted() 321 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_0_extracerts, libctx)) in test_validate_msg_signature_sender_cert_trusted() 335 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_2_extracerts, libctx)) in test_validate_msg_signature_sender_cert_extracert() 351 if (!TEST_ptr(fixture->msg = load_pkimsg(ir_protected_0_extracerts, libctx))) { in test_validate_msg_signature_sender_cert_absent() [all …]
|
| H A D | prov_config_test.c | 29 if (!TEST_ptr(ctx)) in test_double_config() 39 if (!TEST_ptr(sha256)) in test_double_config() 55 if (!TEST_ptr(ctx)) in test_recursive_config() 81 if (!TEST_ptr(module_path)) in test_path_config() 85 if (!TEST_ptr(full_path)) in test_path_config() 96 if (!TEST_ptr(pathedconfig)) in test_path_config() 100 if (!TEST_ptr(ctx)) in test_path_config() 107 if (!TEST_ptr(prov = OSSL_PROVIDER_load(ctx, "test"))) in test_path_config() 127 if (!TEST_ptr(configfile = test_get_argument(0))) in setup_tests() 130 if (!TEST_ptr(recurseconfigfile = test_get_argument(1))) in setup_tests() [all …]
|
| /src/crypto/openssl/test/testutil/ |
| H A D | load.c | 23 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file()))) in load_cert_pem() 26 && TEST_ptr(cert = X509_new_ex(libctx, NULL))) in load_cert_pem() 27 (void)TEST_ptr(cert = PEM_read_bio_X509(bio, &cert, NULL, NULL)); in load_cert_pem() 39 if (!TEST_ptr(file) || (bio = BIO_new_file(file, "r")) == NULL) in STACK_OF() 74 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file()))) in load_pkey_pem() 79 if (TEST_ptr(key = PEM_read_bio_PrivateKey_ex(bio, NULL, NULL, NULL, in load_pkey_pem() 97 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new_file(file, "rb"))) in load_csr_der() 101 if (TEST_ptr(csr)) in load_csr_der() 102 (void)TEST_ptr(d2i_X509_REQ_bio(bio, &csr)); in load_csr_der()
|