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

Side by Side Diff: net/quic/crypto/crypto_utils.h

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/quic/crypto/crypto_server_test.cc ('k') | net/quic/crypto/crypto_utils.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // Some helpers for quic crypto 5 // Some helpers for quic crypto
6 6
7 #ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ 7 #ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ 8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 static QuicErrorCode ValidateClientHello( 98 static QuicErrorCode ValidateClientHello(
99 const CryptoHandshakeMessage& client_hello, 99 const CryptoHandshakeMessage& client_hello,
100 QuicVersion version, 100 QuicVersion version,
101 const QuicVersionVector& supported_versions, 101 const QuicVersionVector& supported_versions,
102 std::string* error_details); 102 std::string* error_details);
103 103
104 // Returns the name of the HandshakeFailureReason as a char* 104 // Returns the name of the HandshakeFailureReason as a char*
105 static const char* HandshakeFailureReasonToString( 105 static const char* HandshakeFailureReasonToString(
106 HandshakeFailureReason reason); 106 HandshakeFailureReason reason);
107 107
108 // Writes a hash of the serialized |message| into |output|.
109 static void HashHandshakeMessage(const CryptoHandshakeMessage& message,
110 std::string* output);
111
108 private: 112 private:
109 DISALLOW_COPY_AND_ASSIGN(CryptoUtils); 113 DISALLOW_COPY_AND_ASSIGN(CryptoUtils);
110 }; 114 };
111 115
112 } // namespace net 116 } // namespace net
113 117
114 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ 118 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_server_test.cc ('k') | net/quic/crypto/crypto_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698