Skip to content

Commit

Permalink
OSSM-5001 Modified check for installed OpenSSL
Browse files Browse the repository at this point in the history
Now checks for <openssl/types.h> instead of <openssl/ssl.h> because
<openssl/types.h> is only in OpenSSL 3.0.x. This ensures that if the host
only has OpenSSL 1.1.x headers, they will not be used.

Signed-off-by: Ted Poole <tpoole@redhat.com>
  • Loading branch information
tedjpoole committed Nov 16, 2023
1 parent 5d0a292 commit b5c6d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bssl-compat/cmake/openssl.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(CheckIncludeFile)
include(ExternalProject)

check_include_file ("openssl/ssl.h" OS_OPENSSL_HEADERS)
check_include_file ("openssl/types.h" OS_OPENSSL_HEADERS)
find_library (OS_SSL_LIBRARY ssl)
find_library (OS_CRYPTO_LIBRARY crypto)

Expand Down

0 comments on commit b5c6d09

Please sign in to comment.