curl/lib/vtls
Viktor Szakats 39628c5084
openssl: do not mix OpenSSL int result with CURLcode variable
Seen with clang-22:
```
lib/vtls/openssl.c:3538:14: error: implicit conversion from 'int' to enumeration type 'CURLcode' is invalid in C++ [-Werror,-Wimplicit-int-enum-cast]
 3538 |     result = SSL_ech_set1_server_names(octx->ssl,
      |            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3539 |                                        peer->origin->hostname, outername,
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3540 |                                        0 /* do send outer */);
      |                                        ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Ref: https://github.com/curl/curl/actions/runs/27769068896/job/82163712258#step:42:43

Cherry-picked from #22086

Closes #22087
2026-06-18 17:30:56 +02:00
..
apple.c ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
apple.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
cipher_suite.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
cipher_suite.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
gtls.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
gtls.h gtls: fix some typos 2026-05-05 08:46:26 +02:00
hostcheck.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
hostcheck.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
keylog.c tidy-up: drop redundant != NULL syntax 2026-06-09 14:37:36 +02:00
keylog.h tidy-up: apply clang-format fixes 2026-05-28 00:05:47 +02:00
mbedtls.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
mbedtls.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
openssl.c openssl: do not mix OpenSSL int result with CURLcode variable 2026-06-18 17:30:56 +02:00
openssl.h tidy-up: apply clang-format fixes 2026-05-28 00:05:47 +02:00
rustls.c dns-httpsrr-lookup: use origin, not peer 2026-06-17 12:04:49 +02:00
rustls.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
schannel.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
schannel.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
schannel_int.h windows: update MS SDK versions in comments 2026-05-15 03:41:33 +02:00
schannel_verify.c tidy-up: miscellaneous 2026-06-11 19:48:07 +02:00
vtls.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
vtls.h tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
vtls_config.c ssl native_ca_store: always reinit 2026-06-08 13:53:54 +02:00
vtls_config.h vtls_config: adjust to origin 2026-06-01 09:39:17 +02:00
vtls_int.h tidy-up: apply clang-format fixes 2026-05-28 00:05:47 +02:00
vtls_scache.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
vtls_scache.h ngtcp2: share common functionality 2026-06-10 13:28:05 +02:00
vtls_spack.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
vtls_spack.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
wolfssl.c dns-httpsrr-lookup: use origin, not peer 2026-06-17 12:04:49 +02:00
wolfssl.h wolfssl: fix -Wmissing-prototypes 2026-04-21 10:09:58 +02:00
x509asn1.c x509asn1: fix DH public key parameter extraction 2026-05-16 01:06:56 +02:00
x509asn1.h x509asn1: fixed and adapted for ASN1tostr unit testing 2026-03-20 13:03:40 +01:00