mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 19:39:03 +08:00
08bb6e106e
* Update to 7.81.0 * Revise curl wrapper, fix `COMPONENTS` * Update versions * Add fix for multi-ssl config * [skip actions] CI feature test * Refactor lib export fixup Handle Debug/Release/IMPORTED_*... * Fix libssh2 lookup * Fix libidn2.pc for windows * Fix libidn2 import * Fix mbedtls import * Simplify options * [skip actions] CI feature test * Revert CI feature test configuration * Update versions * Limit import lib fixup to WIN32 * Update versions
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
diff --git a/lib/vtls/openssl.h b/lib/vtls/openssl.h
|
|
index 28058453c0b3..a7c193b37e46 100644
|
|
--- a/lib/vtls/openssl.h
|
|
+++ b/lib/vtls/openssl.h
|
|
@@ -7,7 +7,7 @@
|
|
* | (__| |_| | _ <| |___
|
|
* \___|\___/|_| \_\_____|
|
|
*
|
|
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
*
|
|
* This software is licensed as described in the file COPYING, which
|
|
* you should have received as part of this distribution. The terms
|
|
@@ -30,11 +30,17 @@
|
|
* and ngtcp2.c
|
|
*/
|
|
|
|
-#include <openssl/x509v3.h>
|
|
#include "urldata.h"
|
|
|
|
+/*
|
|
+ * In an affort to avoid using 'X509 *' here, we instead use the struct
|
|
+ * x509_st version of the type so that we can forward-declare it here without
|
|
+ * having to include <openssl/x509v3.h>. Including that header causes name
|
|
+ * conflicts when libcurl is built with both Schannel and OpenSSL support.
|
|
+ */
|
|
+struct x509_st;
|
|
CURLcode Curl_ossl_verifyhost(struct Curl_easy *data, struct connectdata *conn,
|
|
- X509 *server_cert);
|
|
+ struct x509_st *server_cert);
|
|
extern const struct Curl_ssl Curl_ssl_openssl;
|
|
|
|
#endif /* USE_OPENSSL */
|