mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 1318030 - Possible uninitialised value uses relating to security/pkix/test/gtest/pkixcert_extension_tests.cpp. r=dkeeler@mozilla.com.
This commit is contained in:
parent
8358f9ad56
commit
621b1dcd5f
@ -122,6 +122,11 @@ struct ExtensionTestcase
|
||||
Result expectedResult;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const ExtensionTestcase&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
static const ExtensionTestcase EXTENSION_TESTCASES[] =
|
||||
{
|
||||
// Tests that a non-critical extension not in the id-ce or id-pe arcs (which
|
||||
|
@ -186,6 +186,17 @@ class pkixcert_IsValidChainForAlgorithm
|
||||
{
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os,
|
||||
const pkixcert_IsValidChainForAlgorithm&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const ChainValidity&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
TEST_P(pkixcert_IsValidChainForAlgorithm, IsValidChainForAlgorithm)
|
||||
{
|
||||
const ChainValidity& chainValidity(GetParam());
|
||||
|
@ -160,6 +160,11 @@ struct EKUTestcase
|
||||
Result expectedResultCA;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const EKUTestcase&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
class CheckExtendedKeyUsageTest
|
||||
: public ::testing::Test
|
||||
, public ::testing::WithParamInterface<EKUTestcase>
|
||||
@ -480,6 +485,11 @@ struct EKUChainTestcase
|
||||
Result expectedResult;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const EKUChainTestcase&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
class CheckExtendedKeyUsageChainTest
|
||||
: public ::testing::Test
|
||||
, public ::testing::WithParamInterface<EKUChainTestcase>
|
||||
|
@ -46,6 +46,12 @@ struct CheckSignatureAlgorithmTestParams
|
||||
Result expectedResult;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os,
|
||||
const CheckSignatureAlgorithmTestParams&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
#define BS(s) ByteString(s, MOZILLA_PKIX_ARRAY_LENGTH(s))
|
||||
|
||||
// python DottedOIDToCode.py --tlv sha256WithRSAEncryption 1.2.840.113549.1.1.11
|
||||
|
@ -40,6 +40,11 @@ struct TLSFeaturesTestParams
|
||||
Result expectedResultWithoutResponse;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const TLSFeaturesTestParams&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
#define BS(s) ByteString(s, MOZILLA_PKIX_ARRAY_LENGTH(s))
|
||||
static const uint8_t statusRequest[] = {
|
||||
0x30, 0x03, 0x02, 0x01, 0x05
|
||||
|
@ -913,6 +913,11 @@ class pkixder_universal_types_tests_Integer
|
||||
{
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const IntegerTestParams&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
#define INVALID 0xFF
|
||||
|
||||
static const IntegerTestParams INTEGER_TEST_PARAMS[] =
|
||||
|
@ -50,6 +50,11 @@ struct PresentedMatchesReference
|
||||
bool expectedMatches; // only valid when expectedResult == Success
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const PresentedMatchesReference&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
#define DNS_ID_MATCH(a, b) \
|
||||
{ \
|
||||
ByteString(reinterpret_cast<const uint8_t*>(a), sizeof(a) - 1), \
|
||||
@ -319,6 +324,11 @@ struct InputValidity
|
||||
bool isValidPresentedID;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const InputValidity&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
// str is null-terminated, which is why we subtract 1. str may contain embedded
|
||||
// nulls (including at the end) preceding the null terminator though.
|
||||
#define I(str, validReferenceID, validPresentedID) \
|
||||
@ -572,6 +582,12 @@ struct IPAddressParams
|
||||
uint8_t expectedValueIfValid[L];
|
||||
};
|
||||
|
||||
template <unsigned int L>
|
||||
::std::ostream& operator<<(::std::ostream& os, const IPAddressParams<L>&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
#define IPV4_VALID(str, a, b, c, d) \
|
||||
{ \
|
||||
ByteString(reinterpret_cast<const uint8_t*>(str), sizeof(str) - 1), \
|
||||
@ -1080,6 +1096,11 @@ struct CheckCertHostnameParams
|
||||
Result result;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const CheckCertHostnameParams&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
class pkixnames_CheckCertHostname
|
||||
: public ::testing::Test
|
||||
, public ::testing::WithParamInterface<CheckCertHostnameParams>
|
||||
@ -1811,6 +1832,11 @@ struct NameConstraintParams
|
||||
Result expectedExcludedSubtreesResult;
|
||||
};
|
||||
|
||||
::std::ostream& operator<<(::std::ostream& os, const NameConstraintParams&)
|
||||
{
|
||||
return os << "TODO (bug 1318770)";
|
||||
}
|
||||
|
||||
static ByteString
|
||||
PermittedSubtrees(const ByteString& generalSubtrees)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user