curl/lib/vtls
Sam James bc8509a748
misc: fix -Walloc-size warnings
GCC 14 introduces a new -Walloc-size included in -Wextra which gives:

```
src/tool_operate.c: In function ‘add_per_transfer’:
src/tool_operate.c:213:5: warning: allocation of insufficient size ‘1’ for type ‘struct per_transfer’ with size ‘480’ [-Walloc-size]
  213 |   p = calloc(sizeof(struct per_transfer), 1);
      |     ^
src/var.c: In function ‘addvariable’:
src/var.c:361:5: warning: allocation of insufficient size ‘1’ for type ‘struct var’ with size ‘32’ [-Walloc-size]
  361 |   p = calloc(sizeof(struct var), 1);
      |     ^
```

The calloc prototype is:
```
void *calloc(size_t nmemb, size_t size);
    ```

So, just swap the number of members and size arguments to match the
prototype, as we're initialising 1 struct of size `sizeof(struct
...)`. GCC then sees we're not doing anything wrong.

Closes #12292
2023-11-11 23:35:47 +01:00
..
bearssl.c lib: introduce struct easy_poll_set for poll information 2023-10-25 09:34:32 +02:00
bearssl.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
gtls.c lib: introduce struct easy_poll_set for poll information 2023-10-25 09:34:32 +02:00
gtls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
hostcheck.c gskit: remove 2023-08-07 20:57:48 +02:00
hostcheck.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
keylog.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
keylog.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mbedtls_threadlock.c misc: fix -Walloc-size warnings 2023-11-11 23:35:47 +01:00
mbedtls_threadlock.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mbedtls.c lib: introduce struct easy_poll_set for poll information 2023-10-25 09:34:32 +02:00
mbedtls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
openssl.c tidy-up: use OPENSSL_VERSION_NUMBER 2023-11-08 17:55:22 +00:00
openssl.h ngtcp2: add CURLOPT_SSL_CTX_FUNCTION support for openssl+wolfssl 2023-01-10 13:41:21 +01:00
rustls.c lib: introduce struct easy_poll_set for poll information 2023-10-25 09:34:32 +02:00
rustls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01: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 schannel: add CA cache support for files and memory blobs 2023-11-11 04:11:11 -05:00
schannel.c schannel: add CA cache support for files and memory blobs 2023-11-11 04:11:11 -05:00
schannel.h build: do not publish HAVE_BORINGSSL, HAVE_AWSLC macros 2023-10-08 22:29:45 +00:00
sectransp.c misc: fix -Walloc-size warnings 2023-11-11 23:35:47 +01:00
sectransp.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
vtls_int.h vtls: use ALPN "http/1.1" for HTTP/1.x, including HTTP/1.0 2023-11-07 11:43:50 +01:00
vtls.c vtls: use ALPN "http/1.1" for HTTP/1.x, including HTTP/1.0 2023-11-07 11:43:50 +01:00
vtls.h vtls: late clone of connection ssl config 2023-11-02 14:30:42 +01:00
wolfssl.c wolfssl: add default case for wolfssl_connect_step1 switch 2023-10-29 14:52:19 +01:00
wolfssl.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
x509asn1.c gskit: remove 2023-08-07 20:57:48 +02:00
x509asn1.h gskit: remove 2023-08-07 20:57:48 +02:00