Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2051)

Unified Diff: net/cert/asn1_util.h

Issue 517083002: Enable Certificate Transparency in the OpenSSL port. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ct-objects-extractor
Patch Set: move comment Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/asn1_util.h
diff --git a/net/cert/asn1_util.h b/net/cert/asn1_util.h
index ed379b3f1223cf9f2cf2aa92fd71082f22c80edc..fdd765d8ed8a8e85e88d56766186f7fa9ff1bcaf 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;
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,
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698