diff -pruN 0.6.0-1/debian/changelog 0.6.0-1ubuntu1/debian/changelog
--- 0.6.0-1/debian/changelog	2017-11-26 18:35:28.000000000 +0000
+++ 0.6.0-1ubuntu1/debian/changelog	2021-11-26 07:22:41.000000000 +0000
@@ -1,3 +1,21 @@
+git-crypt (0.6.0-1ubuntu1) jammy; urgency=medium
+
+  * Fix the build against OpenSSL 3.0
+
+ -- Simon Chopin <simon.chopin@canonical.com>  Fri, 26 Nov 2021 08:22:41 +0100
+
+git-crypt (0.6.0-1build2) focal; urgency=medium
+
+  * No-change rebuild for libgcc-s1 package name change.
+
+ -- Matthias Klose <doko@ubuntu.com>  Sun, 22 Mar 2020 16:42:25 +0100
+
+git-crypt (0.6.0-1build1) bionic; urgency=high
+
+  * No change rebuild against openssl1.1.
+
+ -- Dimitri John Ledkov <xnox@ubuntu.com>  Tue, 06 Feb 2018 12:41:35 +0000
+
 git-crypt (0.6.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -pruN 0.6.0-1/debian/control 0.6.0-1ubuntu1/debian/control
--- 0.6.0-1/debian/control	2017-11-26 18:32:28.000000000 +0000
+++ 0.6.0-1ubuntu1/debian/control	2018-02-06 12:41:35.000000000 +0000
@@ -1,5 +1,6 @@
 Source: git-crypt
-Maintainer: Andrew Ayer <agwa@andrewayer.name>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Andrew Ayer <agwa@andrewayer.name>
 Section: vcs
 Priority: optional
 Standards-Version: 3.9.8
diff -pruN 0.6.0-1/debian/patches/openssl-compat.patch 0.6.0-1ubuntu1/debian/patches/openssl-compat.patch
--- 0.6.0-1/debian/patches/openssl-compat.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.6.0-1ubuntu1/debian/patches/openssl-compat.patch	2021-11-26 07:21:41.000000000 +0000
@@ -0,0 +1,27 @@
+Subject: Use OpenSSL version numbers to pick the compat layer
+Author: Simon Chopin <simon.chopin@canonical.com>
+
+OPENSSL_API_COMPAT doesn't ensure we have the necessary API exposed. Using
+OPENSSL_VERSION_NUMBER makes things a bit easier with new versions of OpenSSL.
+--- a/crypto-openssl-11.cpp
++++ b/crypto-openssl-11.cpp
+@@ -30,7 +30,7 @@
+ 
+ #include <openssl/opensslconf.h>
+ 
+-#if defined(OPENSSL_API_COMPAT)
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ 
+ #include "crypto.hpp"
+ #include "key.hpp"
+--- a/crypto-openssl-10.cpp
++++ b/crypto-openssl-10.cpp
+@@ -30,7 +30,7 @@
+ 
+ #include <openssl/opensslconf.h>
+ 
+-#if !defined(OPENSSL_API_COMPAT)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ 
+ #include "crypto.hpp"
+ #include "key.hpp"
diff -pruN 0.6.0-1/debian/patches/series 0.6.0-1ubuntu1/debian/patches/series
--- 0.6.0-1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.6.0-1ubuntu1/debian/patches/series	2021-11-26 07:19:10.000000000 +0000
@@ -0,0 +1 @@
+openssl-compat.patch
