diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-08-01 11:02:08 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-08-08 15:33:42 +0200 |
commit | 398922463fd2fb0df52443932ca3e140554e5334 (patch) | |
tree | e722a9a6a697c109cd0b40bdde0578f08480a125 /include/internal/quic_error.h | |
parent | QUIC CHANNEL: Improve error reporting (diff) | |
download | openssl-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.h | 28 |
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 |