quic_error.h 868 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef OSSL_QUIC_ERROR_H
  10. # define OSSL_QUIC_ERROR_H
  11. # include <openssl/ssl.h>
  12. # include <openssl/quic.h>
  13. # ifndef OPENSSL_NO_QUIC
  14. # define OSSL_QUIC_ERR_CRYPTO_UNEXPECTED_MESSAGE \
  15. OSSL_QUIC_ERR_CRYPTO_ERR(SSL3_AD_UNEXPECTED_MESSAGE)
  16. # define OSSL_QUIC_ERR_CRYPTO_MISSING_EXT \
  17. OSSL_QUIC_ERR_CRYPTO_ERR(TLS13_AD_MISSING_EXTENSION)
  18. # define OSSL_QUIC_ERR_CRYPTO_NO_APP_PROTO \
  19. OSSL_QUIC_ERR_CRYPTO_ERR(TLS1_AD_NO_APPLICATION_PROTOCOL)
  20. const char *ossl_quic_err_to_string(uint64_t error_code);
  21. # endif
  22. #endif