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

Side by Side Diff: net/tools/cert_verify_tool/verify_using_cert_verify_proc.cc

Issue 2101863004: net: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/ssl/default_channel_id_store.cc ('k') | net/tools/quic/end_to_end_test.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/tools/cert_verify_tool/verify_using_cert_verify_proc.h" 5 #include "net/tools/cert_verify_tool/verify_using_cert_verify_proc.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 if (result.is_issued_by_additional_trust_anchor) 91 if (result.is_issued_by_additional_trust_anchor)
92 std::cout << "is_issued_by_additional_trust_anchor\n"; 92 std::cout << "is_issued_by_additional_trust_anchor\n";
93 if (result.common_name_fallback_used) 93 if (result.common_name_fallback_used)
94 std::cout << "common_name_fallback_used\n"; 94 std::cout << "common_name_fallback_used\n";
95 95
96 if (result.verified_cert) { 96 if (result.verified_cert) {
97 std::cout << "chain:\n " 97 std::cout << "chain:\n "
98 << FingerPrintOSCertHandle(result.verified_cert->os_cert_handle()) 98 << FingerPrintOSCertHandle(result.verified_cert->os_cert_handle())
99 << " " << SubjectFromX509Certificate(result.verified_cert.get()) 99 << " " << SubjectFromX509Certificate(result.verified_cert.get())
100 << "\n"; 100 << "\n";
101 for (const auto& os_cert : 101 for (auto* os_cert : result.verified_cert->GetIntermediateCertificates()) {
102 result.verified_cert->GetIntermediateCertificates()) {
103 std::cout << " " << FingerPrintOSCertHandle(os_cert) << " " 102 std::cout << " " << FingerPrintOSCertHandle(os_cert) << " "
104 << SubjectFromOSCertHandle(os_cert) << "\n"; 103 << SubjectFromOSCertHandle(os_cert) << "\n";
105 } 104 }
106 } 105 }
107 } 106 }
108 107
109 } // namespace 108 } // namespace
110 109
111 bool VerifyUsingCertVerifyProc( 110 bool VerifyUsingCertVerifyProc(
112 const CertInput& target_der_cert, 111 const CertInput& target_der_cert,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 if (!dump_prefix_path.empty() && result.verified_cert) { 169 if (!dump_prefix_path.empty() && result.verified_cert) {
171 if (!DumpX509CertificateChain(dump_prefix_path.AddExtension( 170 if (!DumpX509CertificateChain(dump_prefix_path.AddExtension(
172 FILE_PATH_LITERAL(".CertVerifyProc.pem")), 171 FILE_PATH_LITERAL(".CertVerifyProc.pem")),
173 result.verified_cert.get())) { 172 result.verified_cert.get())) {
174 return false; 173 return false;
175 } 174 }
176 } 175 }
177 176
178 return rv == net::OK; 177 return rv == net::OK;
179 } 178 }
OLDNEW
« no previous file with comments | « net/ssl/default_channel_id_store.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698