For some odd reason it neglects to set openssl paths before checking
this openssl function, but does before every other one.

This breaks when using bundled 1.1.1 on a host with system < 1.1.1 because
the function has been removed in 1.1.1

--- ConfigureChecks.cmake.orig	2022-11-18 16:18:44.000000000 +0100
+++ ConfigureChecks.cmake	2023-07-12 12:36:28.561871218 +0200
@@ -124,6 +124,8 @@
     set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARIES})
     check_function_exists(EVP_DigestVerify HAVE_OPENSSL_EVP_DIGESTVERIFY)
 
+    set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
+    set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
     check_function_exists(OPENSSL_ia32cap_loc HAVE_OPENSSL_IA32CAP_LOC)
 
     set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
