blob: ac63495a5584ef987adb07b876f7bb5e3d67d82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
#define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
#include <string>
#include "net/quic/crypto/crypto_handshake.h"
#include "net/quic/quic_crypto_stream.h"
namespace net {
class QuicSession;
struct CryptoHandshakeMessage;
namespace test {
class CryptoTestUtils;
} // namespace test
class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream {
public:
explicit QuicCryptoServerStream(QuicSession* session);
virtual ~QuicCryptoServerStream();
// CryptoFramerVisitorInterface implementation
virtual void OnHandshakeMessage(
const CryptoHandshakeMessage& message) OVERRIDE;
private:
friend class test::CryptoTestUtils;
// config_ contains non-crypto parameters that are negotiated in the crypto
// handshake.
QuicConfig config_;
// crypto_config_ contains crypto parameters for the handshake.
QuicCryptoServerConfig crypto_config_;
std::string server_nonce_;
QuicNegotiatedParameters negotiated_params_;
QuicCryptoNegotiatedParams crypto_negotiated_params_;
};
} // namespace net
#endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
|