/openssl/test/recipes/ |
H A D | 25-test_verify.t | 35 ok(verify("ee-cert", "sslserver", ["root-cert"], ["ca-cert"]), 324 ok(!verify("ee-cert-768", "", ["root-cert"], ["ca-cert"]), 333 ok(!verify("ee-cert", "", ["root-cert"], ["ca-cert-md5"]), 337 ok(!verify("ee-cert-md5", "", ["root-cert"], ["ca-cert"]), 344 ok(!verify("ee-cert-ec-explicit", "", ["root-cert"], 350 ok(verify("ee-cert-ec-named-named", "", ["root-cert"], 392 ok(!verify("ee-cert-ec-explicit", "", ["root-cert"], 521 ok(verify("ee-ed25519", "", ["root-ed25519"], []), 527 ok(!verify("root-ed25519", "", ["ee-ed25519"], []), 530 ok(verify("root-ed25519", "", ["root-ed25519"], []), [all …]
|
H A D | 20-test_speed.t | 22 ok(run(app(['openssl', 'speed', '-testmode'])), 34 ok(run(app(['openssl', 'speed', '-testmode', '-multi', 2])), 38 ok(run(app(['openssl', 'speed', '-testmode', '-misalign', 1])), 64 ok(run(app(['openssl', 'speed', '-testmode', '-mr'])), 116 ok(run(app(['openssl', 'speed', '-help'])), 120 ok(!run(app(['openssl', 'speed', 'blah'])), 123 ok(!run(app(['openssl', 'speed', '-evp', 'blah'])), 126 ok(!run(app(['openssl', 'speed', '-hmac', 'blah'])), 129 ok(!run(app(['openssl', 'speed', '-cmac', 'blah'])), 132 ok(!run(app(['openssl', 'speed', '-async_jobs', 100000])), [all …]
|
H A D | 03-test_fipsinstall.t | 176 ok(find_line_file('install-mac = ', 'fips.cnf') == 1, 207 ok(replace_line_file('module-mac', '00:00:00:00:00:00', 355 ok(replace_parent_line_file('fips.cnf', 'fips_parent.cnf') 359 ok(replace_parent_line_file('fips_no_module_mac.cnf', 371 ok(replace_parent_line_file('fips_no_install_mac.cnf', 377 ok(replace_parent_line_file('fips_bad_indicator.cnf', 391 ok(replace_parent_line_file('fips_bad_module_mac.cnf', 405 ok(run(app(['openssl', 'fipsinstall', '-out', $stconf, 413 ok(run(app(['openssl', 'fipsinstall', '-in', $stconf, 466 ok(find_line_file("${l} = 0", 'fips.cnf') == 1, [all …]
|
H A D | 80-test_pkcs12.t | 73 ok(run(app(["openssl", "pkcs12", "-noout", 100 ok(run(app(["openssl", "pkcs12", "-export", 113 ok(run(app(["openssl", "pkcs12", "-export", 124 ok(run(app(["openssl", "pkcs12", "-export", 135 ok(run(app(["openssl", "pkcs12", 307 ok(run(test(["pkcs12_api_test", 315 ok(run(test(["pkcs12_api_test", 325 ok(run(test(["pkcs12_api_test", 332 ok(run(test(["pkcs12_api_test", 340 ok(run(test(["pkcs12_api_test", [all …]
|
H A D | 25-test_req.t | 73 ok(run(app(["openssl", "req", 80 ok(run(app(["openssl", "req", 85 ok(run(app(["openssl", "req", 108 ok(run(app(["openssl", "req", 115 ok(run(app(["openssl", "req", 120 ok(run(app(["openssl", "req", 125 ok(run(app(["openssl", "req", 362 ok(run(app(["openssl", "req", 373 ok(run(app(["openssl", "req", 385 ok(run(app(["openssl", "req", [all …]
|
H A D | 80-test_ssl_old.t | 163 ok(replace_kv_file($fipsmodcfg, 190 ok(run(app([@reqcmd, "-config", $cnf, 203 ok(run(app([@x509cmd, "-in", $CAcert, 239 ok(run(app([@x509cmd, 280 ok(run(app([@x509cmd, 327 ok(run(app([@x509cmd, 353 ok(run(app([@x509cmd, 380 ok(run(app([@x509cmd, 477 ok(run(test([@ssltest, "-ipv4"])), 568 ok(1); [all …]
|
H A D | 15-test_rsapss.t | 22 ok(run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha1', 30 ok(run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha1', 36 ok(!run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha512', 52 ok(run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'), 61 ok(run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'), 70 ok(run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'), 79 ok(run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'), 115 ok(run(app(['openssl', 'genpkey', '-algorithm', 'RSA-PSS', 120 ok(run(app(['openssl', 'rsa', '-check', 124 ok(!run(app([ 'openssl', 'rsa', [all …]
|
H A D | 15-test_gendsa.t | 33 ok(run(app([ 'openssl', 'genpkey', '-genparam', 40 ok(run(app([ 'openssl', 'genpkey', '-genparam', 89 ok(run(app([ 'openssl', 'genpkey', 97 ok(run(app([ 'openssl', 'genpkey', 106 ok(!run(app([ 'openssl', 'genpkey', 114 ok(!run(app(["openssl", "gendsa", 119 ok(run(app([ 'openssl', 'dsaparam', 126 ok(run(app([ 'openssl', 'dsaparam', 133 ok(run(app([ 'openssl', 'dsaparam', 140 ok(run(app([ 'openssl', 'dsaparam', [all …]
|
H A D | 20-test_cli_fips.t | 67 ok(run(app(['openssl', 'pkey', 92 ok(run(app(['openssl', 'dgst', '-sha256', 100 ok(run(app(['openssl', 'dgst', '-sha256', 109 ok(!run(app(['openssl', 'dgst', '-sha256', 125 ok(run(app(['openssl', 'dgst', '-sha256', 134 ok(run(app(['openssl', 'dgst', '-sha256', 145 ok(!run(app(['openssl', 'dgst', '-sha256', 163 ok(run(app(['openssl', 'dgst', 353 ok(run(app(['openssl', 'genpkey', 365 ok(run(app(['openssl', 'genpkey', [all …]
|
H A D | 80-test_tsa.t | 45 ok(run(app(["openssl", "x509", "-req", 122 unless ok(run(app([@QUERY, "-data", $testtsa, 148 ok(run(app([@REPLY, "-in", "resp1.tsr", 153 ok(run(app([@VERIFY, "-data", $testtsa, 177 ok(run(app([@REPLY, "-in", "resp2.tsr", 179 ok(run(app([@REPLY, "-in", "$TOKEN_DER", 182 ok(run(app([@REPLY, "-in", "resp2.tsr", 184 ok(run(app([@REPLY, "-in", "$TOKEN_DER", 222 unless ok(run(app([@QUERY, "-data", $CAtsa, 237 ok(run(app([@VERIFY, "-no_check_time", [all …]
|
H A D | 15-test_genrsa.t | 66 ok(run(app([ 'openssl', 'genpkey', '-algorithm', 'RSA', 74 ok(run(app([ 'openssl', 'genpkey', '-algorithm', 'RSA', 81 ok(!run(app([ 'openssl', 'genpkey', '-algorithm', 'RSA', 85 ok(!run(app([ 'openssl', 'genpkey', '-algorithm', 'RSA', 89 ok(!run(app([ 'openssl', 'genpkey', '-propquery', 'unknown', 102 ok(run(app([ 'openssl', 'genrsa', '-f4', '-out', 'genrsatest.pem', $good ])), 112 ok(run(app(([ 'openssl', 'asn1parse', 126 ok(run(app(['openssl', 'genpkey', 132 ok(run(app(['openssl', 'genpkey', 139 ok(!run(app(['openssl', 'genrsa', @prov, '512'])), [all …]
|
H A D | 25-test_d2i.t | 21 ok(run(test(["d2i_test", "X509", "decode", 25 ok(run(test(["d2i_test", "GENERAL_NAME", "decode", 29 ok(run(test(["d2i_test", "ASN1_ANY", "BIO", 38 ok(run(test(["d2i_test", "ASN1_ANY", "OK", 44 ok(run(test(["d2i_test", "ASN1_INTEGER", "decode", 50 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK", 54 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK", 58 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK", 62 ok(run(test(["d2i_test", "ASN1_ANY", "OK", 66 ok(run(test(["d2i_test", "ASN1_ANY", "OK", [all …]
|
H A D | 20-test_dhparam.t | 58 ok($format eq "DER", "Checking format is DER"); 73 ok(($type eq $pemtype) && ($type eq $readtype), 79 ok($bits == $readbits, "Checking number of bits is $bits"); 93 ok((grep { (index($_, $keybits_line) + length($keybits_line)) 136 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-pkcs3-2-512.pem', 163 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-0-512.pem', 181 ok(run(app([ 'openssl', 'dhparam', '-out', 'gen-x942-0-512.der', 192 ok(!run(app(['openssl', 'dhparam', '-check', '512'])), 216 ok(run(app(["openssl", "dhparam", "-noout", "-text"], 222 ok(run(app(['openssl', 'dhparam', '-in', $inout, '-out', $inout])), [all …]
|
H A D | 25-test_x509.t | 90 ok(get_issuer($caout_issu) =~ /CN=TEST-CA/); 424 ok(get_issuer($a2_cert) =~ /CN=ca.example.com/); 448 ok(get_issuer($b_cert) =~ /CN=ca.example.com/); 458 ok(mkdir $folder_with_dot); 460 ok(copy($ca_cert,$ca_cert_dot_in_dir)); 466 ok(-e $ca_serial_dot_in_dir); 471 ok(run(app(["openssl", "x509", "-req", "-text", 480 ok(run(app(["openssl", "x509", "-req", "-text", 491 ok(run(app(["openssl", "x509", "-req", "-text", 500 ok(!run(app(["openssl", "x509", "-req", "-text", [all …]
|
H A D | 90-test_store.t | 193 ok(!run(app([@storeutl, "-noout", 206 ok(run(app([@storeutl, "-noout", 208 ok(run(app([@storeutl, "-noout", 210 ok(run(app([@storeutl, "-noout", 212 ok(!run(app([@storeutl, "-noout", 265 ok(run(app([@storeutl, "-noout", 270 ok(!run(app([@storeutl, '-noout', 282 ok(run(app([@storeutl, '-crls', '-noout', 285 ok(run(app([@storeutl, '-crls', '-noout', 296 ok(run(app([@storeutl, '-noout', [all …]
|
H A D | 20-test_dgst.t | 33 ok(run(app(['openssl', 'dgst', '-sign', $privkey, 38 ok(run(app(['openssl', 'dgst', '-prverify', $privkey, 43 ok(run(app(['openssl', 'dgst', '-verify', $pubkey, 48 ok(!run(app(['openssl', 'dgst', '-verify', $pubkey, 65 ok(run(app(['openssl', 'sha512', '-sign', $privkey, 70 ok(run(app(['openssl', 'sha512', '-verify', $pubkey, 178 ok($hmacdata[1] =~ $expected, 192 ok($hmacdata[1] =~ $expected, 207 ok($hmacdata[1] =~ $expected, 221 ok($xofdata[1] =~ $expected, [all …]
|
H A D | 25-test_pkcs8.t | 28 ok(run(app(['openssl', 'pkcs8', '-in', $inout, 34 ok(run(app(([ 'openssl', 'pkcs8', '-topk8', 42 ok(run(app(([ 'openssl', 'asn1parse', 51 ok(run(app(([ 'openssl', 'pkcs8', '-topk8', 60 ok(run(app(([ 'openssl', 'asn1parse', 65 ok(run(app(([ 'openssl', 'pkcs8', '-topk8', 75 ok(run(app(([ 'openssl', 'asn1parse', 94 ok(run(app(([ 'openssl', 'asn1parse', 109 ok(run(app(([ 'openssl', 'asn1parse', 116 ok(run(app(([ 'openssl', 'pkcs8', '-topk8', [all …]
|
H A D | 25-test_eai_data.t | 45 ok(run(app(["openssl", "x509", "-ext", "subjectAltName", "-in", $ascii_pem, "-noout", "-out", $out]… 49 ok(run(app(["openssl", "x509", "-ext", "subjectAltName", "-in", $utf8_pem, "-noout", "-out", $out])… 59 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $ascii_chain_pem,… 60 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $utf8_chain_pem, … 61 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $kdc_chain_pem, $… 63 ok(!run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $ascii_chain_pem… 64 ok(!run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-CAfile", $utf8_chain_pem,… 67 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-verify_hostname", 'mx1.exa… 69 ok(run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-verify_email", 'joe@exampl… 71 ok(!run(app(["openssl", "verify", "-nameopt", "utf8", "-no_check_time", "-verify_email", 'moe@examp… [all …]
|
H A D | 15-test_pkey.t | 32 ok(run(app([@app, '-aes256', '-in', $in_key, '-out', $encrypted_key, 36 ok(run(app(['openssl', 'asn1parse', '-in', $encrypted_key, 40 ok(run(app([@app, '-in', $encrypted_key, '-out', $decrypted_key, 59 ok(file_line_contains("DEK-Info: DES-EDE3-CBC,", $inout), 62 ok(run(app([@app, '-in', $inout, '-out', $inout, '-passin', $pass])), 76 ok(run(app([@app, '-in', $in_ed_key, '-pubout', '-out', $pub_out1])), 100 ok(run(app([@app, '-in', $in_key, '-outform', 'DER', 108 ok(run(app([@app, '-in', $der_out, '-inform', 'DER', 118 ok((grep /BEGIN PRIVATE KEY/, 122 ok(!(grep /BEGIN PRIVATE KEY/, [all …]
|
H A D | 15-test_mp_rsa.t | 40 ok(run(test(["rsa_mp_test"])), "running rsa multi prime test"); 42 ok(run(app(['openssl', 'pkey', '-noout', '-check', '-in', 61 ok(run(app([ 'openssl', 'genpkey', '-out', "rsamptest-$name.pem", 66 ok(run(app([ 'openssl', 'pkey', '-check', 69 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem", 73 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem", 78 ok(run(app([ 'openssl', 'genrsa', '-out', "rsamptest-$name.pem", 80 ok(run(app([ 'openssl', 'rsa', '-check', 84 ok(run(app([ 'openssl', 'rsautl', '-inkey', "rsamptest-$name.pem", 88 ok(run(app([ 'openssl', 'rsautl', '-inkey', "rsamptest-$name.pem", [all …]
|
H A D | 20-test_pkeyutl.t | 61 ok(run(app(([ 'openssl', 'pkeyutl', '-sign', '-in', 66 ok(run(app(([ 'openssl', 'pkeyutl', '-verify', '-certin', '-in', 76 ok(run(app(([ 'openssl', 'pkeyutl', '-sign', '-in', 81 ok(run(app(([ 'openssl', 'pkeyutl', '-verify', '-certin', '-in', 86 ok(run(app(([ 'openssl', 'pkeyutl', '-sign', '-in', 91 ok(run(app(([ 'openssl', 'pkeyutl', '-verify', '-certin', '-in', 117 ok(run(app([@args])), 126 ok(!run(app([@args])), 134 ok(run(app([@args])), 143 ok(run(app([@args])), [all …]
|
/openssl/crypto/ |
H A D | params_from_text.c | 224 int ok = -1; in OSSL_PARAM_print_to_bio() local 231 ok = -1; in OSSL_PARAM_print_to_bio() 232 ok = BIO_printf(bio, "%s: ", p->key); in OSSL_PARAM_print_to_bio() 234 if (ok == -1) in OSSL_PARAM_print_to_bio() 250 ok = BN_print(bio, bn); in OSSL_PARAM_print_to_bio() 263 ok = BN_print(bio, bn); in OSSL_PARAM_print_to_bio() 298 if (ok == -1) in OSSL_PARAM_print_to_bio() 303 return ok == -1 ? 0 : 1; in OSSL_PARAM_print_to_bio() 316 int ok = 0; in OSSL_PARAM_allocate_from_text() local 331 if (!ok) in OSSL_PARAM_allocate_from_text() [all …]
|
/openssl/providers/implementations/storemgmt/ |
H A D | file_store_any2obj.c | 64 int ok = 1; in any2obj_decode_final() local 79 return ok; in any2obj_decode_final() 89 int ok; in der2obj_decode() local 120 int ok = 0; in msblob2obj_decode() local 136 if (!ok) in msblob2obj_decode() 144 if (!ok) in msblob2obj_decode() 147 ok = 0; in msblob2obj_decode() 187 int ok = 0; in pvk2obj_decode() local 203 if (!ok) in pvk2obj_decode() 211 if (!ok) in pvk2obj_decode() [all …]
|
/openssl/crypto/x509/ |
H A D | by_store.c | 20 int ok = 0; in cache_objects() local 58 ok = 0; in cache_objects() 87 if (!ok) in cache_objects() 92 return ok; in cache_objects() 150 int ok = 0; in by_store() local 156 if (ok) in by_store() 159 return ok; in by_store() 175 if (ok) in by_store_subject_ex() 178 ok = 0; in by_store_subject_ex() 201 if (ok) in by_store_subject_ex() [all …]
|
/openssl/test/ |
H A D | provider_fallback_test.c | 19 int ok; in test_provider() local 21 ok = TEST_true(OSSL_PROVIDER_available(ctx, "default")) in test_provider() 27 return ok; in test_provider() 39 int ok; in test_explicit_provider() local 41 ok = TEST_ptr(ctx = OSSL_LIB_CTX_new()) in test_explicit_provider() 44 if (ok) { in test_explicit_provider() 45 ok = test_provider(ctx); in test_explicit_provider() 46 if (ok) in test_explicit_provider() 47 ok = TEST_true(OSSL_PROVIDER_unload(prov)); in test_explicit_provider() 53 return ok; in test_explicit_provider()
|