curl/lib/vtls
Viktor Szakats 434db995a7
mbedtls: fix -Wnull-dereference and -Wredundant-decls
- Silence warning in mbedTLS v3.5.1 public headers:
  ```
  ./mbedtls/_x64-linux-musl/usr/include/psa/crypto_extra.h:489:14: warning: redundant redeclaration of 'psa_set_key_domain_parameters' [-Wredundant-decls]
  ./mbedtls/_x64-linux-musl/usr/include/psa/crypto_struct.h:354:14: note: previous declaration of 'psa_set_key_domain_parameters' was here
  ```
  Ref: ecec68a2c1
  Ref: https://github.com/libssh2/libssh2/pull/1226

- Fix compiler warnings seen with gcc 9.2.0 + cmake unity:
  ```
  ./curl/lib/vtls/mbedtls.c: In function 'mbedtls_bio_cf_read':
  ./curl/lib/vtls/mbedtls.c:189:11: warning: null pointer dereference [-Wnull-dereference]
    189 |   nread = Curl_conn_cf_recv(cf->next, data, (char *)buf, blen, &result);
        |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ./curl/lib/vtls/mbedtls.c: In function 'mbedtls_bio_cf_write':
  ./curl/lib/vtls/mbedtls.c:168:14: warning: null pointer dereference [-Wnull-dereference]
    168 |   nwritten = Curl_conn_cf_send(cf->next, data, (char *)buf, blen, &result);
        |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ```

- delete stray `#else`.

Closes #12720
2024-01-18 07:09:31 +00:00
..
bearssl.c lib: reduce use of strncpy 2023-12-11 23:29:02 +01:00
bearssl.h
gtls.c gnutls: fix build with --disable-verbose 2023-12-16 22:06:21 +01:00
gtls.h vtls/vquic, keep peer name information together 2023-11-19 13:55:22 +01:00
hostcheck.c gskit: remove 2023-08-07 20:57:48 +02:00
hostcheck.h
keylog.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
keylog.h
mbedtls.c mbedtls: fix -Wnull-dereference and -Wredundant-decls 2024-01-18 07:09:31 +00:00
mbedtls.h
mbedtls_threadlock.c misc: fix -Walloc-size warnings 2023-11-11 23:35:47 +01:00
mbedtls_threadlock.h
openssl.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
openssl.h vtls: consistently use typedef names for OpenSSL structs 2023-12-01 23:00:43 +01:00
rustls.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
rustls.h
schannel.c schannel: fix -Warith-conversion gcc 13 warning 2024-01-02 07:50:47 +00:00
schannel.h build: do not publish HAVE_BORINGSSL, HAVE_AWSLC macros 2023-10-08 22:29:45 +00:00
schannel_int.h schannel: add CA cache support for files and memory blobs 2023-11-11 04:11:11 -05:00
schannel_verify.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
sectransp.c sectransp: do verify_cert without memdup for blobs 2024-01-10 23:22:52 +01:00
sectransp.h
vtls.c vtls: fix missing multissl version info 2023-12-27 17:49:27 -05:00
vtls.h vtls: remove the Curl_cft_ssl_proxy object if CURL_DISABLE_PROXY 2023-12-07 09:31:05 +01:00
vtls_int.h openssl: when a session-ID is reused, skip OCSP stapling 2023-11-28 22:59:10 +01:00
wolfssl.c wolfssl: load certificate *chain* for PEM client certs 2024-01-06 11:24:11 +01:00
wolfssl.h
x509asn1.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
x509asn1.h gskit: remove 2023-08-07 20:57:48 +02:00