зеркало из https://github.com/mozilla/gecko-dev.git
bug 997843 - mozilla::pkix::der::Input::Expect should take a uint16_t as its length argument r=briansmith
This commit is contained in:
Родитель
a82d7f8191
Коммит
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])
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче