diff -Nru transmission-3.00/debian/changelog transmission-3.00/debian/changelog --- transmission-3.00/debian/changelog 2022-03-25 11:52:54.000000000 +0200 +++ transmission-3.00/debian/changelog 2023-10-24 08:55:57.000000000 +0300 @@ -1,3 +1,14 @@ +transmission (3.00-2ubuntu3) jammy; urgency=medium + + [ Andrey Kudinov ] + * Dropped patches: + - debian/patches/openssl3-compat.patch: Compatibility with OpenSSL 3, + causes a memory leak. + * debian/patches/transmission-3.00-openssl-3.patch: Compatibility with + OpenSSL 3, without memory leaks. Closes LP: #1973084. + + -- Marius Gedminas Tue, 24 Oct 2023 08:55:57 +0300 + transmission (3.00-2ubuntu2) jammy; urgency=high * No change rebuild for ppc64el baseline bump. diff -Nru transmission-3.00/debian/patches/series transmission-3.00/debian/patches/series --- transmission-3.00/debian/patches/series 2021-12-30 02:48:19.000000000 +0200 +++ transmission-3.00/debian/patches/series 2023-10-24 08:55:57.000000000 +0300 @@ -4,4 +4,4 @@ ayatana-indicators.patch patch-vendored-libdht.patch build_new_autoconf.patch -openssl3-compat.patch +transmission-3.00-openssl-3.patch diff -Nru transmission-3.00/debian/patches/transmission-3.00-openssl-3.patch transmission-3.00/debian/patches/transmission-3.00-openssl-3.patch --- transmission-3.00/debian/patches/transmission-3.00-openssl-3.patch 1970-01-01 03:00:00.000000000 +0300 +++ transmission-3.00/debian/patches/transmission-3.00-openssl-3.patch 2023-10-24 08:55:57.000000000 +0300 @@ -0,0 +1,37 @@ +From 6ee128b95bacaff20746538dc97c2b8e2b9fcc29 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Sun, 15 May 2022 10:54:38 -0400 +Subject: [PATCH] openssl: load "legacy" provider for RC4 + +--- + libtransmission/crypto-utils-openssl.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/libtransmission/crypto-utils-openssl.c b/libtransmission/crypto-utils-openssl.c +index 45fd71913..14d680654 100644 +--- a/libtransmission/crypto-utils-openssl.c ++++ b/libtransmission/crypto-utils-openssl.c +@@ -20,6 +20,9 @@ + #include + #include + #include ++#if OPENSSL_VERSION_MAJOR >= 3 ++#include ++#endif + + #include "transmission.h" + #include "crypto-utils.h" +@@ -184,6 +187,10 @@ static void openssl_evp_cipher_context_free(EVP_CIPHER_CTX* handle) + + tr_rc4_ctx_t tr_rc4_new(void) + { ++#if OPENSSL_VERSION_MAJOR >= 3 ++ OSSL_PROVIDER_load(NULL, "default"); ++ OSSL_PROVIDER_load(NULL, "legacy"); ++#endif + EVP_CIPHER_CTX* handle = EVP_CIPHER_CTX_new(); + + if (check_result(EVP_CipherInit_ex(handle, EVP_rc4(), NULL, NULL, NULL, -1))) +-- +2.35.1 +