Lines Matching refs:purpose
495 static int check_purpose(X509_STORE_CTX *ctx, X509 *x, int purpose, int depth, in check_purpose() argument
518 if (depth >= ctx->num_untrusted && purpose == ctx->param->purpose) in check_purpose()
527 switch (X509_check_purpose(x, purpose, must_be_ca > 0)) { in check_purpose()
551 int purpose, allow_proxy_certs, num = sk_X509_num(ctx->chain); in check_extensions() local
567 purpose = X509_PURPOSE_CRL_SIGN; in check_extensions()
571 purpose = ctx->param->purpose; in check_extensions()
679 if (purpose > 0 && !check_purpose(ctx, x, purpose, i, must_be_ca)) in check_extensions()
2339 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) in X509_STORE_CTX_set_purpose() argument
2346 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0); in X509_STORE_CTX_set_purpose()
2369 int purpose, int trust) in X509_STORE_CTX_purpose_inherit() argument
2374 if (purpose == 0) in X509_STORE_CTX_purpose_inherit()
2375 purpose = def_purpose; in X509_STORE_CTX_purpose_inherit()
2381 def_purpose = purpose; in X509_STORE_CTX_purpose_inherit()
2383 if (purpose != 0) { in X509_STORE_CTX_purpose_inherit()
2386 idx = X509_PURPOSE_get_by_id(purpose); in X509_STORE_CTX_purpose_inherit()
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()
2578 int idx = X509_PURPOSE_get_by_id(ctx->param->purpose); in X509_STORE_CTX_init()