Skip to content

Commit 345d6ad

Browse files
nodejs-github-botaduh95
authored andcommitted
deps: update ngtcp2 to 1.23.0
PR-URL: #63777 Backport-PR-URL: #64675 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent a53db01 commit 345d6ad

114 files changed

Lines changed: 7184 additions & 9765 deletions

File tree

Some content is hidden

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

deps/ngtcp2/ngtcp2/crypto/boringssl/boringssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ int ngtcp2_crypto_hp_mask(uint8_t *dest, const ngtcp2_crypto_cipher *hp,
432432
int ngtcp2_crypto_read_write_crypto_data(
433433
ngtcp2_conn *conn, ngtcp2_encryption_level encryption_level,
434434
const uint8_t *data, size_t datalen) {
435-
SSL *ssl = ngtcp2_conn_get_tls_native_handle(conn);
435+
SSL *ssl = ngtcp2_conn_get_tls_native_handle2(conn);
436436
int rv;
437437
int err;
438438

@@ -444,7 +444,7 @@ int ngtcp2_crypto_read_write_crypto_data(
444444
return -1;
445445
}
446446

447-
if (!ngtcp2_conn_get_handshake_completed(conn)) {
447+
if (!ngtcp2_conn_get_handshake_completed2(conn)) {
448448
retry:
449449
rv = SSL_do_handshake(ssl);
450450
if (rv <= 0) {
@@ -456,7 +456,7 @@ int ngtcp2_crypto_read_write_crypto_data(
456456
case SSL_ERROR_SSL:
457457
return -1;
458458
case SSL_ERROR_EARLY_DATA_REJECTED:
459-
assert(!ngtcp2_conn_is_server(conn));
459+
assert(!ngtcp2_conn_is_server2(conn));
460460

461461
SSL_reset_early_data_reject(ssl);
462462

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* ngtcp2
3+
*
4+
* Copyright (c) 2026 ngtcp2 contributors
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining
7+
* a copy of this software and associated documentation files (the
8+
* "Software"), to deal in the Software without restriction, including
9+
* without limitation the rights to use, copy, modify, merge, publish,
10+
* distribute, sublicense, and/or sell copies of the Software, and to
11+
* permit persons to whom the Software is furnished to do so, subject to
12+
* the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be
15+
* included in all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21+