1 /* 2 * Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License 2.0 (the "License"). You may not use 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 8 */ 9 10 #ifndef OSSL_QUIC_ERROR_H 11 # define OSSL_QUIC_ERROR_H 12 13 # include <openssl/ssl.h> 14 # include <openssl/quic.h> 15 16 # ifndef OPENSSL_NO_QUIC 17 18 # define OSSL_QUIC_ERR_CRYPTO_UNEXPECTED_MESSAGE \ 19 OSSL_QUIC_ERR_CRYPTO_ERR(SSL3_AD_UNEXPECTED_MESSAGE) 20 21 # define OSSL_QUIC_ERR_CRYPTO_MISSING_EXT \ 22 OSSL_QUIC_ERR_CRYPTO_ERR(TLS13_AD_MISSING_EXTENSION) 23 24 # define OSSL_QUIC_ERR_CRYPTO_NO_APP_PROTO \ 25 OSSL_QUIC_ERR_CRYPTO_ERR(TLS1_AD_NO_APPLICATION_PROTOCOL) 26 27 const char *ossl_quic_err_to_string(uint64_t error_code); 28 29 # endif 30 31 #endif 32