From 0aaea582e0ec2a610457bad3584344e443f4b4fa Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 17 Mar 2024 14:30:33 +0100 Subject: [PATCH] wolfSSL: do not call the stub function wolfSSL_BIO_set_init() Calling the function isn't necessary and causes the build to fail when wolfSSL has been compiled with NO_WOLFSSL_STUB: Making all in opts CCLD curl ld: error: undefined symbol: wolfSSL_BIO_set_init >>> referenced by wolfssl.c:235 (vtls/wolfssl.c:235) >>> libcurl_la-wolfssl.o:(wolfssl_bio_cf_create) in archive ../lib/.libs/libcurl.a cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Closes #13164 --- lib/vtls/wolfssl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index c264639bac..3187bb8df7 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -232,7 +232,6 @@ static const struct group_name_map gnm[] = { static int wolfssl_bio_cf_create(WOLFSSL_BIO *bio) { wolfSSL_BIO_set_shutdown(bio, 1); - wolfSSL_BIO_set_init(bio, 1); wolfSSL_BIO_set_data(bio, NULL); return 1; } -- 2.47.3