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

Side by Side Diff: net/quic/core/crypto/quic_crypto_server_config.cc

Issue 2302643003: Add error_details when the QuicCryptoServerConfig fails to get crypto proof. (Closed)
Patch Set: Merge. 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 | « no previous file | 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 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/quic/core/crypto/quic_crypto_server_config.h" 5 #include "net/quic/core/crypto/quic_crypto_server_config.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 primary_config->serialized, version, chlo_hash, 757 primary_config->serialized, version, chlo_hash,
758 std::move(cb)); 758 std::move(cb));
759 helper.DetachCallback(); 759 helper.DetachCallback();
760 return; 760 return;
761 } 761 }
762 762
763 if (!proof_source_->GetProof(server_ip, info.sni.as_string(), 763 if (!proof_source_->GetProof(server_ip, info.sni.as_string(),
764 primary_config->serialized, version, chlo_hash, 764 primary_config->serialized, version, chlo_hash,
765 &crypto_proof->chain, &crypto_proof->signature, 765 &crypto_proof->chain, &crypto_proof->signature,
766 &crypto_proof->cert_sct)) { 766 &crypto_proof->cert_sct)) {
767 helper.Fail(QUIC_HANDSHAKE_FAILED, ""); 767 helper.Fail(QUIC_HANDSHAKE_FAILED, "Missing or invalid crypto proof.");
768 return; 768 return;
769 } 769 }
770 } 770 }
771 771
772 helper.DetachCallback(); 772 helper.DetachCallback();
773 ProcessClientHelloAfterGetProof( 773 ProcessClientHelloAfterGetProof(
774 /* found_error = */ false, *validate_chlo_result, reject_only, 774 /* found_error = */ false, *validate_chlo_result, reject_only,
775 connection_id, client_address, version, supported_versions, 775 connection_id, client_address, version, supported_versions,
776 use_stateless_rejects, server_designated_connection_id, clock, rand, 776 use_stateless_rejects, server_designated_connection_id, clock, rand,
777 compressed_certs_cache, params, crypto_proof, total_framing_overhead, 777 compressed_certs_cache, params, crypto_proof, total_framing_overhead,
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 expiry_time(QuicWallTime::Zero()), 2244 expiry_time(QuicWallTime::Zero()),
2245 priority(0), 2245 priority(0),
2246 source_address_token_boxer(nullptr) {} 2246 source_address_token_boxer(nullptr) {}
2247 2247
2248 QuicCryptoServerConfig::Config::~Config() { 2248 QuicCryptoServerConfig::Config::~Config() {
2249 } 2249 }
2250 2250
2251 QuicCryptoProof::QuicCryptoProof() {} 2251 QuicCryptoProof::QuicCryptoProof() {}
2252 QuicCryptoProof::~QuicCryptoProof() {} 2252 QuicCryptoProof::~QuicCryptoProof() {}
2253 } // namespace net 2253 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698