]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/dtls1.h
Fix header file include guard names
[thirdparty/openssl.git] / include / openssl / dtls1.h
CommitLineData
0f113f3e 1/*
6738bf14 2 * Copyright 2005-2018 The OpenSSL Project Authors. All Rights Reserved.
36d16f8e 3 *
48f4ad77 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
21dcbebc
RS
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
36d16f8e
BL
8 */
9
ae4186b0
DMSP
10#ifndef OPENSSL_DTLS1_H
11# define OPENSSL_DTLS1_H
0f113f3e 12
36d16f8e
BL
13#ifdef __cplusplus
14extern "C" {
15#endif
16
04cd70c6
KR
17#include <openssl/opensslconf.h>
18
0f113f3e
MC
19# define DTLS1_VERSION 0xFEFF
20# define DTLS1_2_VERSION 0xFEFD
04cd70c6
KR
21# if !OPENSSL_API_3
22# define DTLS_MIN_VERSION DTLS1_VERSION
23# define DTLS_MAX_VERSION DTLS1_2_VERSION
24# endif
af674d4e 25# define DTLS1_VERSION_MAJOR 0xFE
cf6da053 26
0f113f3e 27# define DTLS1_BAD_VER 0x0100
cf6da053 28
c6913eeb 29/* Special value for method supporting multiple versions */
0f113f3e 30# define DTLS_ANY_VERSION 0x1FFFF
36d16f8e 31
36d16f8e 32/* lengths of messages */
43054d3d
MC
33/*
34 * Actually the max cookie length in DTLS is 255. But we can't change this now
35 * due to compatibility concerns.
36 */
0f113f3e 37# define DTLS1_COOKIE_LENGTH 256
36d16f8e 38
0f113f3e 39# define DTLS1_RT_HEADER_LENGTH 13
36d16f8e 40
0f113f3e 41# define DTLS1_HM_HEADER_LENGTH 12
36d16f8e 42
0f113f3e
MC
43# define DTLS1_HM_BAD_FRAGMENT -2
44# define DTLS1_HM_FRAGMENT_RETRY -3
36d16f8e 45
0f113f3e 46# define DTLS1_CCS_HEADER_LENGTH 1
36d16f8e 47
2f0ca54c 48# define DTLS1_AL_HEADER_LENGTH 2
36d16f8e 49
bd9faf11 50/* Timeout multipliers */
0f113f3e
MC
51# define DTLS1_TMO_READ_COUNT 2
52# define DTLS1_TMO_WRITE_COUNT 2
36d16f8e 53
0f113f3e 54# define DTLS1_TMO_ALERT_COUNT 12
36d16f8e
BL
55
56#ifdef __cplusplus
57}
58#endif
59#endif