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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/cert/crl_set.h ('k') | net/cert/crl_set_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/base64.h" 5 #include "base/base64.h"
6 #include "base/format_macros.h" 6 #include "base/format_macros.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "crypto/sha2.h" 14 #include "crypto/sha2.h"
15 #include "net/base/crl_set.h" 15 #include "net/cert/crl_set.h"
16 #include "third_party/zlib/zlib.h" 16 #include "third_party/zlib/zlib.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 // Decompress zlib decompressed |in| into |out|. |out_len| is the number of 20 // Decompress zlib decompressed |in| into |out|. |out_len| is the number of
21 // bytes at |out| and must be exactly equal to the size of the decompressed 21 // bytes at |out| and must be exactly equal to the size of the decompressed
22 // data. 22 // data.
23 static bool DecompressZlib(uint8* out, int out_len, base::StringPiece in) { 23 static bool DecompressZlib(uint8* out, int out_len, base::StringPiece in) {
24 z_stream z; 24 z_stream z;
25 memset(&z, 0, sizeof(z)); 25 memset(&z, 0, sizeof(z));
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 return new CRLSet; 584 return new CRLSet;
585 } 585 }
586 586
587 CRLSet* CRLSet::ExpiredCRLSetForTesting() { 587 CRLSet* CRLSet::ExpiredCRLSetForTesting() {
588 CRLSet* crl_set = new CRLSet; 588 CRLSet* crl_set = new CRLSet;
589 crl_set->not_after_ = 1; 589 crl_set->not_after_ = 1;
590 return crl_set; 590 return crl_set;
591 } 591 }
592 592
593 } // namespace net 593 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/crl_set.h ('k') | net/cert/crl_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698