mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -1,5 +1,4 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||
/* This code is made available to you under your choice of the following sets
|
||||
* of licensing terms:
|
||||
*/
|
||||
|
|
@ -49,7 +48,15 @@ protected:
|
|||
|
||||
// tlv_id_kp_OCSPSigning and tlv_id_kp_serverAuth are defined in pkixtestutil.h
|
||||
|
||||
// tlv_id_kp_clientAuth and tlv_id_kp_codeSigning are defined in pkixgtest.h
|
||||
// python DottedOIDToCode.py --tlv id-kp-clientAuth 1.3.6.1.5.5.7.3.2
|
||||
static const uint8_t tlv_id_kp_clientAuth[] = {
|
||||
0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02
|
||||
};
|
||||
|
||||
// python DottedOIDToCode.py --tlv id-kp-codeSigning 1.3.6.1.5.5.7.3.3
|
||||
static const uint8_t tlv_id_kp_codeSigning[] = {
|
||||
0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03
|
||||
};
|
||||
|
||||
// python DottedOIDToCode.py --tlv id_kp_emailProtection 1.3.6.1.5.5.7.3.4
|
||||
static const uint8_t tlv_id_kp_emailProtection[] = {
|
||||
|
|
@ -466,7 +473,7 @@ static const EKUTestcase EKU_TESTCASES[] =
|
|||
DOUBLE_EKU_FAILURE(tlv_unknownOID, tlv_anyExtendedKeyUsage, KeyPurposeId::id_kp_OCSPSigning),
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(pkixcheck_CheckExtendedKeyUsage,
|
||||
INSTANTIATE_TEST_CASE_P(pkixcheck_CheckExtendedKeyUsage,
|
||||
CheckExtendedKeyUsageTest,
|
||||
::testing::ValuesIn(EKU_TESTCASES));
|
||||
|
||||
|
|
@ -550,8 +557,8 @@ private:
|
|||
return checker.Check(derCert, nullptr, keepGoing);
|
||||
}
|
||||
|
||||
Result CheckRevocation(EndEntityOrCA, const CertID&, Time, Duration,
|
||||
const Input*, const Input*, const Input*) override
|
||||
Result CheckRevocation(EndEntityOrCA, const CertID&, Time, Time, Duration,
|
||||
const Input*, const Input*) override
|
||||
{
|
||||
return Success;
|
||||
}
|
||||
|
|
@ -587,6 +594,19 @@ TEST_P(CheckExtendedKeyUsageChainTest, EKUChainTestcase)
|
|||
nullptr));
|
||||
}
|
||||
|
||||
// python DottedOIDToCode.py --tlv id-ce-extKeyUsage 2.5.29.37
|
||||
static const uint8_t tlv_id_ce_extKeyUsage[] = {
|
||||
0x06, 0x03, 0x55, 0x1d, 0x25
|
||||
};
|
||||
|
||||
static inline ByteString
|
||||
CreateEKUExtension(ByteString ekuOIDs)
|
||||
{
|
||||
return TLV(der::SEQUENCE,
|
||||
BytesToByteString(tlv_id_ce_extKeyUsage) +
|
||||
TLV(der::OCTET_STRING, TLV(der::SEQUENCE, ekuOIDs)));
|
||||
}
|
||||
|
||||
static const EKUChainTestcase EKU_CHAIN_TESTCASES[] =
|
||||
{
|
||||
{
|
||||
|
|
@ -696,6 +716,6 @@ static const EKUChainTestcase EKU_CHAIN_TESTCASES[] =
|
|||
},
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(pkixcheck_CheckExtendedKeyUsage,
|
||||
INSTANTIATE_TEST_CASE_P(pkixcheck_CheckExtendedKeyUsage,
|
||||
CheckExtendedKeyUsageChainTest,
|
||||
::testing::ValuesIn(EKU_CHAIN_TESTCASES));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue