diff --git a/winbuild/Makefile.vc b/winbuild/Makefile.vc
index 16235de05f9dd2dd811d858c054a968afe345832..90719a88519bb64f1acde1444f43bee76b9c44f7 100644
--- a/winbuild/Makefile.vc
+++ b/winbuild/Makefile.vc
@@ -95,7 +95,11 @@ USE_SPNEGO = false
 !ENDIF
 
 !IFNDEF ENABLE_WINSSL
+!IFDEF WITH_SSL
+USE_WINSSL = false
+!ELSE
 USE_WINSSL = $(USE_SSPI)
+!ENDIF
 !ELSEIF "$(ENABLE_WINSSL)"=="yes"
 USE_WINSSL = true
 !ELSEIF "$(ENABLE_WINSSL)"=="no"