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

Unified Diff: net/cert/asn1_util.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: net/cert/asn1_util.cc
diff --git a/net/cert/asn1_util.cc b/net/cert/asn1_util.cc
index 6dcff52ee65c90a4eb3ed033b226b0709a2e9b3d..8c21ba413a7a73fad3cef807f9065c8ad4210058 100644
--- a/net/cert/asn1_util.cc
+++ b/net/cert/asn1_util.cc
@@ -11,7 +11,7 @@ namespace asn1 {
bool ParseElement(base::StringPiece* in,
unsigned tag_value,
base::StringPiece* out,
- unsigned *out_header_len) {
+ unsigned* out_header_len) {
const uint8* data = reinterpret_cast<const uint8*>(in->data());
// We don't support kAny and kOptional at the same time.
@@ -184,7 +184,6 @@ bool ExtractSubjectPublicKeyFromSPKI(base::StringPiece spki,
return true;
}
-
bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
std::vector<base::StringPiece>* urls_out) {
urls_out->clear();
@@ -212,7 +211,8 @@ bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
return false;
base::StringPiece extensions_seq;
- if (!GetElement(&cert, kOptional | kConstructed | kContextSpecific | 3,
+ if (!GetElement(&cert,
+ kOptional | kConstructed | kContextSpecific | 3,
&extensions_seq)) {
return false;
}
@@ -277,8 +277,8 @@ bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
return false;
base::StringPiece name;
- if (!GetElement(&distrib_point, kContextSpecific | kConstructed | 0,
- &name)) {
+ if (!GetElement(
+ &distrib_point, kContextSpecific | kConstructed | 0, &name)) {
// If it doesn't contain a name then we skip it.
continue;
}
@@ -290,8 +290,8 @@ bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
continue;
}
- if (GetElement(&distrib_point,
- kContextSpecific | kConstructed | 2, NULL)) {
+ if (GetElement(
+ &distrib_point, kContextSpecific | kConstructed | 2, NULL)) {
// If it contains a alternative issuer, then we skip it.
continue;
}
@@ -300,8 +300,8 @@ bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
// fullName [0] GeneralNames,
// nameRelativeToCRLIssuer [1] RelativeDistinguishedName }
base::StringPiece general_names;
- if (!GetElement(&name,
- kContextSpecific | kConstructed | 0, &general_names)) {
+ if (!GetElement(
+ &name, kContextSpecific | kConstructed | 0, &general_names)) {
continue;
}
@@ -326,6 +326,6 @@ bool ExtractCRLURLsFromDERCert(base::StringPiece cert,
return true;
}
-} // namespace asn1
+} // namespace asn1
-} // namespace net
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698