diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-01-04 14:52:15 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-01-04 14:52:15 -0500 |
commit | df3624944133854d00caa9519e114cf3b9259c22 (patch) | |
tree | 0451848dbeae2d85e7eb205b508ca29ef2cb89c8 | |
parent | 9c1531037edf3928b4d2a1ad62b1bceabfb5095a (diff) | |
download | lighttpd-git-df3624944133854d00caa9519e114cf3b9259c22.tar.gz |
[core] update ls-hpack
LiteSpeed ls-hpack v2.3.1
-rw-r--r-- | src/ls-hpack/LICENSE | 2 | ||||
-rw-r--r-- | src/ls-hpack/lshpack.c | 2 | ||||
-rw-r--r-- | src/ls-hpack/lshpack.h | 4 | ||||
-rw-r--r-- | src/ls-hpack/lsxpack_header.h | 34 |
4 files changed, 21 insertions, 21 deletions
diff --git a/src/ls-hpack/LICENSE b/src/ls-hpack/LICENSE index 73ce28fb..3eb8520b 100644 --- a/src/ls-hpack/LICENSE +++ b/src/ls-hpack/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 - 2020 LiteSpeed Technologies Inc +Copyright (c) 2018 - 2023 LiteSpeed Technologies Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/ls-hpack/lshpack.c b/src/ls-hpack/lshpack.c index 5f11ba90..5091a147 100644 --- a/src/ls-hpack/lshpack.c +++ b/src/ls-hpack/lshpack.c @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2018 - 2021 LiteSpeed Technologies Inc +Copyright (c) 2018 - 2023 LiteSpeed Technologies Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/ls-hpack/lshpack.h b/src/ls-hpack/lshpack.h index d09767bd..32492efe 100644 --- a/src/ls-hpack/lshpack.h +++ b/src/ls-hpack/lshpack.h @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2018 - 2021 LiteSpeed Technologies Inc +Copyright (c) 2018 - 2023 LiteSpeed Technologies Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -35,7 +35,7 @@ extern "C" { #define LSHPACK_MAJOR_VERSION 2 #define LSHPACK_MINOR_VERSION 3 -#define LSHPACK_PATCH_VERSION 0 +#define LSHPACK_PATCH_VERSION 1 #define lshpack_strlen_t lsxpack_strlen_t #define LSHPACK_MAX_STRLEN LSXPACK_MAX_STRLEN diff --git a/src/ls-hpack/lsxpack_header.h b/src/ls-hpack/lsxpack_header.h index 8ec7e449..1f7a0058 100644 --- a/src/ls-hpack/lsxpack_header.h +++ b/src/ls-hpack/lsxpack_header.h @@ -1,5 +1,5 @@ -#ifndef LSXPACK_HEADER_H_v206 -#define LSXPACK_HEADER_H_v206 +#ifndef LSXPACK_HEADER_H_v207 +#define LSXPACK_HEADER_H_v207 #ifdef __cplusplus extern "C" { @@ -70,10 +70,10 @@ lsxpack_header_set_idx(lsxpack_header_t *hdr, int hpack_idx, { memset(hdr, 0, sizeof(*hdr)); hdr->buf = (char *)val; - hdr->hpack_index = hpack_idx; + hdr->hpack_index = (uint8_t)hpack_idx; assert(hpack_idx != 0); assert(val_len <= LSXPACK_MAX_STRLEN); - hdr->val_len = val_len; + hdr->val_len = (lsxpack_strlen_t)val_len; } @@ -83,11 +83,11 @@ lsxpack_header_set_qpack_idx(lsxpack_header_t *hdr, int qpack_idx, { memset(hdr, 0, sizeof(*hdr)); hdr->buf = (char *)val; - hdr->qpack_index = qpack_idx; + hdr->qpack_index = (uint8_t)qpack_idx; assert(qpack_idx != -1); hdr->flags = LSXPACK_QPACK_IDX; assert(val_len <= LSXPACK_MAX_STRLEN); - hdr->val_len = val_len; + hdr->val_len = (lsxpack_strlen_t)val_len; } @@ -98,13 +98,13 @@ lsxpack_header_set_offset(lsxpack_header_t *hdr, const char *buf, { memset(hdr, 0, sizeof(*hdr)); hdr->buf = (char *)buf; - hdr->name_offset = name_offset; + hdr->name_offset = (lsxpack_strlen_t)name_offset; assert(name_len <= LSXPACK_MAX_STRLEN); - hdr->name_len = name_len; + hdr->name_len = (lsxpack_strlen_t)name_len; assert(name_offset + name_len + 2 <= LSXPACK_MAX_STRLEN); - hdr->val_offset = name_offset + name_len + 2; + hdr->val_offset = (lsxpack_strlen_t)(name_offset + name_len + 2); assert(val_len <= LSXPACK_MAX_STRLEN); - hdr->val_len = val_len; + hdr->val_len = (lsxpack_strlen_t)val_len; } @@ -115,13 +115,13 @@ lsxpack_header_set_offset2(lsxpack_header_t *hdr, const char *buf, { memset(hdr, 0, sizeof(*hdr)); hdr->buf = (char *)buf; - hdr->name_offset = name_offset; + hdr->name_offset = (lsxpack_strlen_t)name_offset; assert(name_len <= LSXPACK_MAX_STRLEN); - hdr->name_len = name_len; + hdr->name_len = (lsxpack_strlen_t)name_len; assert(val_offset <= LSXPACK_MAX_STRLEN); - hdr->val_offset = val_offset; + hdr->val_offset = (lsxpack_strlen_t)val_offset; assert(val_len <= LSXPACK_MAX_STRLEN); - hdr->val_len = val_len; + hdr->val_len = (lsxpack_strlen_t)val_len; } @@ -132,11 +132,11 @@ lsxpack_header_prepare_decode(lsxpack_header_t *hdr, memset(hdr, 0, sizeof(*hdr)); hdr->buf = out; assert(offset <= LSXPACK_MAX_STRLEN); - hdr->name_offset = offset; + hdr->name_offset = (lsxpack_strlen_t)offset; if (len > LSXPACK_MAX_STRLEN) hdr->val_len = LSXPACK_MAX_STRLEN; else - hdr->val_len = len; + hdr->val_len = (lsxpack_strlen_t)len; } @@ -165,4 +165,4 @@ lsxpack_header_mark_val_changed(lsxpack_header_t *hdr) } #endif -#endif //LSXPACK_HEADER_H_v206 +#endif //LSXPACK_HEADER_H_v207 |