Commit ae6e8841 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Correct error when the subject alternate name can't be decoded.

parent 865f3df3
......@@ -695,6 +695,10 @@ static void CRYPT_CheckNameConstraints(
0, CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT);
LocalFree(subjectName);
}
else
*trustErrorStatus |=
CERT_TRUST_INVALID_EXTENSION |
CERT_TRUST_INVALID_NAME_CONSTRAINTS;
}
else
{
......
......@@ -2793,7 +2793,7 @@ static ChainCheck chainCheck[] = {
{ CERT_TRUST_IS_UNTRUSTED_ROOT | CERT_TRUST_INVALID_NAME_CONSTRAINTS |
CERT_TRUST_INVALID_EXTENSION, 0 },
1, simpleStatus27 },
TODO_ERROR },
0 },
{ { sizeof(chain28) / sizeof(chain28[0]), chain28 },
{ { CERT_TRUST_IS_NOT_TIME_NESTED | CERT_TRUST_IS_NOT_VALID_FOR_USAGE,
CERT_TRUST_HAS_PREFERRED_ISSUER },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment