curl/lib/vtls
Viktor Szakats cc5c1553fb
wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds
Without this option `wolfSSL_get_app_data()` always returns NULL.
Disable codepaths using it (and its `set` pair) when curl is built
against a wolfSSL library with this option missing.

Fixing:
```
curl: ../../lib/vtls/wolfssl.c:486: wssl_vtls_new_session_cb: Assertion `cf != ((void *)0)' failed.
```

wolfSSL can be built with the `--enable-context-extra-user-data` or
`-DWOLFSSL_EX_DATA` option to enable this feature. Some higher-level
features also enable it automatically like QUIC, ASIO.

Reported-by: Yedaya Katsman
Bug: https://github.com/curl/curl/pull/19816#issuecomment-3606447845
Ref: https://github.com/curl/curl/actions/runs/19871780796/job/56949160740

Closes #19852
2025-12-07 17:01:45 +01:00
..
apple.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
apple.h apple sectrust: add to features 2025-10-16 10:58:45 +02:00
cipher_suite.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
cipher_suite.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
gtls.c tidy-up: miscellaneous 2025-12-04 20:14:11 +01:00
gtls.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
hostcheck.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
hostcheck.h openssl: some small cleanups 2025-07-18 00:40:26 +02:00
keylog.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c mbedtls: sync format across log messages 2025-12-04 22:49:03 +01:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
mbedtls_threadlock.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
openssl.c vtls: do not reach into ASN1_STRING 2025-12-04 16:14:12 +01:00
openssl.h openssl: simplify HAVE_KEYLOG_CALLBACK guard 2025-12-04 22:49:03 +01:00
rustls.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
rustls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
schannel.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
schannel_int.h build: drop support for VS2008 (Windows) 2025-11-15 15:56:19 +01:00
schannel_verify.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
vtls.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_int.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_scache.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_scache.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_spack.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_spack.h build: fix build errors/warnings in rare configurations 2025-07-23 22:17:03 +02:00
wolfssl.c wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds 2025-12-07 17:01:45 +01:00
wolfssl.h wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds 2025-12-07 17:01:45 +01:00
x509asn1.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
x509asn1.h build: address some -Weverything warnings, update picky warnings 2025-09-20 10:16:15 +02:00