diff options
author | Stefan Eissing <icing@apache.org> | 2022-04-28 12:41:48 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-04-28 12:41:48 +0200 |
commit | cc894406d8e2c2afb79269dcb6190c28837fc142 (patch) | |
tree | a752249e118d43878e45172bb8cf246f281b9997 /modules/http2 | |
parent | The only caller of hm_processmsg() passes an apr_size_t for the last paramete... (diff) | |
download | apache2-cc894406d8e2c2afb79269dcb6190c28837fc142.tar.xz apache2-cc894406d8e2c2afb79269dcb6190c28837fc142.zip |
*) mod_http2: remove unused and insecure code. Fixes PR66037.
Thanks to Ronald Crane (Zippenhop LLC) for reporting this.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2')
-rw-r--r-- | modules/http2/h2_util.c | 20 | ||||
-rw-r--r-- | modules/http2/h2_util.h | 4 |
2 files changed, 0 insertions, 24 deletions
diff --git a/modules/http2/h2_util.c b/modules/http2/h2_util.c index 467d01db2f..7a9466eacc 100644 --- a/modules/http2/h2_util.c +++ b/modules/http2/h2_util.c @@ -76,26 +76,6 @@ size_t h2_util_hex_dump(char *buffer, size_t maxlen, return strlen(buffer); } -size_t h2_util_header_print(char *buffer, size_t maxlen, - const char *name, size_t namelen, - const char *value, size_t valuelen) -{ - size_t offset = 0; - size_t i; - for (i = 0; i < namelen && offset < maxlen; ++i, ++offset) { - buffer[offset] = name[i]; - } - for (i = 0; i < 2 && offset < maxlen; ++i, ++offset) { - buffer[offset] = ": "[i]; - } - for (i = 0; i < valuelen && offset < maxlen; ++i, ++offset) { - buffer[offset] = value[i]; - } - buffer[offset] = '\0'; - return offset; -} - - void h2_util_camel_case_header(char *s, size_t len) { size_t start = 1; diff --git a/modules/http2/h2_util.h b/modules/http2/h2_util.h index 8ef944c8e0..5a3dbe5142 100644 --- a/modules/http2/h2_util.h +++ b/modules/http2/h2_util.h @@ -28,10 +28,6 @@ struct nghttp2_frame; size_t h2_util_hex_dump(char *buffer, size_t maxlen, const char *data, size_t datalen); -size_t h2_util_header_print(char *buffer, size_t maxlen, - const char *name, size_t namelen, - const char *value, size_t valuelen); - void h2_util_camel_case_header(char *s, size_t len); int h2_util_frame_print(const nghttp2_frame *frame, char *buffer, size_t maxlen); |