| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |