-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClientHello.hpp
42 lines (34 loc) · 906 Bytes
/
ClientHello.hpp
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
//
// client-hello.hpp
// browser-cc
//
// Created by Nissassin Seventeen on 10/2/15.
// Copyright (c) 2015 Nissassin Seventeen. All rights reserved.
//
#ifndef client_hello_hpp
#define client_hello_hpp
#include <cstdint>
#include <vector>
#include "CipherSuite.hpp"
#include "CompressionMethod.hpp"
#include "Exportable.hpp"
#include "Extension.hpp"
#include "ProtocolVersion.hpp"
#include "Random.hpp"
#include "SessionID.hpp"
class ClientHello: public Exportable {
public:
private:
shared_ptr<ProtocolVersion> protocolVersion;
shared_ptr<Random> random;
shared_ptr<SessionID> sessionID;
vector<shared_ptr<CipherSuite> > cipherSuites;
vector<shared_ptr<CompressionMethod> > compressionMethods;
vector<shared_ptr<Extension> > extensions;
bool haveExtension;
public:
virtual vector<uint8_t> toData() const;
ClientHello();
virtual size_t size() const;
};
#endif /* client_hello_hpp */