Skip to content

Commit 5cd9919

Browse files
committed
1.65.0
1 parent d13afce commit 5cd9919

47 files changed

Lines changed: 4417 additions & 4969 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deps/nghttp2/lib/CMakeLists.txt

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,7 @@ if(WIN32)
4747
set(NGHTTP2_RES ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
4848
endif()
4949

50-
set(NGHTTP2_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
51-
set(NGHTTP2_VERSION_CONFIG "${NGHTTP2_GENERATED_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
52-
set(NGHTTP2_PROJECT_CONFIG "${NGHTTP2_GENERATED_DIR}/${PROJECT_NAME}Config.cmake")
53-
set(NGHTTP2_TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
54-
set(NGHTTP2_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
55-
set(NGHTTP2_NAMESPACE "${PROJECT_NAME}::")
56-
set(NGHTTP2_VERSION ${PROJECT_VERSION})
57-
58-
include(CMakePackageConfigHelpers)
59-
write_basic_package_version_file(
60-
"${NGHTTP2_VERSION_CONFIG}" VERSION ${NGHTTP2_VERSION} COMPATIBILITY SameMajorVersion
61-
)
62-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.in" "${NGHTTP2_PROJECT_CONFIG}" @ONLY)
63-
64-
# Install cmake config files
65-
install(
66-
FILES "${NGHTTP2_PROJECT_CONFIG}" "${NGHTTP2_VERSION_CONFIG}"
67-
DESTINATION "${NGHTTP2_CONFIG_INSTALL_DIR}")
68-
69-
install(
70-
EXPORT "${NGHTTP2_TARGETS_EXPORT_NAME}"
71-
NAMESPACE "${NGHTTP2_NAMESPACE}"
72-
DESTINATION "${NGHTTP2_CONFIG_INSTALL_DIR}")
50+
set(EXPORT_SET "${PROJECT_NAME}-targets")
7351

7452
# Public shared library
7553
if(BUILD_SHARED_LIBS)
@@ -87,11 +65,7 @@ if(BUILD_SHARED_LIBS)
8765
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
8866
)
8967

90-
install(TARGETS ${SHARED_LIB}
91-
EXPORT ${NGHTTP2_TARGETS_EXPORT_NAME}
92-
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
93-
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
94-
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
68+
install(TARGETS ${SHARED_LIB} EXPORT ${EXPORT_SET})
9569
list(APPEND nghttp2_exports ${SHARED_LIB})
9670
endif()
9771

@@ -113,9 +87,7 @@ if(BUILD_STATIC_LIBS)
11387

11488
target_compile_definitions(${STATIC_LIB} PUBLIC "-DNGHTTP2_STATICLIB")
11589

116-
install(TARGETS ${STATIC_LIB}
117-
EXPORT ${NGHTTP2_TARGETS_EXPORT_NAME}
118-
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
90+
install(TARGETS ${STATIC_LIB} EXPORT ${EXPORT_SET})
11991
list(APPEND nghttp2_exports ${STATIC_LIB})
12092
endif()
12193

@@ -125,7 +97,11 @@ else()
12597
set(LIB_SELECTED ${STATIC_LIB})
12698
endif()
12799

128-
add_library(nghttp2 ALIAS ${LIB_SELECTED})
100+
add_library(${PROJECT_NAME}::nghttp2 ALIAS ${LIB_SELECTED})
129101

130102
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libnghttp2.pc"
131103
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
104+
105+
install(EXPORT ${EXPORT_SET}
106+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
107+
NAMESPACE ${PROJECT_NAME}::)

deps/nghttp2/lib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
SUBDIRS = includes
2424

25-
EXTRA_DIST = Makefile.msvc CMakeLists.txt version.rc.in config.cmake.in
25+
EXTRA_DIST = Makefile.msvc CMakeLists.txt version.rc.in
2626

2727
AM_CFLAGS = $(WARNCFLAGS) $(EXTRACFLAG)
2828
AM_CPPFLAGS = -I$(srcdir)/includes -I$(builddir)/includes -DBUILDING_NGHTTP2 \

deps/nghttp2/lib/Makefile.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ LIBNGHTTP3_LIBS = @LIBNGHTTP3_LIBS@
360360
LIBNGTCP2_CFLAGS = @LIBNGTCP2_CFLAGS@
361361
LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS = @LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS@
362362
LIBNGTCP2_CRYPTO_BORINGSSL_LIBS = @LIBNGTCP2_CRYPTO_BORINGSSL_LIBS@
363-
LIBNGTCP2_CRYPTO_LIBRESSL_CFLAGS = @LIBNGTCP2_CRYPTO_LIBRESSL_CFLAGS@
364-
LIBNGTCP2_CRYPTO_LIBRESSL_LIBS = @LIBNGTCP2_CRYPTO_LIBRESSL_LIBS@
365-
LIBNGTCP2_CRYPTO_OSSL_CFLAGS = @LIBNGTCP2_CRYPTO_OSSL_CFLAGS@
366-
LIBNGTCP2_CRYPTO_OSSL_LIBS = @LIBNGTCP2_CRYPTO_OSSL_LIBS@
367363
LIBNGTCP2_CRYPTO_QUICTLS_CFLAGS = @LIBNGTCP2_CRYPTO_QUICTLS_CFLAGS@
368364
LIBNGTCP2_CRYPTO_QUICTLS_LIBS = @LIBNGTCP2_CRYPTO_QUICTLS_LIBS@
369365
LIBNGTCP2_CRYPTO_WOLFSSL_CFLAGS = @LIBNGTCP2_CRYPTO_WOLFSSL_CFLAGS@
@@ -496,7 +492,7 @@ top_srcdir = @top_srcdir@
496492
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
497493
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
498494
SUBDIRS = includes
499-
EXTRA_DIST = Makefile.msvc CMakeLists.txt version.rc.in config.cmake.in
495+
EXTRA_DIST = Makefile.msvc CMakeLists.txt version.rc.in
500496
AM_CFLAGS = $(WARNCFLAGS) $(EXTRACFLAG)
501497
AM_CPPFLAGS = -I$(srcdir)/includes -I$(builddir)/includes -DBUILDING_NGHTTP2 \
502498
@DEFS@

deps/nghttp2/lib/includes/Makefile.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ LIBNGHTTP3_LIBS = @LIBNGHTTP3_LIBS@
265265
LIBNGTCP2_CFLAGS = @LIBNGTCP2_CFLAGS@
266266
LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS = @LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS@
267267
LIBNGTCP2_CRYPTO_BORINGSSL_LIBS = @LIBNGTCP2_CRYPTO_BORINGSSL_LIBS@
268-
LIBNGTCP2_CRYPTO_LIBRESSL_CFLAGS = @LIBNGTCP2_CRYPTO_LIBRESSL_CFLAGS@
269-
LIBNGTCP2_CRYPTO_LIBRESSL_LIBS = @LIBNGTCP2_CRYPTO_LIBRESSL_LIBS@
270-
LIBNGTCP2_CRYPTO_OSSL_CFLAGS = @LIBNGTCP2_CRYPTO_OSSL_CFLAGS@
271-
LIBNGTCP2_CRYPTO_OSSL_LIBS = @LIBNGTCP2_CRYPTO_OSSL_LIBS@
272268
LIBNGTCP2_CRYPTO_QUICTLS_CFLAGS = @LIBNGTCP2_CRYPTO_QUICTLS_CFLAGS@
273269
LIBNGTCP2_CRYPTO_QUICTLS_LIBS = @LIBNGTCP2_CRYPTO_QUICTLS_LIBS@
274270
LIBNGTCP2_CRYPTO_WOLFSSL_CFLAGS = @LIBNGTCP2_CRYPTO_WOLFSSL_CFLAGS@

deps/nghttp2/lib/includes/nghttp2/nghttp2.h

Lines changed: 17 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,19 +2039,18 @@ typedef int (*nghttp2_on_header_callback2)(nghttp2_session *session,
20392039
/**
20402040
* @functypedef
20412041
*
2042-
* Callback function invoked when an invalid header name/value pair is
2042+
* Callback function invoked when a invalid header name/value pair is
20432043
* received for the |frame|.
20442044
*
20452045
* The parameter and behaviour are similar to
20462046
* :type:`nghttp2_on_header_callback`. The difference is that this
2047-
* callback is only invoked when an invalid header name/value pair is
2048-
* received which is treated as stream error if this callback returns
2049-
* :enum:`nghttp2_error.NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE` and
2050-
* :type:`nghttp2_on_invalid_header_callback2` is not set. Only
2051-
* invalid regular header field are passed to this callback. In other
2052-
* words, invalid pseudo header field is not passed to this callback.
2053-
* Also header fields which includes upper cased latter are also
2054-
* treated as error without passing them to this callback.
2047+
* callback is only invoked when a invalid header name/value pair is
2048+
* received which is treated as stream error if this callback is not
2049+
* set. Only invalid regular header field are passed to this
2050+
* callback. In other words, invalid pseudo header field is not
2051+
* passed to this callback. Also header fields which includes upper
2052+
* cased latter are also treated as error without passing them to this
2053+
* callback.
20552054
*
20562055
* This callback is only considered if HTTP messaging validation is
20572056
* turned on (which is on by default, see
@@ -2077,18 +2076,17 @@ typedef int (*nghttp2_on_invalid_header_callback)(
20772076
/**
20782077
* @functypedef
20792078
*
2080-
* Callback function invoked when an invalid header name/value pair is
2079+
* Callback function invoked when a invalid header name/value pair is
20812080
* received for the |frame|.
20822081
*
20832082
* The parameter and behaviour are similar to
20842083
* :type:`nghttp2_on_header_callback2`. The difference is that this
2085-
* callback is only invoked when an invalid header name/value pair is
2086-
* received which is silently ignored if neither this callback nor
2087-
* :type:`nghttp2_on_invalid_header_callback` is set. Only invalid
2088-
* regular header field are passed to this callback. In other words,
2089-
* invalid pseudo header field is not passed to this callback. Also
2090-
* header fields which includes upper cased latter are also treated as
2091-
* error without passing them to this callback.
2084+
* callback is only invoked when a invalid header name/value pair is
2085+
* received which is silently ignored if this callback is not set.
2086+
* Only invalid regular header field are passed to this callback. In
2087+
* other words, invalid pseudo header field is not passed to this
2088+
* callback. Also header fields which includes upper cased latter are
2089+
* also treated as error without passing them to this callback.
20922090
*
20932091
* This callback is only considered if HTTP messaging validation is
20942092
* turned on (which is on by default, see
@@ -2447,15 +2445,6 @@ typedef int (*nghttp2_error_callback2)(nghttp2_session *session,
24472445
int lib_error_code, const char *msg,
24482446
size_t len, void *user_data);
24492447

2450-
/**
2451-
* @functypedef
2452-
*
2453-
* Callback function invoked when unpredictable data of |destlen|
2454-
* bytes are needed. The implementation must write unpredictable data
2455-
* of |destlen| bytes into the buffer pointed by |dest|.
2456-
*/
2457-
typedef void (*nghttp2_rand_callback)(uint8_t *dest, size_t destlen);
2458-
24592448
struct nghttp2_session_callbacks;
24602449

24612450
/**
@@ -2660,7 +2649,7 @@ NGHTTP2_EXTERN void nghttp2_session_callbacks_set_on_header_callback2(
26602649
/**
26612650
* @function
26622651
*
2663-
* Sets callback function invoked when an invalid header name/value
2652+
* Sets callback function invoked when a invalid header name/value
26642653
* pair is received. If both
26652654
* `nghttp2_session_callbacks_set_on_invalid_header_callback()` and
26662655
* `nghttp2_session_callbacks_set_on_invalid_header_callback2()` are
@@ -2673,7 +2662,7 @@ NGHTTP2_EXTERN void nghttp2_session_callbacks_set_on_invalid_header_callback(
26732662
/**
26742663
* @function
26752664
*
2676-
* Sets callback function invoked when an invalid header name/value
2665+
* Sets callback function invoked when a invalid header name/value
26772666
* pair is received.
26782667
*/
26792668
NGHTTP2_EXTERN void nghttp2_session_callbacks_set_on_invalid_header_callback2(
@@ -2844,18 +2833,6 @@ NGHTTP2_EXTERN void nghttp2_session_callbacks_set_error_callback(
28442833
NGHTTP2_EXTERN void nghttp2_session_callbacks_set_error_callback2(
28452834
nghttp2_session_callbacks *cbs, nghttp2_error_callback2 error_callback2);
28462835

2847-
/**
2848-
* @function
2849-
*
2850-
* Sets callback function invoked when unpredictable data is needed.
2851-
* Although this callback is optional due to the backward
2852-
* compatibility, it is recommended to specify it to harden the
2853-
* runtime behavior against suspicious activities of a remote
2854-
* endpoint.
2855-
*/
2856-
NGHTTP2_EXTERN void nghttp2_session_callbacks_set_rand_callback(
2857-
nghttp2_session_callbacks *cbs, nghttp2_rand_callback rand_callback);
2858-
28592836
/**
28602837
* @functypedef
28612838
*
@@ -3241,23 +3218,6 @@ nghttp2_option_set_stream_reset_rate_limit(nghttp2_option *option,
32413218
NGHTTP2_EXTERN void nghttp2_option_set_max_continuations(nghttp2_option *option,
32423219
size_t val);
32433220

3244-
/**
3245-
* @function
3246-
*
3247-
* This function sets the rate limit for the "glitches", the
3248-
* suspicious activities from a remote endpoint. It is a token-bucket
3249-
* based rate limiter. |burst| specifies the number of tokens that is
3250-
* initially available. The maximum number of tokens is capped to
3251-
* this value. |rate| specifies the number of tokens that are
3252-
* regenerated per second. When a suspicious activity is detected,
3253-
* some amount of tokens are consumed. If there is no token
3254-
* available, GOAWAY is sent to tear down the connection. |burst| and
3255-
* |rate| default to 10000 and 330 respectively.
3256-
*/
3257-
NGHTTP2_EXTERN void nghttp2_option_set_glitch_rate_limit(nghttp2_option *option,
3258-
uint64_t burst,
3259-
uint64_t rate);
3260-
32613221
/**
32623222
* @function
32633223
*

deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
* @macro
3030
* Version number of the nghttp2 library release
3131
*/
32-
#define NGHTTP2_VERSION "1.69.0"
32+
#define NGHTTP2_VERSION "1.65.0"
3333

3434
/**
3535
* @macro
3636
* Numerical representation of the version number of the nghttp2 library
3737
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3838
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3939
*/
40-
#define NGHTTP2_VERSION_NUM 0x014500
40+
#define NGHTTP2_VERSION_NUM 0x014100
4141

4242
#endif /* NGHTTP2VER_H */

deps/nghttp2/lib/nghttp2_alpn.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626

2727
#include <string.h>
2828

29-
#include "nghttp2_helper.h"
30-
3129
static int select_alpn(const unsigned char **out, unsigned char *outlen,
3230
const unsigned char *in, unsigned int inlen,
3331
const char *key, unsigned int keylen) {
@@ -43,7 +41,7 @@ static int select_alpn(const unsigned char **out, unsigned char *outlen,
4341
}
4442

4543
#define NGHTTP2_HTTP_1_1_ALPN "\x8http/1.1"
46-
#define NGHTTP2_HTTP_1_1_ALPN_LEN nghttp2_strlen_lit(NGHTTP2_HTTP_1_1_ALPN)
44+
#define NGHTTP2_HTTP_1_1_ALPN_LEN (sizeof(NGHTTP2_HTTP_1_1_ALPN) - 1)
4745

4846
int nghttp2_select_next_protocol(unsigned char **out, unsigned char *outlen,
4947
const unsigned char *in, unsigned int inlen) {

deps/nghttp2/lib/nghttp2_alpn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
#ifdef HAVE_CONFIG_H
2929
# include <config.h>
30-
#endif /* defined(HAVE_CONFIG_H) */
30+
#endif /* HAVE_CONFIG_H */
3131

3232
#include <nghttp2/nghttp2.h>
3333

34-
#endif /* !defined(NGHTTP2_ALPN_H) */
34+
#endif /* NGHTTP2_ALPN_H */

deps/nghttp2/lib/nghttp2_buf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#ifdef HAVE_CONFIG_H
2929
# include <config.h>
30-
#endif /* defined(HAVE_CONFIG_H) */
30+
#endif /* HAVE_CONFIG_H */
3131

3232
#include <nghttp2/nghttp2.h>
3333

@@ -409,4 +409,4 @@ int nghttp2_bufs_next_present(nghttp2_bufs *bufs);
409409
*/
410410
size_t nghttp2_bufs_len(nghttp2_bufs *bufs);
411411

412-
#endif /* !defined(NGHTTP2_BUF_H) */
412+
#endif /* NGHTTP2_BUF_H */

deps/nghttp2/lib/nghttp2_callbacks.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,3 @@ void nghttp2_session_callbacks_set_error_callback2(
201201
nghttp2_session_callbacks *cbs, nghttp2_error_callback2 error_callback2) {
202202
cbs->error_callback2 = error_callback2;
203203
}
204-
205-
void nghttp2_session_callbacks_set_rand_callback(
206-
nghttp2_session_callbacks *cbs, nghttp2_rand_callback rand_callback) {
207-
cbs->rand_callback = rand_callback;
208-
}

0 commit comments

Comments
 (0)