1*e7be843bSPierre Pronchery /* 2*e7be843bSPierre Pronchery * Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved. 3*e7be843bSPierre Pronchery * 4*e7be843bSPierre Pronchery * Licensed under the Apache License 2.0 (the "License"). You may not use 5*e7be843bSPierre Pronchery * this file except in compliance with the License. You can obtain a copy 6*e7be843bSPierre Pronchery * in the file LICENSE in the source distribution or at 7*e7be843bSPierre Pronchery * https://www.openssl.org/source/license.html 8*e7be843bSPierre Pronchery */ 9*e7be843bSPierre Pronchery 10*e7be843bSPierre Pronchery #ifndef OSSL_QUIC_ERROR_H 11*e7be843bSPierre Pronchery # define OSSL_QUIC_ERROR_H 12*e7be843bSPierre Pronchery 13*e7be843bSPierre Pronchery # include <openssl/ssl.h> 14*e7be843bSPierre Pronchery # include <openssl/quic.h> 15*e7be843bSPierre Pronchery 16*e7be843bSPierre Pronchery # ifndef OPENSSL_NO_QUIC 17*e7be843bSPierre Pronchery 18*e7be843bSPierre Pronchery # define OSSL_QUIC_ERR_CRYPTO_UNEXPECTED_MESSAGE \ 19*e7be843bSPierre Pronchery OSSL_QUIC_ERR_CRYPTO_ERR(SSL3_AD_UNEXPECTED_MESSAGE) 20*e7be843bSPierre Pronchery 21*e7be843bSPierre Pronchery # define OSSL_QUIC_ERR_CRYPTO_MISSING_EXT \ 22*e7be843bSPierre Pronchery OSSL_QUIC_ERR_CRYPTO_ERR(TLS13_AD_MISSING_EXTENSION) 23*e7be843bSPierre Pronchery 24*e7be843bSPierre Pronchery # define OSSL_QUIC_ERR_CRYPTO_NO_APP_PROTO \ 25*e7be843bSPierre Pronchery OSSL_QUIC_ERR_CRYPTO_ERR(TLS1_AD_NO_APPLICATION_PROTOCOL) 26*e7be843bSPierre Pronchery 27*e7be843bSPierre Pronchery const char *ossl_quic_err_to_string(uint64_t error_code); 28*e7be843bSPierre Pronchery 29*e7be843bSPierre Pronchery # endif 30*e7be843bSPierre Pronchery 31*e7be843bSPierre Pronchery #endif 32