For compatibility of applications which use EVP_AEAD APIs, there are a patch and same debian files here.
Your application gets source level compatibility with BoringSSL, LibreSSL and h-yamamo's openssl-chacha20poly1305.
- Required packages:
packaging-dev
,lzip
/ Preparation:sudo apt-get build-dep openssl
(# in some directory)
git clone --depth 1 https://gist.github.com/h-yamamo/eb84154b24ba798b474a219027908cfc
apt-get -d source openssl
tar xf openssl_1.1.0l.orig.tar.gz
cd openssl-1.1.0l
tar xf ../openssl_1.1.0l-1~deb9u6.debian.tar.xz
tar xvf ../eb84154b24ba798b474a219027908cfc/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us