blob: c1d3bfdc79ecf81f168097b05c9a37cb61aa55d9 (
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
48
49
50
51
|
/*
* TLS Handshake Message
* (C) 2012 Jack Lloyd
* 2016 Matthias Gierlings
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_TLS_HANDSHAKE_MSG_H__
#define BOTAN_TLS_HANDSHAKE_MSG_H__
#include <botan/tls_magic.h>
#include <vector>
#include <string>
namespace Botan {
namespace TLS {
class Handshake_IO;
class Handshake_Hash;
/**
* TLS Handshake Message Base Class
*/
class BOTAN_DLL Handshake_Message
{
public:
/**
* @return string representation of this message type
*/
std::string type_string() const;
/**
* @return the message type
*/
virtual Handshake_Type type() const = 0;
/**
* @return DER representation of this message
*/
virtual std::vector<byte> serialize() const = 0;
virtual ~Handshake_Message() {}
};
}
}
#endif
|