Botan  2.4.0
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 namespace Botan {
12 
13 namespace TLS {
14 
15 /**
16 * Protocol Constants for SSL/TLS
17 */
21 
22  MAX_PLAINTEXT_SIZE = 16*1024,
25 };
26 
27 enum Connection_Side { CLIENT = 1, SERVER = 2 };
28 
31  ALERT = 21,
32  HANDSHAKE = 22,
34 
35  NO_RECORD = 256
36 };
37 
43  NEW_SESSION_TICKET = 4, // RFC 5077
45  SERVER_KEX = 12,
49  CLIENT_KEX = 16,
50  FINISHED = 20,
51 
54 
55  HANDSHAKE_CCS = 254, // Not a wire value
56  HANDSHAKE_NONE = 255 // Null value
57 };
58 
60 
64 };
65 
66 }
67 
68 }
69 
70 #endif
Compression_Method
Definition: tls_magic.h:61
Definition: alg_id.cpp:13
const char * handshake_type_to_string(Handshake_Type type)