This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new fba007e709 require at least OpenSSL version 1.1.1 (#10778)
fba007e709 is described below

commit fba007e709ce3975a5d21e0a9eea075afb17cc97
Author: Chris McFarlen <ch...@mcfarlen.us>
AuthorDate: Tue Dec 5 10:07:40 2023 -0600

    require at least OpenSSL version 1.1.1 (#10778)
    
    * require at least OpenSSL version 1.1.1
    
    * adjust check to account for boringssl
    
    * less than
    
    ---------
    
    Co-authored-by: Chris McFarlen <cmcfar...@apple.com>
---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69bfab1de2..2d2b543046 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,6 +283,10 @@ include(CheckOpenSSLIsBoringSSL)
 find_package(OpenSSL REQUIRED)
 check_openssl_is_boringssl(OPENSSL_IS_BORINGSSL "${OPENSSL_INCLUDE_DIR}")
 
+if(NOT OPENSSL_IS_BORINGSSL AND OPENSSL_VERSION VERSION_LESS "1.1.1")
+  message(FATAL_ERROR "OpenSSL version greater than 1.0.1 or BoringSSL 
required")
+endif()
+
 if(OPENSSL_VERSION VERSION_GREATER_EQUAL "3.0.0")
   set(OPENSSL_IS_OPENSSL3 TRUE)
   add_compile_definitions(OPENSSL_API_COMPAT=10002 OPENSSL_IS_OPENSSL3)

Reply via email to