diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2018-05-16 02:02:29 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-05-16 02:21:05 -0400 |
commit | 4584cc44996c2db82542f0e702aee4a6ce5dcb18 (patch) | |
tree | 14922b0c0bc8c95e336c64773cb41c327e5eab20 /lib/vtls/schannel_verify.c | |
parent | 1592ea979220c28d240492a0ea2e127478e2089c (diff) | |
download | curl-4584cc44996c2db82542f0e702aee4a6ce5dcb18.tar.gz |
schannel: disable manual verify if APIs not available
.. because original MinGW and old compilers do not have the Windows API
definitions needed to support manual verification.
Diffstat (limited to 'lib/vtls/schannel_verify.c')
-rw-r--r-- | lib/vtls/schannel_verify.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c index db187dd6b..552b1afe9 100644 --- a/lib/vtls/schannel_verify.c +++ b/lib/vtls/schannel_verify.c @@ -29,15 +29,17 @@ #include "curl_setup.h" -#ifdef USE_SCHANNEL - -#define EXPOSE_SCHANNEL_INTERNAL_STRUCTS - #ifndef USE_WINDOWS_SSPI # error "Can't compile SCHANNEL support without SSPI." #endif +#ifdef USE_SCHANNEL + +#define EXPOSE_SCHANNEL_INTERNAL_STRUCTS #include "schannel.h" + +#ifdef HAS_MANUAL_VERIFY_API + #include "vtls.h" #include "sendf.h" #include "strerror.h" @@ -548,4 +550,5 @@ CURLcode verify_certificate(struct connectdata *conn, int sockindex) return result; } +#endif /* HAS_MANUAL_VERIFY_API */ #endif /* USE_SCHANNEL */ |