MINOR: qpack: prepare error renaming

There is two distinct enums both related to QPACK error management. The
first one is dedicated to RFC defined code. The other one is a set of
internal values returned by qpack_decode_fs(). There has been issues
discovered recently due to the confusion between them.

Rename internal values with the prefix QPACK_RET_*. The older name
QPACK_ERR_* will be used in a future commit for the first enum.
This commit is contained in:
Amaury Denoyelle
2024-05-10 18:17:41 +02:00
parent 25bcdb1d95
commit 2dabcf30be
2 changed files with 36 additions and 36 deletions

View File

@@ -30,13 +30,13 @@ struct http_hdr;
*Nothing to see with the RFC.
*/
enum {
QPACK_ERR_NONE = 0, /* no error */
QPACK_ERR_DECOMP, /* corresponds to RFC 9204 decompression error */
QPACK_ERR_RIC, /* cannot decode Required Insert Count prefix field */
QPACK_ERR_DB, /* cannot decode Delta Base prefix field */
QPACK_ERR_TRUNCATED, /* truncated stream */
QPACK_ERR_HUFFMAN, /* huffman decoding error */
QPACK_ERR_TOO_LARGE, /* decoded request/response is too large */
QPACK_RET_NONE = 0, /* no error */
QPACK_RET_DECOMP, /* corresponds to RFC 9204 decompression error */
QPACK_RET_RIC, /* cannot decode Required Insert Count prefix field */
QPACK_RET_DB, /* cannot decode Delta Base prefix field */
QPACK_RET_TRUNCATED, /* truncated stream */
QPACK_RET_HUFFMAN, /* huffman decoding error */
QPACK_RET_TOO_LARGE, /* decoded request/response is too large */
};
struct qpack_dec {