curl / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] schannel: Fix build regression introduced in 5a3efb1db for mingw

From: Thomas Glanzmann <thomas_at_glanzmann.de>
Date: Thu, 6 Sep 2018 21:37:15 +0200

---
 lib/vtls/schannel.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index e7d1e3dde..7dfe39460 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -810,7 +810,9 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
       case SEC_E_INTERNAL_ERROR:
       case SEC_E_NO_CREDENTIALS:
       case SEC_E_UNSUPPORTED_FUNCTION:
+#ifdef SEC_E_APPLICATION_PROTOCOL_MISMATCH /* Not defined in mingw */
       case SEC_E_APPLICATION_PROTOCOL_MISMATCH:
+#endif
       default:
         failf(data, "schannel: initial InitializeSecurityContext failed: %s",
               Curl_sspi_strerror(conn, sspi_status));
@@ -1047,7 +1049,9 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
         case SEC_E_INTERNAL_ERROR:
         case SEC_E_NO_CREDENTIALS:
         case SEC_E_UNSUPPORTED_FUNCTION:
-        case SEC_E_APPLICATION_PROTOCOL_MISMATCH:
+#ifdef SEC_E_APPLICATION_PROTOCOL_MISMATCH /* Not defined in mingw */
+      case SEC_E_APPLICATION_PROTOCOL_MISMATCH:
+#endif
         default:
           failf(data, "schannel: next InitializeSecurityContext failed: %s",
                 Curl_sspi_strerror(conn, sspi_status));
-- 
2.11.0
--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLQpVbnN1YnNjcmliZTogaHR0cHM6Ly9jb29sLmhheHguc2UvbGlzdC9saXN0aW5m
by9jdXJsLWxpYnJhcnkKRXRpcXVldHRlOiAgIGh0dHBzOi8vY3VybC5oYXh4LnNlL21haWwvZXRp
cXVldHRlLmh0bWw=
--YiEDa0DAkWCtVeE4--
Received on 2001-09-17