static int check_policy(X509_STORE_CTX *ctx)
{
int ret;
- ret = X509_policy_check(&ctx->tree, &ctx->explicit, ctx->chain,
+ ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->chain,
ctx->param->policies, ctx->param->flags);
if (ret == 0)
{
ctx->valid=0;
ctx->chain=NULL;
ctx->error=0;
- ctx->explicit=0;
+ ctx->explicit_policy=0;
ctx->error_depth=0;
ctx->current_cert=NULL;
ctx->current_issuer=NULL;
int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx)
{
- return ctx->explicit;
+ return ctx->explicit_policy;
}
int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name)
STACK_OF(X509) *chain; /* chain of X509s - built up and trusted */
X509_POLICY_TREE *tree; /* Valid policy tree */
- int explicit; /* Require explicit policy value */
+ int explicit_policy; /* Require explicit policy value */
/* When something goes wrong, this is why */
int error_depth;