Skip to content

Commit 7931287

Browse files
committed
build: fix ngtcp2 crypto library detection
- Change library link check for ngtcp2_crypto_{gnutls,openssl} to to use function ngtcp2_crypto_recv_client_initial_cb instead of ngtcp2_crypto_ctx_initial. The latter function is no longer external since two days ago in ngtcp2/ngtcp2@533451f. curl HTTP/3 CI builds have been failing since then because they would not link to the ngtcp2 crypto library. Ref: ngtcp2/ngtcp2#356 Closes curl#8372
1 parent 9fe2a20 commit 7931287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@ if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
27182718
if test "x$cross_compiling" != "xyes"; then
27192719
DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
27202720
fi
2721-
AC_CHECK_LIB(ngtcp2_crypto_openssl, ngtcp2_crypto_ctx_initial,
2721+
AC_CHECK_LIB(ngtcp2_crypto_openssl, ngtcp2_crypto_recv_client_initial_cb,
27222722
[
27232723
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
27242724
NGTCP2_ENABLED=1
@@ -2773,7 +2773,7 @@ if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
27732773
if test "x$cross_compiling" != "xyes"; then
27742774
DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
27752775
fi
2776-
AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_ctx_initial,
2776+
AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_recv_client_initial_cb,
27772777
[
27782778
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
27792779
NGTCP2_ENABLED=1

0 commit comments

Comments
 (0)