]> granicus.if.org Git - curl/commitdiff
build-openssl.bat: Warn OpenSSL 1.1.0 not yet supported
authorJay Satiro <raysatiro@yahoo.com>
Wed, 4 Oct 2017 04:56:31 +0000 (00:56 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 4 Oct 2017 05:04:43 +0000 (01:04 -0400)
Ref: https://github.com/curl/curl/issues/1002

projects/build-openssl.bat

index 0773e07db584593fa1ec5373c56be30f9ed265a0..33da174016dd661088992ac0d59812a982cad09d 100644 (file)
@@ -138,6 +138,9 @@ rem ***************************************************************************
   rem Check the start directory exists
   if not exist "%START_DIR%" goto noopenssl
 
+  rem Check that OpenSSL is not unsupported version 1.1.0
+  if not exist "%START_DIR%\ms\do_ms.bat" goto unsupported
+
 :configure
   if "%BUILD_PLATFORM%" == "" (
     if "%VC_VER%" == "6.0" (
@@ -355,6 +358,14 @@ rem ***************************************************************************
   echo Error: Cannot locate OpenSSL source directory
   goto error
 
+:unsupported
+  echo.
+  echo Error: Unsupported OpenSSL version.
+  echo The pre-generated project files and this build script only support the
+  echo LTS version of OpenSSL ^(v1.0.2^). The next version of this build script
+  echo will support OpenSSL v1.1.0.
+  goto error
+
 :error
   if "%OS%" == "Windows_NT" endlocal
   exit /B 1