File indexing completed on 2025-01-18 10:05:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_QUIC_H
0011 # define OPENSSL_QUIC_H
0012 # pragma once
0013
0014 # include <openssl/macros.h>
0015 # include <openssl/ssl.h>
0016
0017 # ifndef OPENSSL_NO_QUIC
0018
0019 # ifdef __cplusplus
0020 extern "C" {
0021 # endif
0022
0023
0024
0025
0026 __owur const SSL_METHOD *OSSL_QUIC_client_method(void);
0027
0028
0029
0030
0031 __owur const SSL_METHOD *OSSL_QUIC_client_thread_method(void);
0032
0033
0034
0035
0036 # define OSSL_QUIC_ERR_NO_ERROR 0x00
0037 # define OSSL_QUIC_ERR_INTERNAL_ERROR 0x01
0038 # define OSSL_QUIC_ERR_CONNECTION_REFUSED 0x02
0039 # define OSSL_QUIC_ERR_FLOW_CONTROL_ERROR 0x03
0040 # define OSSL_QUIC_ERR_STREAM_LIMIT_ERROR 0x04
0041 # define OSSL_QUIC_ERR_STREAM_STATE_ERROR 0x05
0042 # define OSSL_QUIC_ERR_FINAL_SIZE_ERROR 0x06
0043 # define OSSL_QUIC_ERR_FRAME_ENCODING_ERROR 0x07
0044 # define OSSL_QUIC_ERR_TRANSPORT_PARAMETER_ERROR 0x08
0045 # define OSSL_QUIC_ERR_CONNECTION_ID_LIMIT_ERROR 0x09
0046 # define OSSL_QUIC_ERR_PROTOCOL_VIOLATION 0x0A
0047 # define OSSL_QUIC_ERR_INVALID_TOKEN 0x0B
0048 # define OSSL_QUIC_ERR_APPLICATION_ERROR 0x0C
0049 # define OSSL_QUIC_ERR_CRYPTO_BUFFER_EXCEEDED 0x0D
0050 # define OSSL_QUIC_ERR_KEY_UPDATE_ERROR 0x0E
0051 # define OSSL_QUIC_ERR_AEAD_LIMIT_REACHED 0x0F
0052 # define OSSL_QUIC_ERR_NO_VIABLE_PATH 0x10
0053
0054
0055 # define OSSL_QUIC_ERR_CRYPTO_ERR_BEGIN 0x0100
0056 # define OSSL_QUIC_ERR_CRYPTO_ERR_END 0x01FF
0057
0058 # define OSSL_QUIC_ERR_CRYPTO_ERR(X) \
0059 (OSSL_QUIC_ERR_CRYPTO_ERR_BEGIN + (X))
0060
0061
0062 # define OSSL_QUIC_LOCAL_ERR_IDLE_TIMEOUT \
0063 ((uint64_t)0xFFFFFFFFFFFFFFFFULL)
0064
0065 # ifdef __cplusplus
0066 }
0067 # endif
0068
0069 # endif
0070 #endif