summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2024-07-05 16:50:24 +0200
committerRuediger Pluem <rpluem@apache.org>2024-07-05 16:50:24 +0200
commit4f33157ffa34735c9bb702f1bb71e58b65095ba0 (patch)
treebc854582e21bf1cd90cdb0531730a20eff48635e /modules
parentmention quirks, add example, clarify (diff)
downloadapache2-4f33157ffa34735c9bb702f1bb71e58b65095ba0.tar.xz
apache2-4f33157ffa34735c9bb702f1bb71e58b65095ba0.zip
* Check for correct OpenSSL version for mod_ssl_ct
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918935 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/ssl/config.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/ssl/config.m4 b/modules/ssl/config.m4
index 8b756b011c..687368aaef 100644
--- a/modules/ssl/config.m4
+++ b/modules/ssl/config.m4
@@ -54,7 +54,17 @@ APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
ssl_ct_objs="mod_ssl_ct.lo ssl_ct_log_config.lo ssl_ct_sct.lo ssl_ct_util.lo"
APACHE_MODULE(ssl_ct, [Support for Certificate Transparency (RFC 6962)], $ssl_ct_objs, , no, [
- dnl TODO: Check for OpenSSL >= 1.0.2
+ AC_MSG_CHECKING([for OpenSSL version >= 1.0.2])
+ AC_TRY_COMPILE([#include <openssl/opensslv.h>],[
+#if !defined(OPENSSL_VERSION_NUMBER)
+#error "Missing OpenSSL version"
+#endif
+#if OPENSSL_VERSION_NUMBER < 0x10002003L
+#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
+#endif],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_ERROR([mod_ssl_ct requires OpenSSL 1.0.2-beta3 or later.])])
+
if test "$enable_ssl" = "no"; then
AC_MSG_ERROR([mod_ssl_ct is dependent on mod_ssl, which is not enabled.])
fi