diff -Nru librabbitmq-0.10.0/debian/changelog librabbitmq-0.10.0/debian/changelog --- librabbitmq-0.10.0/debian/changelog 2021-10-07 12:17:49.000000000 +0200 +++ librabbitmq-0.10.0/debian/changelog 2021-11-17 14:22:23.000000000 +0100 @@ -1,3 +1,10 @@ +librabbitmq (0.10.0-1ubuntu1) jammy; urgency=medium + + * d/p/ssl-remove-reference-to-FIPS_set_mode.patch: backported + to fix the build against OpenSSL 3.0 (LP: #1945812) + + -- Simon Chopin Wed, 17 Nov 2021 14:22:23 +0100 + librabbitmq (0.10.0-1build1) impish; urgency=medium * No-change rebuild to build packages with zstd compression. diff -Nru librabbitmq-0.10.0/debian/control librabbitmq-0.10.0/debian/control --- librabbitmq-0.10.0/debian/control 2020-01-11 20:13:36.000000000 +0100 +++ librabbitmq-0.10.0/debian/control 2021-11-17 14:22:23.000000000 +0100 @@ -1,7 +1,8 @@ Source: librabbitmq Priority: optional Section: libs -Maintainer: Michael Fladischer +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Michael Fladischer Uploaders: Brian May , Build-Depends: diff -Nru librabbitmq-0.10.0/debian/patches/series librabbitmq-0.10.0/debian/patches/series --- librabbitmq-0.10.0/debian/patches/series 2020-01-11 20:13:36.000000000 +0100 +++ librabbitmq-0.10.0/debian/patches/series 2021-11-17 14:21:11.000000000 +0100 @@ -1,3 +1,4 @@ cmake_with_ssl.patch use_cmake_package.patch disable-test-basic.patch +ssl-remove-reference-to-FIPS_set_mode.patch diff -Nru librabbitmq-0.10.0/debian/patches/ssl-remove-reference-to-FIPS_set_mode.patch librabbitmq-0.10.0/debian/patches/ssl-remove-reference-to-FIPS_set_mode.patch --- librabbitmq-0.10.0/debian/patches/ssl-remove-reference-to-FIPS_set_mode.patch 1970-01-01 01:00:00.000000000 +0100 +++ librabbitmq-0.10.0/debian/patches/ssl-remove-reference-to-FIPS_set_mode.patch 2021-11-17 14:22:23.000000000 +0100 @@ -0,0 +1,37 @@ +From 23856b8cce06d0ed0a4e65f46bde27df409fe9f6 Mon Sep 17 00:00:00 2001 +From: Alan Antonuk +Date: Fri, 5 Mar 2021 06:44:15 +0000 +Subject: [PATCH] ssl: remove reference to FIPS_set_mode +Origin: https://github.com/alanxz/rabbitmq-c/pull/657 + +This was cargo-culted from the OpenSSL wiki for uninitializing OpenSSL. +This API has been removed v3.x and newer of OpenSSL, additionally +rabbitmq-c doesn't use FIPS mode, so this is likely a no-op even using +older OpenSSL. + +Fixes #654 +Fixes #627 + +Signed-off-by: GitHub +--- + librabbitmq/amqp_openssl.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c +index 0a37fe0..3cebd58 100644 +--- a/librabbitmq/amqp_openssl.c ++++ b/librabbitmq/amqp_openssl.c +@@ -753,10 +753,6 @@ int amqp_uninitialize_ssl_library(void) { + ERR_remove_state(0); + #endif + +-#ifndef LIBRESSL_VERSION_NUMBER +- FIPS_mode_set(0); +-#endif +- + CRYPTO_set_locking_callback(NULL); + CRYPTO_set_id_callback(NULL); + { +-- +2.32.0 +