mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
bug 997843 - mozilla::pkix::der::Input::Expect should take a uint16_t as its length argument r=briansmith
This commit is contained in:
parent
a82d7f8191
commit
0860109f89
@ -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])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user