| /netbsd-src/crypto/external/bsd/openssl.old/dist/apps/ |
| H A D | opt.c | 453 int opt_verify(int opt, X509_VERIFY_PARAM *vpm) in opt_verify() argument 461 assert(vpm != NULL); in opt_verify() 475 X509_VERIFY_PARAM_add0_policy(vpm, otmp); in opt_verify() 491 if (!X509_VERIFY_PARAM_set_purpose(vpm, i)) { in opt_verify() 505 X509_VERIFY_PARAM_set1(vpm, vtmp); in opt_verify() 510 X509_VERIFY_PARAM_set_depth(vpm, i); in opt_verify() 515 X509_VERIFY_PARAM_set_auth_level(vpm, i); in opt_verify() 525 X509_VERIFY_PARAM_set_time(vpm, (time_t)t); in opt_verify() 528 if (!X509_VERIFY_PARAM_set1_host(vpm, opt_arg(), 0)) in opt_verify() 532 if (!X509_VERIFY_PARAM_set1_email(vpm, opt_arg(), 0)) in opt_verify() [all …]
|
| H A D | ts.c | 67 X509_VERIFY_PARAM *vpm); 72 X509_VERIFY_PARAM *vpm); 74 X509_VERIFY_PARAM *vpm); 165 X509_VERIFY_PARAM *vpm = NULL; in ts_main() local 171 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in ts_main() 267 if (!opt_verify(o, vpm)) in ts_main() 313 vpmtouched ? vpm : NULL); in ts_main() 319 X509_VERIFY_PARAM_free(vpm); in ts_main() 821 X509_VERIFY_PARAM *vpm) in verify_command() argument 841 vpm)) == NULL) in verify_command() [all …]
|
| H A D | verify.c | 69 X509_VERIFY_PARAM *vpm = NULL; in verify_main() local 75 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in verify_main() 106 if (!opt_verify(o, vpm)) in verify_main() 177 X509_STORE_set1_param(store, vpm); in verify_main() 196 X509_VERIFY_PARAM_free(vpm); in verify_main()
|
| H A D | smime.c | 121 X509_VERIFY_PARAM *vpm = NULL; in smime_main() local 137 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in smime_main() 315 if (!opt_verify(o, vpm)) in smime_main() 480 X509_STORE_set1_param(store, vpm); in smime_main() 599 X509_VERIFY_PARAM_free(vpm); in smime_main()
|
| H A D | cms.c | 201 X509_VERIFY_PARAM *vpm = NULL; in cms_main() local 221 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in cms_main() 563 if (!opt_verify(o, vpm)) in cms_main() 804 X509_STORE_set1_param(store, vpm); in cms_main() 1084 X509_VERIFY_PARAM_free(vpm); in cms_main()
|
| H A D | ocsp.c | 245 X509_VERIFY_PARAM *vpm = NULL; in ocsp_main() local 270 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in ocsp_main() 398 if (!opt_verify(o, vpm)) in ocsp_main() 760 X509_STORE_set1_param(store, vpm); in ocsp_main() 807 X509_VERIFY_PARAM_free(vpm); in ocsp_main()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | x509_time_test.c | 300 static int test_X509_cmp_timeframe_vpm(const X509_VERIFY_PARAM *vpm, in test_X509_cmp_timeframe_vpm() argument 305 int always_0 = vpm != NULL in test_X509_cmp_timeframe_vpm() 306 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_USE_CHECK_TIME) == 0 in test_X509_cmp_timeframe_vpm() 307 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_NO_CHECK_TIME) != 0; in test_X509_cmp_timeframe_vpm() 310 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 311 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, NULL), 0) in test_X509_cmp_timeframe_vpm() 312 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 313 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, NULL), 0) in test_X509_cmp_timeframe_vpm() 314 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_after), in test_X509_cmp_timeframe_vpm() 316 && 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 | 229 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in test_validate_msg_signature_partial_chain() local 230 X509_VERIFY_PARAM_set_flags(vpm, X509_V_FLAG_PARTIAL_CHAIN); in test_validate_msg_signature_partial_chain() 232 X509_VERIFY_PARAM_set_time(vpm, test_time_after_expiration); in test_validate_msg_signature_partial_chain() 390 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in setup_path() local 391 X509_VERIFY_PARAM_set_time(vpm, test_time_after_expiration); in setup_path()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
| H A D | SSL_CTX_get0_param.pod | 14 int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm) 15 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm) 24 to B<vpm> for B<ctx> or B<ssl>. 44 X509_VERIFY_PARAM *vpm = SSL_get0_param(ssl); 45 X509_VERIFY_PARAM_set1_host(vpm, "www.foo.com", 0);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/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 53 sk_OPENSSL_STRING_pop_free(vpm->hosts, str_free); in int_x509_param_set_hosts() 54 vpm->hosts = NULL; in int_x509_param_set_hosts() 63 if (vpm->hosts == NULL && in int_x509_param_set_hosts() 64 (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 | 740 static int check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) in check_hosts() argument 743 int n = sk_OPENSSL_STRING_num(vpm->hosts); in check_hosts() 746 if (vpm->peername != NULL) { in check_hosts() 747 OPENSSL_free(vpm->peername); in check_hosts() 748 vpm->peername = NULL; in check_hosts() 751 name = sk_OPENSSL_STRING_value(vpm->hosts, i); in check_hosts() 752 if (X509_check_host(x, name, 0, vpm->hostflags, &vpm->peername) > 0) in check_hosts() 760 X509_VERIFY_PARAM *vpm = ctx->param; in check_id() local 762 if (vpm->hosts && check_hosts(x, vpm) <= 0) { in check_id() 766 if (vpm->email && X509_check_email(x, vpm->email, vpm->emaillen, 0) <= 0) { in check_id() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/ |
| H A D | ts.c | 68 char *untrusted, X509_VERIFY_PARAM *vpm); 74 X509_VERIFY_PARAM *vpm); 76 const char *CAstore, X509_VERIFY_PARAM *vpm); 175 X509_VERIFY_PARAM *vpm = NULL; in ts_main() local 181 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in ts_main() 283 if (!opt_verify(o, vpm)) in ts_main() 339 vpmtouched ? vpm : NULL); in ts_main() 345 X509_VERIFY_PARAM_free(vpm); in ts_main() 853 X509_VERIFY_PARAM *vpm) in verify_command() argument 873 vpm)) == NULL) in verify_command() [all …]
|
| H A D | verify.c | 86 X509_VERIFY_PARAM *vpm = NULL; in verify_main() local 92 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in verify_main() 124 if (!opt_verify(o, vpm)) in verify_main() 215 X509_STORE_set1_param(store, vpm); in verify_main() 235 X509_VERIFY_PARAM_free(vpm); in verify_main()
|
| H A D | cmp.c | 196 static X509_VERIFY_PARAM *vpm = NULL; variable 935 X509_STORE *ts = load_certstore(input, opt_otherpass, desc, vpm); in load_trusted() 942 if (X509_STORE_set1_param(ts, vpm /* may be NULL */) in load_trusted() 961 if ((certs = load_certs_multifile(files, opt_otherpass, desc, vpm)) == NULL) in setup_certs() 1279 vpm)) in setup_ssl_ctx() 1336 vpm); in setup_ssl_ctx() 1458 vpm)) in setup_protection_ctx() 2276 : !opt_verify(opt_next(), vpm)) { in read_config() 2460 if (!opt_verify(o, vpm)) in get_opts() 2822 vpm = X509_VERIFY_PARAM_new(); in cmp_main() [all …]
|
| H A D | ocsp.c | 235 X509_VERIFY_PARAM *vpm = NULL; in ocsp_main() local 261 || (vpm = X509_VERIFY_PARAM_new()) == NULL) in ocsp_main() 408 if (!opt_verify(o, vpm)) in ocsp_main() 805 X509_STORE_set1_param(store, vpm); in ocsp_main() 853 X509_VERIFY_PARAM_free(vpm); in ocsp_main()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 && in int_x509_param_set_hosts() 65 (vpm->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts() 70 if (!sk_OPENSSL_STRING_push(vpm->hosts, copy)) { in int_x509_param_set_hosts() 72 if (sk_OPENSSL_STRING_num(vpm->hosts) == 0) { in int_x509_param_set_hosts() 73 sk_OPENSSL_STRING_free(vpm->hosts); in int_x509_param_set_hosts() 74 vpm->hosts = NULL; in int_x509_param_set_hosts()
|
| H A D | x509_vfy.c | 770 static int check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) in check_hosts() argument 773 int n = sk_OPENSSL_STRING_num(vpm->hosts); in check_hosts() 776 if (vpm->peername != NULL) { in check_hosts() 777 OPENSSL_free(vpm->peername); in check_hosts() 778 vpm->peername = NULL; in check_hosts() 781 name = sk_OPENSSL_STRING_value(vpm->hosts, i); in check_hosts() 782 if (X509_check_host(x, name, 0, vpm->hostflags, &vpm->peername) > 0) in check_hosts() 790 X509_VERIFY_PARAM *vpm = ctx->param; in check_id() local 793 if (vpm->hosts != NULL && check_hosts(x, vpm) <= 0) { in check_id() 797 if (vpm->email != NULL in check_id() [all …]
|
| H A D | t_x509.c | 479 X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts); in X509_STORE_CTX_print_verify_cb() local 486 while ((str = X509_VERIFY_PARAM_get0_host(vpm, idx++)) != NULL) in X509_STORE_CTX_print_verify_cb() 491 str = X509_VERIFY_PARAM_get0_email(vpm); in X509_STORE_CTX_print_verify_cb() 496 str = X509_VERIFY_PARAM_get1_ip_asc(vpm); in X509_STORE_CTX_print_verify_cb()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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
|
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/include/ |
| H A D | apps.h | 134 X509_VERIFY_PARAM *vpm); 136 const char *desc, X509_VERIFY_PARAM *vpm); 138 X509_VERIFY_PARAM *vpm);
|
| H A D | opt.h | 388 int opt_verify(int i, X509_VERIFY_PARAM *vpm);
|
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/lib/ |
| H A D | apps.c | 663 X509_VERIFY_PARAM *vpm) in warn_cert() argument 666 int res = X509_cmp_timeframe(vpm, X509_get0_notBefore(cert), in warn_cert() 676 X509_VERIFY_PARAM *vpm) in warn_certs() argument 681 warn_cert(uri, sk_X509_value(certs, i), warn_EE, vpm); in warn_certs() 687 X509_VERIFY_PARAM *vpm) in load_cert_certs() argument 705 warn_cert(uri, *pcert, 0, vpm); in load_cert_certs() 707 warn_certs(uri, *pcerts, 1, vpm); in load_cert_certs() 718 const char *desc, X509_VERIFY_PARAM *vpm) in STACK_OF() 731 if (!load_cert_certs(files, NULL, &certs, 0, pass, desc, vpm)) in STACK_OF() 773 X509_VERIFY_PARAM *vpm) in load_certstore() argument [all …]
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | map | 46 # 1st fat name "DLLINFO TXT" only found for vpm 49 !:ext vpm 50 # Deutsch__Yannick_D4481-00_0210.vpm 149 # 314 zeros but not in vpm and also gmaptz.img
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | R600InstrFormats.td | 490 bits<1> vpm; 499 let Word1{20} = vpm;
|