Bug 1003290: Fix OID parser template type, r=keeler
authorBrian Smith <brian@briansmith.org>
Fri, 25 Apr 2014 16:31:30 -0700
changeset 181641 9bca81260db48b5a1b92e1e505c99782db48dabc
parent 181640 c968e47ef70893902ed49f65ade8a2ffe116ea11
child 181642 af1cebf017fc9c8ac78ea63213f13a9a3b9b237a
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerskeeler
bugs1003290
milestone32.0a1
Bug 1003290: Fix OID parser template type, r=keeler
security/pkix/lib/pkixder.h
--- a/security/pkix/lib/pkixder.h
+++ b/security/pkix/lib/pkixder.h
@@ -460,17 +460,17 @@ Integer(Input& input, /*out*/ SECItem& v
 }
 
 inline Result
 Null(Input& input)
 {
   return ExpectTagAndLength(input, NULLTag, 0);
 }
 
-template <uint16_t Len>
+template <uint8_t Len>
 Result
 OID(Input& input, const uint8_t (&expectedOid)[Len])
 {
   if (ExpectTagAndLength(input, OIDTag, Len) != Success) {
     return Failure;
   }
 
   return input.Expect(expectedOid, Len);