summaryrefslogtreecommitdiffstats
path: root/include/internal/quic_error.h
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-01 11:02:08 +0200
committerMatt Caswell <matt@openssl.org>2023-08-08 15:33:42 +0200
commit398922463fd2fb0df52443932ca3e140554e5334 (patch)
treee722a9a6a697c109cd0b40bdde0578f08480a125 /include/internal/quic_error.h
parentQUIC CHANNEL: Improve error reporting (diff)
downloadopenssl-398922463fd2fb0df52443932ca3e140554e5334.tar.xz
openssl-398922463fd2fb0df52443932ca3e140554e5334.zip
QUIC: Move string conversion functions into a source file
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21547)
Diffstat (limited to 'include/internal/quic_error.h')
-rw-r--r--include/internal/quic_error.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/include/internal/quic_error.h b/include/internal/quic_error.h
index 9495c3e67d..46bda1376d 100644
--- a/include/internal/quic_error.h
+++ b/include/internal/quic_error.h
@@ -46,33 +46,7 @@
# define QUIC_ERR_CRYPTO_NO_APP_PROTO \
QUIC_ERR_CRYPTO_ERR(TLS1_AD_NO_APPLICATION_PROTOCOL)
-static ossl_inline ossl_unused const char *
-ossl_quic_err_to_string(uint64_t error_code)
-{
- switch (error_code) {
-#define X(name) case QUIC_ERR_##name: return #name;
- X(NO_ERROR)
- X(INTERNAL_ERROR)
- X(CONNECTION_REFUSED)
- X(FLOW_CONTROL_ERROR)
- X(STREAM_LIMIT_ERROR)
- X(STREAM_STATE_ERROR)
- X(FINAL_SIZE_ERROR)
- X(FRAME_ENCODING_ERROR)
- X(TRANSPORT_PARAMETER_ERROR)
- X(CONNECTION_ID_LIMIT_ERROR)
- X(PROTOCOL_VIOLATION)
- X(INVALID_TOKEN)
- X(APPLICATION_ERROR)
- X(CRYPTO_BUFFER_EXCEEDED)
- X(KEY_UPDATE_ERROR)
- X(AEAD_LIMIT_REACHED)
- X(NO_VIABLE_PATH)
-#undef X
- default:
- return NULL;
- }
-}
+const char *ossl_quic_err_to_string(uint64_t error_code);
# endif