| /freebsd/crypto/openssl/test/ |
| H A D | x509_time_test.c | 449 static int test_X509_cmp_timeframe_vpm(const X509_VERIFY_PARAM *vpm, in test_X509_cmp_timeframe_vpm() argument 454 int always_0 = vpm != NULL in test_X509_cmp_timeframe_vpm() 455 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_USE_CHECK_TIME) == 0 in test_X509_cmp_timeframe_vpm() 456 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_NO_CHECK_TIME) != 0; in test_X509_cmp_timeframe_vpm() 459 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 460 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, NULL), 0) in test_X509_cmp_timeframe_vpm() 461 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 462 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, NULL), 0) in test_X509_cmp_timeframe_vpm() 463 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_after), in test_X509_cmp_timeframe_vpm() 465 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_before), in test_X509_cmp_timeframe_vpm() [all …]
|
| H A D | cmp_vfy_test.c | 237 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in test_validate_msg_signature_partial_chain() local 239 X509_VERIFY_PARAM_set_flags(vpm, X509_V_FLAG_PARTIAL_CHAIN); in test_validate_msg_signature_partial_chain() 241 X509_VERIFY_PARAM_set_time(vpm, test_time_after_expiration); in test_validate_msg_signature_partial_chain() 405 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in setup_path() local 407 X509_VERIFY_PARAM_set_time(vpm, test_time_after_expiration); in setup_path()
|
| /freebsd/crypto/openssl/apps/lib/ |
| H A D | opt.c | 721 int opt_verify(int opt, X509_VERIFY_PARAM *vpm) in opt_verify() argument 729 OPENSSL_assert(vpm != NULL); in opt_verify() 743 if (!X509_VERIFY_PARAM_add0_policy(vpm, otmp)) { in opt_verify() 764 if (!X509_VERIFY_PARAM_set_purpose(vpm, i)) { in opt_verify() 777 X509_VERIFY_PARAM_set1(vpm, vtmp); in opt_verify() 782 X509_VERIFY_PARAM_set_depth(vpm, i); in opt_verify() 787 X509_VERIFY_PARAM_set_auth_level(vpm, i); in opt_verify() 797 X509_VERIFY_PARAM_set_time(vpm, (time_t)t); in opt_verify() 800 if (!X509_VERIFY_PARAM_set1_host(vpm, opt_arg(), 0)) in opt_verify() 804 if (!X509_VERIFY_PARAM_set1_email(vpm, opt_arg(), 0)) in opt_verify() [all …]
|
| H A D | apps.c | 669 X509_VERIFY_PARAM *vpm) in warn_cert() argument 672 int res = X509_cmp_timeframe(vpm, X509_get0_notBefore(cert), in warn_cert() 682 X509_VERIFY_PARAM *vpm) in warn_certs() argument 687 warn_cert(uri, sk_X509_value(certs, i), warn_EE, vpm); in warn_certs() 693 X509_VERIFY_PARAM *vpm) in load_cert_certs() argument 711 warn_cert(uri, *pcert, 0, vpm); in load_cert_certs() 713 warn_certs(uri, *pcerts, 1, vpm); in load_cert_certs() 724 const char *desc, X509_VERIFY_PARAM *vpm) in STACK_OF() 737 if (!load_cert_certs(files, NULL, &certs, 0, pass, desc, vpm)) in STACK_OF() 779 X509_VERIFY_PARAM *vpm) in load_certstore() argument [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | SSL_CTX_get0_param.pod | 15 int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); 16 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm); 31 to B<vpm> for B<ctx> or B<ssl>. 60 X509_VERIFY_PARAM *vpm = SSL_get0_param(ssl); 61 X509_VERIFY_PARAM_set1_host(vpm, "www.foo.com", 0);
|
| H A D | X509_cmp_time.pod | 13 int X509_cmp_timeframe(const X509_VERIFY_PARAM *vpm, 29 included in the verification parameters I<vpm> if they are not NULL and contain 64 X509_cmp_timeframe() returns 0 if I<vpm> is not NULL and the verification
|
| /freebsd/crypto/openssl/apps/ |
| H A D | ts.c | 66 char *untrusted, X509_VERIFY_PARAM *vpm); 72 X509_VERIFY_PARAM *vpm); 74 const char *CAstore, X509_VERIFY_PARAM *vpm); 196 X509_VERIFY_PARAM *vpm = NULL; in ts_main() local 202 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in ts_main() 307 if (!opt_verify(o, vpm)) in ts_main() 363 vpmtouched ? vpm : NULL); in ts_main() 369 X509_VERIFY_PARAM_free(vpm); in ts_main() 877 X509_VERIFY_PARAM *vpm) in verify_command() argument 897 vpm)) in verify_command() [all …]
|
| H A D | verify.c | 97 X509_VERIFY_PARAM *vpm = NULL; in verify_main() local 103 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in verify_main() 135 if (!opt_verify(o, vpm)) in verify_main() 227 X509_STORE_set1_param(store, vpm); in verify_main() 249 X509_VERIFY_PARAM_free(vpm); in verify_main()
|
| H A D | smime.c | 205 X509_VERIFY_PARAM *vpm = NULL; in smime_main() local 222 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in smime_main() 424 if (!opt_verify(o, vpm)) in smime_main() 609 X509_STORE_set1_param(store, vpm); in smime_main() 728 X509_VERIFY_PARAM_free(vpm); in smime_main()
|
| H A D | ocsp.c | 275 X509_VERIFY_PARAM *vpm = NULL; in ocsp_main() local 301 || (vpm = X509_VERIFY_PARAM_new()) == NULL) in ocsp_main() 449 if (!opt_verify(o, vpm)) in ocsp_main() 851 X509_STORE_set1_param(store, vpm); in ocsp_main() 899 X509_VERIFY_PARAM_free(vpm); in ocsp_main()
|
| H A D | cmp.c | 228 static X509_VERIFY_PARAM *vpm = NULL; variable 1083 X509_STORE *ts = load_certstore(input, opt_otherpass, desc, vpm); in load_trusted() 1090 if (X509_STORE_set1_param(ts, vpm /* may be NULL */) in load_trusted() 1124 if ((certs = load_certs_multifile(files, opt_otherpass, desc, vpm)) == NULL) in setup_certs() 1471 vpm)) in setup_ssl_ctx() 1527 vpm); in setup_ssl_ctx() 1654 vpm)) in setup_protection_ctx() 2809 : !opt_verify(opt_next(), vpm)) { in read_config() 3020 if (!opt_verify(o, vpm)) in get_opts() 3675 vpm = X509_VERIFY_PARAM_new(); in cmp_main() [all …]
|
| H A D | cms.c | 358 X509_VERIFY_PARAM *vpm = X509_VERIFY_PARAM_new(); in cms_main() local 384 if (encerts == NULL || vpm == NULL) in cms_main() 750 if (!opt_verify(o, vpm)) in cms_main() 1042 X509_STORE_set1_param(store, vpm); in cms_main() 1359 X509_VERIFY_PARAM_free(vpm); in cms_main()
|
| H A D | s_server.c | 1121 X509_VERIFY_PARAM *vpm = NULL; in s_server_main() local 1215 vpm = X509_VERIFY_PARAM_new(); in s_server_main() 1216 if (port == NULL || cctx == NULL || vpm == NULL) in s_server_main() 1449 if (!opt_verify(o, vpm)) in s_server_main() 2136 if (vpmtouched && !SSL_CTX_set1_param(ctx, vpm)) { in s_server_main() 2199 if (vpmtouched && !SSL_CTX_set1_param(ctx2, vpm)) { in s_server_main() 2461 X509_VERIFY_PARAM_free(vpm); in s_server_main()
|
| H A D | s_client.c | 937 X509_VERIFY_PARAM *vpm = NULL; in s_client_main() local 1066 vpm = X509_VERIFY_PARAM_new(); in s_client_main() 1069 if (port == NULL || vpm == NULL || cctx == NULL) { in s_client_main() 1220 if (!opt_verify(o, vpm)) in s_client_main() 1936 if (vpmtouched && !SSL_CTX_set1_param(ctx, vpm)) { in s_client_main() 3407 X509_VERIFY_PARAM_free(vpm); in s_client_main()
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | x509_vpm.c | 36 static int int_x509_param_set_hosts(X509_VERIFY_PARAM *vpm, int mode, in int_x509_param_set_hosts() argument 54 sk_OPENSSL_STRING_pop_free(vpm->hosts, str_free); in int_x509_param_set_hosts() 55 vpm->hosts = NULL; in int_x509_param_set_hosts() 64 if (vpm->hosts == NULL && (vpm->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts() 69 if (!sk_OPENSSL_STRING_push(vpm->hosts, copy)) { in int_x509_param_set_hosts() 71 if (sk_OPENSSL_STRING_num(vpm->hosts) == 0) { in int_x509_param_set_hosts() 72 sk_OPENSSL_STRING_free(vpm->hosts); in int_x509_param_set_hosts() 73 vpm->hosts = NULL; in int_x509_param_set_hosts()
|
| H A D | x509_vfy.c | 902 static int check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) in check_hosts() argument 905 int n = sk_OPENSSL_STRING_num(vpm->hosts); in check_hosts() 908 if (vpm->peername != NULL) { in check_hosts() 909 OPENSSL_free(vpm->peername); in check_hosts() 910 vpm->peername = NULL; in check_hosts() 913 name = sk_OPENSSL_STRING_value(vpm->hosts, i); in check_hosts() 914 if (X509_check_host(x, name, 0, vpm->hostflags, &vpm->peername) > 0) in check_hosts() 922 X509_VERIFY_PARAM *vpm = ctx->param; in check_id() local 925 if (vpm->hosts != NULL && check_hosts(x, vpm) <= 0) { in check_id() 929 if (vpm->email != NULL in check_id() [all …]
|
| H A D | t_x509.c | 456 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in X509_STORE_CTX_print_verify_cb() local 463 while ((str = X509_VERIFY_PARAM_get0_host(vpm, idx++)) != NULL) in X509_STORE_CTX_print_verify_cb() 468 str = X509_VERIFY_PARAM_get0_email(vpm); in X509_STORE_CTX_print_verify_cb() 473 str = X509_VERIFY_PARAM_get1_ip_asc(vpm); in X509_STORE_CTX_print_verify_cb()
|
| /freebsd/crypto/openssl/crypto/cmp/ |
| H A D | cmp_genm.c | 36 int type_CA, const X509_VERIFY_PARAM *vpm) in ossl_X509_check() argument 39 int res = X509_cmp_timeframe(vpm, X509_get0_notBefore(cert), in ossl_X509_check() 42 OSSL_CMP_severity level = vpm == NULL ? OSSL_CMP_LOG_WARNING : OSSL_CMP_LOG_ERR; in ossl_X509_check() 62 int type_CA, const X509_VERIFY_PARAM *vpm) in ossl_X509_check_all() argument 69 sk_X509_value(certs, i), type_CA, vpm) in ossl_X509_check_all() 256 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in verify_ss_cert_trans() local 260 if (!X509_STORE_set1_param(ts, vpm) in verify_ss_cert_trans()
|
| H A D | cmp_vfy.c | 255 X509_VERIFY_PARAM *vpm = ts != NULL ? X509_STORE_get0_param(ts) : NULL; in cert_acceptable() local 276 time_cmp = X509_cmp_timeframe(vpm, X509_get0_notBefore(cert), in cert_acceptable()
|
| /freebsd/crypto/openssl/apps/include/ |
| H A D | apps.h | 145 X509_VERIFY_PARAM *vpm); 147 const char *desc, X509_VERIFY_PARAM *vpm); 149 X509_VERIFY_PARAM *vpm);
|
| H A D | opt.h | 439 int opt_verify(int i, X509_VERIFY_PARAM *vpm);
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | map | 45 # 1st fat name "DLLINFO TXT" only found for vpm 48 !:ext vpm 49 # Deutsch__Yannick_D4481-00_0210.vpm 148 # 314 zeros but not in vpm and also gmaptz.img
|
| H A D | audio | 884 !:mime audio/x-vpm-wav-garmin 885 !:ext vpm 930 !:mime audio/x-vpm-garmin 931 !:ext vpm
|
| /freebsd/crypto/openssl/crypto/crmf/ |
| H A D | crmf_lib.c | 676 X509_VERIFY_PARAM *vpm; in OSSL_CRMF_ENCRYPTEDKEY_get1_pkey() local 719 if ((vpm = X509_STORE_get0_param(ts)) == NULL) in OSSL_CRMF_ENCRYPTEDKEY_get1_pkey() 723 bak_purpose_id = X509_VERIFY_PARAM_get_purpose(vpm); in OSSL_CRMF_ENCRYPTEDKEY_get1_pkey()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | R600InstrFormats.td | 490 bits<1> vpm; 499 let Word1{20} = vpm;
|