mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Make explicit_policy handling match expected RFC3280 behaviour.
This commit is contained in:
parent
787287af40
commit
a9ff742e42
@ -130,11 +130,11 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
|
||||
ret = 2;
|
||||
if (explicit_policy > 0)
|
||||
{
|
||||
explicit_policy--;
|
||||
if (!(x->ex_flags & EXFLAG_SI)
|
||||
&& (cache->explicit_skip != -1)
|
||||
if (!(x->ex_flags & EXFLAG_SI))
|
||||
explicit_policy--;
|
||||
if ((cache->explicit_skip != -1)
|
||||
&& (cache->explicit_skip < explicit_policy))
|
||||
explicit_policy = cache->explicit_skip + 1;
|
||||
explicit_policy = cache->explicit_skip;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user