-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Description
Compiling libcurl with the combination -DUSE_SCHANNEL, -DHAVE_BORINGSSL and
-DUSE_OPENSSL, breaks in several places because of (from clang-cl):
In file included from vtls/openssl.c:52:
In file included from f:/MingW32/src/inet/Crypto/BoringSSL/include\openssl/ssl.h:145:
f:/MingW32/src/inet/Crypto/BoringSSL/include\openssl/base.h(275,29): error: expected ')'
typedef struct X509_name_st X509_NAME;
^
f:\ProgramFiler-x86\WindowsKits\Include\10.0.16299.0\um\wincrypt.h(2897,55): note: expanded from macro 'X509_NAME'
#define X509_NAME ((LPCSTR) 7)
^
f:/MingW32/src/inet/Crypto/BoringSSL/include\openssl/base.h(275,29): note: to match this '('
f:\ProgramFiler-x86\WindowsKits\Include\10.0.16299.0\um\wincrypt.h(2897,45): note: expanded from macro 'X509_NAME'
#define X509_NAME ((LPCSTR) 7)
^
A fix is already in ldap.c:
#ifdef HAVE_BORINGSSL
# undef X509_NAME
# undef X509_CERT_PAIR
# undef X509_EXTENSIONS
#endifwhich IMHO should be moved to another place. urldata.h?
Reactions are currently unavailable