Lines Matching refs:purpose
462 static int check_purpose(X509_STORE_CTX *ctx, X509 *x, int purpose, int depth, in check_purpose() argument
485 if (depth >= ctx->num_untrusted && purpose == ctx->param->purpose) in check_purpose()
494 switch (X509_check_purpose(x, purpose, must_be_ca > 0)) { in check_purpose()
518 int purpose, allow_proxy_certs, num = sk_X509_num(ctx->chain); in check_extensions() local
534 purpose = X509_PURPOSE_CRL_SIGN; in check_extensions()
538 purpose = ctx->param->purpose; in check_extensions()
646 if (purpose > 0 && !check_purpose(ctx, x, purpose, i, must_be_ca)) in check_extensions()
2306 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) in X509_STORE_CTX_set_purpose() argument
2313 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0); in X509_STORE_CTX_set_purpose()
2336 int purpose, int trust) in X509_STORE_CTX_purpose_inherit() argument
2341 if (purpose == 0) in X509_STORE_CTX_purpose_inherit()
2342 purpose = def_purpose; in X509_STORE_CTX_purpose_inherit()
2348 def_purpose = purpose; in X509_STORE_CTX_purpose_inherit()
2350 if (purpose != 0) { in X509_STORE_CTX_purpose_inherit()
2353 idx = X509_PURPOSE_get_by_id(purpose); in X509_STORE_CTX_purpose_inherit()
2379 if (ctx->param->purpose == 0 && purpose != 0) in X509_STORE_CTX_purpose_inherit()
2380 ctx->param->purpose = purpose; in X509_STORE_CTX_purpose_inherit()
2545 int idx = X509_PURPOSE_get_by_id(ctx->param->purpose); in X509_STORE_CTX_init()