Skip to content

Commit e77fdf8

Browse files
committed
cmake: properly abort if no mbedTLS cert location is found
When using mbedTLS as backend, then the user may specify the location of where system certificates are installed. If no such location is provided by the user, CMake will try to autodetect the location by using the openssl executable, if installed. If no location could be detected, then the mbedTLS is essentially worthless as it is completely unable to verify any certificates. To avoid use of such misconfigured mbedTLS configurations, let's error out if we were unable to find out the location.
1 parent 48d23a8 commit e77fdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/SelectHTTPSBackend.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ IF(HTTPS_BACKEND)
9191
ENDIF()
9292
ENDFOREACH()
9393
ELSE()
94-
MESSAGE("Unable to find OpenSSL executable. Please provide default certificate location via CERT_LOCATION")
94+
MESSAGE(FATAL_ERROR "Unable to find OpenSSL executable. Please provide default certificate location via CERT_LOCATION")
9595
ENDIF()
9696
ENDIF()
9797

0 commit comments

Comments
 (0)