bug 997843 - mozilla::pkix::der::Input::Expect should take a uint16_t as its length argument r=briansmith

This commit is contained in:
David Keeler 2014-04-17 09:50:06 -07:00
parent a82d7f8191
commit 0860109f89

View File

@ -93,7 +93,7 @@ public:
return Success;
}
Result Expect(const uint8_t* expected, size_t expectedLen)
Result Expect(const uint8_t* expected, uint16_t expectedLen)
{
if (EnsureLength(expectedLen) != Success) {
return Fail(SEC_ERROR_BAD_DER);
@ -464,7 +464,7 @@ Null(Input& input)
return ExpectTagAndLength(input, NULLTag, 0);
}
template <size_t Len>
template <uint16_t Len>
Result
OID(Input& input, const uint8_t (&expectedOid)[Len])
{