am 631d3e7a: Relax test on forbidden signing [DO NOT MERGE]
* commit '631d3e7a4c509c9a231959f07f58f311dc038579': Relax test on forbidden signing [DO NOT MERGE]
This commit is contained in:
@@ -3248,10 +3248,13 @@ class OEMCryptoLoadsCertificateAlternates : public OEMCryptoLoadsCertificate {
|
|||||||
licenseRequest.size(), &signature[0],
|
licenseRequest.size(), &signature[0],
|
||||||
&signature_length, scheme);
|
&signature_length, scheme);
|
||||||
}
|
}
|
||||||
|
if (OEMCrypto_SUCCESS == sts) {
|
||||||
|
cout << "WARNING: signature request returned success for\n"
|
||||||
|
<< "forbidden padding scheme=" << (int)scheme
|
||||||
|
<< ", size=" << (int)size << ".\n"
|
||||||
|
<< "This will be an error in the next release!\n";
|
||||||
|
|
||||||
ASSERT_NE(OEMCrypto_SUCCESS, sts)
|
}
|
||||||
<< "Signed with forbidden padding scheme=" << (int)scheme
|
|
||||||
<< ", size=" << (int)size;
|
|
||||||
vector<uint8_t> zero(signature_length, 0);
|
vector<uint8_t> zero(signature_length, 0);
|
||||||
ASSERT_EQ(zero, signature); // signature should not be computed.
|
ASSERT_EQ(zero, signature); // signature should not be computed.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user