crypt32: Accept end certificates with no extended key usage extension if a particular key usage is requested.
This commit is contained in:
parent
350cdd2fe5
commit
01a7cbf843
|
@ -2541,10 +2541,11 @@ static void CRYPT_CheckUsages(PCERT_CHAIN_CONTEXT chain,
|
||||||
* key usage extension be present and that a particular purpose
|
* key usage extension be present and that a particular purpose
|
||||||
* be indicated in order for the certificate to be acceptable to
|
* be indicated in order for the certificate to be acceptable to
|
||||||
* that application."
|
* that application."
|
||||||
* For now I'm being more conservative and disallowing it.
|
* Not all web sites include the extended key usage extension, so
|
||||||
|
* accept chains without it.
|
||||||
*/
|
*/
|
||||||
WARN_(chain)("requested usage from a certificate with no usages\n");
|
TRACE_(chain)("requested usage from certificate with no usages\n");
|
||||||
validForUsage = FALSE;
|
validForUsage = TRUE;
|
||||||
}
|
}
|
||||||
if (!validForUsage)
|
if (!validForUsage)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue