Lines Matching refs:param
193 if (ctx->param->auth_level <= 0) in check_auth_level()
247 ctx->param->flags); in verify_chain()
267 if ((ctx->param->flags & X509_V_FLAG_POLICY_CHECK) != 0) in verify_chain()
518 if (depth >= ctx->num_untrusted && purpose == ctx->param->purpose) in check_purpose()
519 tr_ok = X509_check_trust(x, ctx->param->trust, X509_TRUST_NO_SS_COMPAT); in check_purpose()
533 if ((ctx->param->flags & X509_V_FLAG_X509_STRICT) == 0) in check_purpose()
570 (ctx->param->flags & X509_V_FLAG_ALLOW_PROXY_CERTS) != 0; in check_extensions()
571 purpose = ctx->param->purpose; in check_extensions()
576 CB_FAIL_IF((ctx->param->flags & X509_V_FLAG_IGNORE_CRITICAL) == 0 in check_extensions()
584 CB_FAIL_IF((ctx->param->flags & X509_V_FLAG_X509_STRICT) != 0 in check_extensions()
595 || (ctx->param->flags & X509_V_FLAG_X509_STRICT) != 0) in check_extensions()
610 if ((ctx->param->flags & X509_V_FLAG_X509_STRICT) != 0 in check_extensions()
839 && (ctx->param->hostflags in check_name_constraints()
841 && ((ctx->param->hostflags in check_name_constraints()
888 X509_VERIFY_PARAM *vpm = ctx->param; in check_id()
935 trust = X509_check_trust(x, ctx->param->trust, 0); in check_trust()
948 if ((ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN) != 0) in check_trust()
954 && (ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN) != 0) { in check_trust()
971 trust = X509_check_trust(mx, ctx->param->trust, 0); in check_trust()
1010 if ((ctx->param->flags & X509_V_FLAG_CRL_CHECK) == 0) in check_revocation()
1012 if ((ctx->param->flags & X509_V_FLAG_CRL_CHECK_ALL) != 0) { in check_revocation()
1108 if ((ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) != 0) in check_crl_time()
1109 ptime = &ctx->param->check_time; in check_crl_time()
1110 else if ((ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) != 0) in check_crl_time()
1275 if ((ctx->param->flags & X509_V_FLAG_USE_DELTAS) == 0) in get_delta_sk()
1311 if ((ctx->param->flags & X509_V_FLAG_EXTENDED_CRL_SUPPORT) == 0) { in get_crl_score()
1392 if ((ctx->param->flags & X509_V_FLAG_EXTENDED_CRL_SUPPORT) == 0) in crl_akid_check()
1430 X509_STORE_CTX_set0_param(&crl_ctx, ctx->param); in check_crl_path()
1688 int rv = X509_CRL_check_suiteb(crl, ikey, ctx->param->flags); in check_crl()
1711 if ((ctx->param->flags & X509_V_FLAG_IGNORE_CRITICAL) == 0 in cert_crl()
1752 ctx->param->policies, ctx->param->flags); in check_policy()
1791 if ((ctx->param->flags & X509_V_FLAG_NOTIFY_POLICY) != 0) { in check_policy()
1823 if ((ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) != 0) in ossl_x509_check_cert_time()
1824 ptime = &ctx->param->check_time; in ossl_x509_check_cert_time()
1825 else if ((ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) != 0) in ossl_x509_check_cert_time()
1874 && ((ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN) == 0)) { in internal_verify()
1908 || ((ctx->param->flags & X509_V_FLAG_CHECK_SS_SIGNATURE) != 0 in internal_verify()
2412 if (ctx->param->purpose == 0 && purpose != 0) in X509_STORE_CTX_purpose_inherit()
2413 ctx->param->purpose = purpose; in X509_STORE_CTX_purpose_inherit()
2414 if (ctx->param->trust == 0 && trust != 0) in X509_STORE_CTX_purpose_inherit()
2415 ctx->param->trust = trust; in X509_STORE_CTX_purpose_inherit()
2558 ctx->param = X509_VERIFY_PARAM_new(); in X509_STORE_CTX_init()
2559 if (ctx->param == NULL) { in X509_STORE_CTX_init()
2566 ctx->param->inh_flags |= X509_VP_FLAG_DEFAULT | X509_VP_FLAG_ONCE; in X509_STORE_CTX_init()
2567 else if (X509_VERIFY_PARAM_inherit(ctx->param, store->param) == 0) in X509_STORE_CTX_init()
2577 if (ctx->param->trust == X509_TRUST_DEFAULT) { in X509_STORE_CTX_init()
2578 int idx = X509_PURPOSE_get_by_id(ctx->param->purpose); in X509_STORE_CTX_init()
2582 ctx->param->trust = X509_PURPOSE_get_trust(xp); in X509_STORE_CTX_init()
2623 if (ctx->param != NULL) { in X509_STORE_CTX_cleanup()
2625 X509_VERIFY_PARAM_free(ctx->param); in X509_STORE_CTX_cleanup()
2626 ctx->param = NULL; in X509_STORE_CTX_cleanup()
2638 X509_VERIFY_PARAM_set_depth(ctx->param, depth); in X509_STORE_CTX_set_depth()
2643 X509_VERIFY_PARAM_set_flags(ctx->param, flags); in X509_STORE_CTX_set_flags()
2649 X509_VERIFY_PARAM_set_time(ctx->param, t); in X509_STORE_CTX_set_time()
2787 const X509_VERIFY_PARAM *param; in X509_STORE_CTX_set_default() local
2789 param = X509_VERIFY_PARAM_lookup(name); in X509_STORE_CTX_set_default()
2790 if (param == NULL) { in X509_STORE_CTX_set_default()
2794 return X509_VERIFY_PARAM_inherit(ctx->param, param); in X509_STORE_CTX_set_default()
2799 return ctx->param; in X509_STORE_CTX_get0_param()
2802 void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param) in X509_STORE_CTX_set0_param() argument
2804 X509_VERIFY_PARAM_free(ctx->param); in X509_STORE_CTX_set0_param()
2805 ctx->param = param; in X509_STORE_CTX_set0_param()
3120 int err = X509_chain_check_suiteb(NULL, cert, NULL, ctx->param->flags); in check_leaf_suiteb()
3270 if (search == 0 || (ctx->param->flags & X509_V_FLAG_TRUSTED_FIRST) != 0) in build_chain()
3272 else if (!(ctx->param->flags & X509_V_FLAG_NO_ALT_CHAINS)) in build_chain()
3307 if (ctx->param->depth > INT_MAX / 2) in build_chain()
3308 ctx->param->depth = INT_MAX / 2; in build_chain()
3315 max_depth = ctx->param->depth + 1; in build_chain()
3641 int level = ctx->param->auth_level; in check_key_level()
3705 int level = ctx->param->auth_level; in check_sig_level()