]> granicus.if.org Git - apache/commitdiff
Merge r1826973 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 9 Apr 2018 15:39:10 +0000 (15:39 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 9 Apr 2018 15:39:10 +0000 (15:39 +0000)
mod_md: Fix compilation with OpenSSL before version 1.0.2.

Symbol ASN1_TIME_diff is only available for 1.0.2+,
but luckily alternative code we can use is already
available, originally written for the LibreSSL case.

Submitted by: rjung
Reviewed by: rjung, ylavic, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1828741 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/md/md_crypt.c

diff --git a/CHANGES b/CHANGES
index fa23ab5640b951240ce4dda7ee73853cf3ffae21..d5177e581a5e366642ec560fe6a2404026cb9b49 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,8 @@ Changes with Apache 2.4.34
   *) mod_ssl: Fix merging of proxy SSL context outside <Proxy> sections,
      regression introduced in 2.4.30. PR 62232. [Rainer Jung, Yann Ylavic]
 
+  *) mod_md: Fix compilation with OpenSSL before version 1.0.2.  [Rainer Jung]
+
   *) mod_remoteip: Restore compatibility with APR 1.4 (apr_sockaddr_is_wildcard).
      [Eric Covener]
 
diff --git a/STATUS b/STATUS
index 4b7076f80e16ce9a01a9980f81388f5ad0893880..02645ca6de766ff05facb13e2b020270b42ef751 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -122,14 +122,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_md: Fix compilation with OpenSSL before version 1.0.2.
-     Symbol ASN1_TIME_diff is only available for 1.0.2+,
-     but luckily alternative code we can use is already
-     available, originally written for the LibreSSL case.
-     trunk patch: http://svn.apache.org/r1826973
-     2.4.x patch: svn merge -c 1826973 ^/httpd/httpd/trunk .
-     +1: rjung, ylavic, jim
-
   *) Some easy proposals:
         - mod_logio, mod_ssl: Remove pointless static in optional fn pointer
           variable declaration
index 66682eaf4d0cd6dfe765ca21063e3162e0ed8c41..3651256cf0380448345626900ec7a30ae85c7fa6 100644 (file)
@@ -190,7 +190,7 @@ static int pem_passwd(char *buf, int size, int rwflag, void *baton)
  */
 static apr_time_t md_asn1_time_get(const ASN1_TIME* time)
 {
-#ifdef LIBRESSL_VERSION_NUMBER
+#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
     /* courtesy: https://stackoverflow.com/questions/10975542/asn1-time-to-time-t-conversion#11263731
      * all bugs are mine */
     apr_time_exp_t t;