mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
openssl: Fix compilation on Windows when ngtcp2 is enabled
- Include wincrypt before OpenSSL includes so that the latter can properly handle any conflicts between the two. Closes https://github.com/curl/curl/pull/5606
This commit is contained in:
parent
79d8099ff0
commit
ae3d1e04f6
@ -31,6 +31,11 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
/* Wincrypt must be included before anything that could include OpenSSL. */
|
||||
#if defined(USE_WIN32_CRYPTO)
|
||||
#include <wincrypt.h>
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include "sendf.h"
|
||||
#include "formdata.h" /* for the boundary function */
|
||||
@ -48,10 +53,6 @@
|
||||
#include "strerror.h"
|
||||
#include "curl_printf.h"
|
||||
|
||||
#if defined(USE_WIN32_CRYPTO)
|
||||
#include <wincrypt.h>
|
||||
#endif
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/rand.h>
|
||||
#include <openssl/x509v3.h>
|
||||
|
Loading…
Reference in New Issue
Block a user