]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
request 1.1x API compatibility for OpenSSL >=3.x
authorDamien Miller <djm@mindrot.org>
Fri, 24 Jun 2022 04:40:42 +0000 (14:40 +1000)
committerDamien Miller <djm@mindrot.org>
Fri, 24 Jun 2022 04:40:42 +0000 (14:40 +1000)
idea/patch from Pedro Martelletto via GHPR#322; ok dtucker@

configure.ac

index 62c098d6dc7ada1919c704f25a6ad614e1ec82c0..116b9750db4dc61d15c60d389984938fce56c820 100644 (file)
@@ -2796,8 +2796,13 @@ if test "x$openssl" = "xyes" ; then
                                ;;
                        101*)   ;; # 1.1.x
                        200*)   ;; # LibreSSL
-                       300*)   ;; # OpenSSL 3
-                       301*)   ;; # OpenSSL development branch.
+                       300*)
+                               # OpenSSL 3; we use the 1.1x API
+                               CPPFLAGS="$CPPFLAGS -DOPENSSL_API_COMPAT=0x10100000L"
+                               ;;
+                       301*)
+                               # OpenSSL development branch; request 1.1x API
+                               CPPFLAGS="$CPPFLAGS -DOPENSSL_API_COMPAT=0x10100000L"
                        *)
                                AC_MSG_ERROR([Unknown/unsupported OpenSSL version ("$ssl_library_ver")])
                                ;;