File indexing completed on 2026-09-20 09:19:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_DTLS1_H
0011 #define OPENSSL_DTLS1_H
0012 #pragma once
0013
0014 #include <openssl/macros.h>
0015 #ifndef OPENSSL_NO_DEPRECATED_3_0
0016 #define HEADER_DTLS1_H
0017 #endif
0018
0019 #include <openssl/prov_ssl.h>
0020
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024
0025 #include <openssl/opensslconf.h>
0026
0027
0028 #ifndef OPENSSL_NO_DEPRECATED_3_0
0029 #define DTLS_MIN_VERSION DTLS1_VERSION
0030 #define DTLS_MAX_VERSION DTLS1_2_VERSION
0031 #endif
0032 #define DTLS1_VERSION_MAJOR 0xFE
0033
0034
0035 #define DTLS_ANY_VERSION 0x1FFFF
0036
0037
0038
0039 #define DTLS1_COOKIE_LENGTH 255
0040
0041 #define DTLS1_RT_HEADER_LENGTH 13
0042
0043 #define DTLS1_HM_HEADER_LENGTH 12
0044
0045 #define DTLS1_HM_BAD_FRAGMENT -2
0046 #define DTLS1_HM_FRAGMENT_RETRY -3
0047
0048 #define DTLS1_CCS_HEADER_LENGTH 1
0049
0050 #define DTLS1_AL_HEADER_LENGTH 2
0051
0052 #define DTLS1_TMO_ALERT_COUNT 12
0053
0054 #ifdef __cplusplus
0055 }
0056 #endif
0057 #endif