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

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

Issue 1338393002: Certificate Transparency: Add Venafi log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Store CT log info in rodata (nit fix) Created 5 years, 3 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 | « no previous file | net/cert/ct_known_logs_static.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ct_known_logs.h" 5 #include "net/cert/ct_known_logs.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "net/cert/ct_known_logs_static.h" 11 #include "net/cert/ct_known_logs_static.h"
12 #include "net/cert/ct_log_verifier.h" 12 #include "net/cert/ct_log_verifier.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 namespace ct { 16 namespace ct {
17 17
18 std::vector<scoped_refptr<CTLogVerifier>> CreateLogVerifiersForKnownLogs() { 18 std::vector<scoped_refptr<CTLogVerifier>> CreateLogVerifiersForKnownLogs() {
19 std::vector<scoped_refptr<CTLogVerifier>> verifiers; 19 std::vector<scoped_refptr<CTLogVerifier>> verifiers;
20 for (size_t i = 0; i < arraysize(kCTLogList); ++i) { 20 for (size_t i = 0; i < arraysize(kCTLogList); ++i) {
21 const CTLogInfo& log(kCTLogList[i]); 21 const CTLogInfo& log(kCTLogList[i]);
22 base::StringPiece key(log.log_key, arraysize(log.log_key) - 1); 22 base::StringPiece key(log.log_key, log.log_key_length);
23 23
24 verifiers.push_back(CTLogVerifier::Create(key, log.log_name, log.log_url)); 24 verifiers.push_back(CTLogVerifier::Create(key, log.log_name, log.log_url));
25 } 25 }
26 26
27 return verifiers; 27 return verifiers;
28 } 28 }
29 29
30 } // namespace ct 30 } // namespace ct
31 31
32 } // namespace net 32 } // namespace net
33 33
OLDNEW
« no previous file with comments | « no previous file | net/cert/ct_known_logs_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698