/freebsd/crypto/openssl/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()
|
/freebsd/crypto/openssl/apps/lib/ |
H A D | opt.c | 677 int opt_verify(int opt, X509_VERIFY_PARAM *vpm) in opt_verify() argument 685 OPENSSL_assert(vpm != NULL); in opt_verify() 699 if (!X509_VERIFY_PARAM_add0_policy(vpm, otmp)) { in opt_verify() 720 if (!X509_VERIFY_PARAM_set_purpose(vpm, i)) { in opt_verify() 733 X509_VERIFY_PARAM_set1(vpm, vtmp); in opt_verify() 738 X509_VERIFY_PARAM_set_depth(vpm, i); in opt_verify() 743 X509_VERIFY_PARAM_set_auth_level(vpm, i); in opt_verify() 753 X509_VERIFY_PARAM_set_time(vpm, (time_t)t); in opt_verify() 756 if (!X509_VERIFY_PARAM_set1_host(vpm, opt_arg(), 0)) in opt_verify() 760 if (!X509_VERIFY_PARAM_set1_email(vpm, opt_arg(), 0)) in opt_verify() [all …]
|
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 …]
|
/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 | 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() 873 vpm)) in verify_command() 850 verify_command(const char * data,const char * digest,const char * queryfile,const char * in,int token_in,const char * CApath,const char * CAfile,const char * CAstore,char * untrusted,X509_VERIFY_PARAM * vpm) verify_command() argument 898 create_verify_ctx(const char * data,const char * digest,const char * queryfile,const char * CApath,const char * CAfile,const char * CAstore,char * untrusted,X509_VERIFY_PARAM * vpm) create_verify_ctx() argument 971 create_cert_store(const char * CApath,const char * CAfile,const char * CAstore,X509_VERIFY_PARAM * vpm) create_cert_store() argument [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 | smime.c | 142 X509_VERIFY_PARAM *vpm = NULL; in smime_main() local 160 if ((vpm = X509_VERIFY_PARAM_new()) == NULL) in smime_main() 351 if (!opt_verify(o, vpm)) in smime_main() 540 X509_STORE_set1_param(store, vpm); in smime_main() 659 X509_VERIFY_PARAM_free(vpm); in smime_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()
|
H A D | cms.c | 291 X509_VERIFY_PARAM *vpm = X509_VERIFY_PARAM_new(); in cms_main() local 314 if (encerts == NULL || vpm == NULL) in cms_main() 666 if (!opt_verify(o, vpm)) in cms_main() 941 X509_STORE_set1_param(store, vpm); in cms_main() 1243 X509_VERIFY_PARAM_free(vpm); in cms_main()
|
H A D | s_client.c | 790 X509_VERIFY_PARAM *vpm = NULL; in s_client_main() local 907 vpm = X509_VERIFY_PARAM_new(); in s_client_main() 910 if (port == NULL || vpm == NULL || cctx == NULL) { in s_client_main() 1061 if (!opt_verify(o, vpm)) in s_client_main() 1727 if (vpmtouched && !SSL_CTX_set1_param(ctx, vpm)) { in s_client_main() 3113 X509_VERIFY_PARAM_free(vpm); in s_client_main()
|
H A D | s_server.c | 988 X509_VERIFY_PARAM *vpm = NULL; in s_server_main() local 1075 vpm = X509_VERIFY_PARAM_new(); in s_server_main() 1076 if (port == NULL || cctx == NULL || vpm == NULL) in s_server_main() 1301 if (!opt_verify(o, vpm)) in s_server_main() 1947 if (vpmtouched && !SSL_CTX_set1_param(ctx, vpm)) { in s_server_main() 2010 if (vpmtouched && !SSL_CTX_set1_param(ctx2, vpm)) { in s_server_main() 2253 X509_VERIFY_PARAM_free(vpm); in s_server_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 && 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()
|
/freebsd/crypto/openssl/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);
|
/freebsd/contrib/file/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
|
H A D | audio | 858 !:mime audio/x-vpm-wav-garmin 859 !:ext vpm 904 !:mime audio/x-vpm-garmin 905 !:ext vpm
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600InstrFormats.td | 490 bits<1> vpm; 499 let Word1{20} = vpm;
|
/freebsd/crypto/openssl/crypto/cmp/ |
H A D | cmp_vfy.c | 234 X509_VERIFY_PARAM *vpm = ts != NULL ? X509_STORE_get0_param(ts) : NULL; in cert_acceptable() local 255 time_cmp = X509_cmp_timeframe(vpm, X509_get0_notBefore(cert), in cert_acceptable()
|
/freebsd/crypto/openssl/ssl/ |
H A D | ssl_lib.c | 1162 int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm) in SSL_CTX_set1_param() argument 1164 return X509_VERIFY_PARAM_set1(ctx->param, vpm); in SSL_CTX_set1_param() 1167 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm) in SSL_set1_param() argument 1169 return X509_VERIFY_PARAM_set1(ssl->param, vpm); in SSL_set1_param()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ssl.h | 1879 __owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); 1880 __owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);
|