From: Fabian Keil Date: Sun, 17 Mar 2024 13:30:33 +0000 (+0100) Subject: wolfSSL: do not call the stub function wolfSSL_BIO_set_init() X-Git-Tag: curl-8_7_0~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0aaea582e0ec2a610457bad3584344e443f4b4fa;p=thirdparty%2Fcurl.git 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 --- 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; }