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

Side by Side Diff: net/cert/crl_set_storage.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « net/cert/crl_set.cc ('k') | net/cert/ev_root_ca_metadata.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/cert/crl_set_storage.h" 5 #include "net/cert/crl_set_storage.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/debug/trace_event.h"
9 #include "base/format_macros.h" 8 #include "base/format_macros.h"
10 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
11 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
12 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/trace_event/trace_event.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "crypto/sha2.h" 14 #include "crypto/sha2.h"
15 #include "third_party/zlib/zlib.h" 15 #include "third_party/zlib/zlib.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 // Decompress zlib decompressed |in| into |out|. |out_len| is the number of 19 // Decompress zlib decompressed |in| into |out|. |out_len| is the number of
20 // bytes at |out| and must be exactly equal to the size of the decompressed 20 // bytes at |out| and must be exactly equal to the size of the decompressed
21 // data. 21 // data.
22 static bool DecompressZlib(uint8* out, int out_len, base::StringPiece in) { 22 static bool DecompressZlib(uint8* out, int out_len, base::StringPiece in) {
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 memcpy(out + off, j->data(), j->size()); 542 memcpy(out + off, j->data(), j->size());
543 off += j->size(); 543 off += j->size();
544 } 544 }
545 } 545 }
546 546
547 CHECK_EQ(off, len); 547 CHECK_EQ(off, len);
548 return ret; 548 return ret;
549 } 549 }
550 550
551 } // namespace net 551 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/crl_set.cc ('k') | net/cert/ev_root_ca_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698