OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/json/json_reader.h" | 6 #include "base/json/json_reader.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "crypto/sha2.h" | 10 #include "crypto/sha2.h" |
11 #include "net/base/crl_filter.h" | 11 #include "net/base/crl_filter.h" |
12 | 12 |
13 #if defined(USE_SYSTEM_ZLIB) | 13 #if defined(USE_SYSTEM_ZLIB) |
14 #include <zlib.h> | 14 #include <zlib.h> |
15 #else | 15 #else |
16 #include "third_party/zlib/zlib.h" | 16 #include "third_party/zlib/zlib.h" |
17 #endif | 17 #endif |
18 | 18 |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 return ret; | 869 return ret; |
870 } | 870 } |
871 | 871 |
872 std::string CRLFilter::SHA256() const { | 872 std::string CRLFilter::SHA256() const { |
873 std::string s = header_bytes_; | 873 std::string s = header_bytes_; |
874 s += gcs_bytes_; | 874 s += gcs_bytes_; |
875 return crypto::SHA256HashString(s); | 875 return crypto::SHA256HashString(s); |
876 } | 876 } |
877 | 877 |
878 } // namespace net | 878 } // namespace net |
OLD | NEW |