openssl: drop includes unused or duplicate

Also:
- vquic-tls.h: do not include unused headers for non-H3 builds.
- autotools: stop looking for `openssl/x509.h` header.
- cmp-config.pl: delete exception for `openssl/x509.h`.
- examples: format/comment sync between the two touched files.
- openssl: drop unused `curlx/wait.h` include.

Closes #20049
This commit is contained in:
Viktor Szakats 2025-12-20 12:38:19 +01:00
parent 43baf7a426
commit a468e605eb
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
9 changed files with 11 additions and 19 deletions

View file

@ -28,7 +28,6 @@
/* Requires: USE_OPENSSL */
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <stdio.h>

View file

@ -38,9 +38,9 @@
#endif
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <curl/curl.h>
#include <stdio.h>
#if defined(__GNUC__) || defined(__clang__)
@ -189,7 +189,7 @@ int main(void)
else
printf("*** transfer failed ***\n");
/* second try: retrieve page using user certificate and key -> succeeds
/* second try: retrieve page using user certificate and key -> succeeds to
* load the certificate and key by installing a function doing
* the necessary "modifications" to the SSL CONTEXT just before link init
*/