Botan 2.19.1
Crypto and TLS for C&
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
15namespace Botan {
16
17namespace TLS {
18
19/**
20* Protocol Constants for SSL/TLS
21*/
25
29};
30
31// This will become an enum class in a future major release
32enum Connection_Side { CLIENT = 1, SERVER = 2 };
33
34// This will become an enum class in a future major release
37 ALERT = 21,
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
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
@ HELLO_VERIFY_REQUEST
Definition: tls_magic.h:49
@ CLIENT_KEX
Definition: tls_magic.h:56
@ HANDSHAKE_CCS
Definition: tls_magic.h:62
@ CERTIFICATE_URL
Definition: tls_magic.h:59
@ SERVER_HELLO
Definition: tls_magic.h:48
@ NEW_SESSION_TICKET
Definition: tls_magic.h:50
@ SERVER_HELLO_DONE
Definition: tls_magic.h:54
@ HELLO_REQUEST
Definition: tls_magic.h:46
@ CERTIFICATE_REQUEST
Definition: tls_magic.h:53
@ CERTIFICATE
Definition: tls_magic.h:51
@ CERTIFICATE_STATUS
Definition: tls_magic.h:60
@ CERTIFICATE_VERIFY
Definition: tls_magic.h:55
@ HANDSHAKE_NONE
Definition: tls_magic.h:63
@ SERVER_KEX
Definition: tls_magic.h:52
@ CLIENT_HELLO
Definition: tls_magic.h:47
@ CHANGE_CIPHER_SPEC
Definition: tls_magic.h:36
@ APPLICATION_DATA
Definition: tls_magic.h:39
const char * handshake_type_to_string(Handshake_Type type)
@ MAX_CIPHERTEXT_SIZE
Definition: tls_magic.h:28
@ MAX_PLAINTEXT_SIZE
Definition: tls_magic.h:26
@ TLS_HEADER_SIZE
Definition: tls_magic.h:23
@ MAX_COMPRESSED_SIZE
Definition: tls_magic.h:27
@ DTLS_HEADER_SIZE
Definition: tls_magic.h:24
Definition: alg_id.cpp:13