Chromium Code Reviews| Index: net/cert/asn1_util.h |
| diff --git a/net/cert/asn1_util.h b/net/cert/asn1_util.h |
| index ed379b3f1223cf9f2cf2aa92fd71082f22c80edc..3c47bd862edb647c91cb90106bbdbe97bae3188a 100644 |
| --- a/net/cert/asn1_util.h |
| +++ b/net/cert/asn1_util.h |
| @@ -20,6 +20,7 @@ static const unsigned kINTEGER = 0x02; |
| static const unsigned kBITSTRING = 0x03; |
| static const unsigned kOCTETSTRING = 0x04; |
| static const unsigned kOID = 0x06; |
| +static const unsigned kENUMERATED = 0x0a; |
|
Ryan Sleevi
2014/09/02 19:49:06
Pure pedantry nit: 0x0A;
You can send me hate-mai
davidben
2014/09/02 22:13:45
Done.
|
| static const unsigned kSEQUENCE = 0x30; |
| // These are flags that can be ORed with the above tag numbers. |
| @@ -53,9 +54,9 @@ bool ParseElement(base::StringPiece* in, |
| // |
| // If |tag_value & kOptional| is true then this function cannot distinguish |
| // between a missing optional element and an empty one. |
| -bool GetElement(base::StringPiece* in, |
| - unsigned tag_value, |
| - base::StringPiece* out); |
| +NET_EXPORT_PRIVATE bool GetElement(base::StringPiece* in, |
| + unsigned tag_value, |
| + base::StringPiece* out); |
| // ExtractSPKIFromDERCert parses the DER encoded certificate in |cert| and |
| // extracts the bytes of the SubjectPublicKeyInfo. On successful return, |