Botan  2.18.1
Crypto and TLS for C++11
tls_magic.h
Go to the documentation of this file.
1 /*
2 * SSL/TLS Protocol Constants
3 * (C) 2004-2010 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7 
8 #ifndef BOTAN_TLS_PROTOCOL_MAGIC_H_
9 #define BOTAN_TLS_PROTOCOL_MAGIC_H_
10 
11 #include <botan/types.h>
12 
13 //BOTAN_FUTURE_INTERNAL_HEADER(tls_magic.h)
14 
15 namespace Botan {
16 
17 namespace TLS {
18 
19 /**
20 * Protocol Constants for SSL/TLS
21 */
25 
26  MAX_PLAINTEXT_SIZE = 16*1024,
29 };
30 
31 // This will become an enum class in a future major release
32 enum Connection_Side { CLIENT = 1, SERVER = 2 };
33 
34 // This will become an enum class in a future major release
37  ALERT = 21,
38  HANDSHAKE = 22,
40 
41  NO_RECORD = 256
42 };
43 
44 // This will become an enum class in a future major release
50  NEW_SESSION_TICKET = 4, // RFC 5077
52  SERVER_KEX = 12,
56  CLIENT_KEX = 16,
57  FINISHED = 20,
58 
61 
62  HANDSHAKE_CCS = 254, // Not a wire value
63  HANDSHAKE_NONE = 255 // Null value
64 };
65 
67 
68 }
69 
70 }
71 
72 #endif
Definition: alg_id.cpp:13
const char * handshake_type_to_string(Handshake_Type type)