Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:42

0001 /*
0002  * Copyright 2005-2021 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
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 /* DTLS*_VERSION constants are defined in prov_ssl.h */
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 /* Special value for method supporting multiple versions */
0035 # define DTLS_ANY_VERSION                0x1FFFF
0036 
0037 /* lengths of messages */
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