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

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 2451433002: Change scoped_ptr_openssl_void (et al.) → bssl::UniquePtr (Closed)
Patch Set: rebase-update Created 4 years, 1 month 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/quic/core/crypto/channel_id.cc ('k') | no next file » | 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 "net/tools/quic/test_tools/quic_test_client.h" 5 #include "net/tools/quic/test_tools/quic_test_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 // Convert certs to X509Certificate. 77 // Convert certs to X509Certificate.
78 vector<StringPiece> cert_pieces(certs.size()); 78 vector<StringPiece> cert_pieces(certs.size());
79 for (unsigned i = 0; i < certs.size(); i++) { 79 for (unsigned i = 0; i < certs.size(); i++) {
80 cert_pieces[i] = StringPiece(certs[i]); 80 cert_pieces[i] = StringPiece(certs[i]);
81 } 81 }
82 // TODO(rtenneti): Fix after adding support for real certs. Currently, 82 // TODO(rtenneti): Fix after adding support for real certs. Currently,
83 // cert_pieces are "leaf" and "intermediate" and CreateFromDERCertChain 83 // cert_pieces are "leaf" and "intermediate" and CreateFromDERCertChain
84 // fails to return cert from these cert_pieces. 84 // fails to return cert from these cert_pieces.
85 // scoped_refptr<net::X509Certificate> cert = 85 // bssl::UniquePtr<X509> cert(d2i_X509(nullptr, &data, certs[0].size()));
86 // net::X509Certificate::CreateFromDERCertChain(cert_pieces);
87 // if (!cert.get()) { 86 // if (!cert.get()) {
88 // return QUIC_FAILURE; 87 // return QUIC_FAILURE;
89 // } 88 // }
90 // 89 //
91 // common_name_ = cert->subject().GetDisplayName(); 90 // common_name_ = cert->subject().GetDisplayName();
92 cert_sct_ = cert_sct; 91 cert_sct_ = cert_sct;
93 92
94 if (!verifier_) { 93 if (!verifier_) {
95 return QUIC_SUCCESS; 94 return QUIC_SUCCESS;
96 } 95 }
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 CHECK(message); 729 CHECK(message);
731 message->headers()->SetRequestVersion( 730 message->headers()->SetRequestVersion(
732 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); 731 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1));
733 message->headers()->SetRequestMethod( 732 message->headers()->SetRequestMethod(
734 HTTPMessage::MethodToString(HttpConstants::GET)); 733 HTTPMessage::MethodToString(HttpConstants::GET));
735 message->headers()->SetRequestUri(uri); 734 message->headers()->SetRequestUri(uri);
736 } 735 }
737 736
738 } // namespace test 737 } // namespace test
739 } // namespace net 738 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/channel_id.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698