Inhibit any policy count should ignore self issued certificates.
Require explicit policy is the number certificate before an explict policy
is required.
if (!(x->ex_flags & EXFLAG_SI)
&& (cache->explicit_skip != -1)
&& (cache->explicit_skip < explicit_policy))
- explicit_policy = cache->explicit_skip;
+ explicit_policy = cache->explicit_skip + 1;
}
}
}
else
{
- any_skip--;
+ if (!(x->ex_flags & EXFLAG_SI))
+ any_skip--;
if ((cache->any_skip >= 0)
&& (cache->any_skip < any_skip))
any_skip = cache->any_skip;