Blame SOURCES/libreswan-3.32-1861360-nodefault-rsa-pss.patch

084096
From 1dddaa3226fe1b71b68ec9665d93864a5ec69801 Mon Sep 17 00:00:00 2001
084096
From: rpm-build <rpm-build>
084096
Date: Mon, 9 Jan 2023 23:26:10 +0900
084096
Subject: [PATCH] libreswan-3.32-1861360-nodefault-rsa-pss.patch
084096
084096
---
084096
 lib/libipsecconf/confread.c | 5 +++++
084096
 1 file changed, 5 insertions(+)
084096
084096
diff --git a/lib/libipsecconf/confread.c b/lib/libipsecconf/confread.c
084096
index 0444118..ec87646 100644
084096
--- a/lib/libipsecconf/confread.c
084096
+++ b/lib/libipsecconf/confread.c
084096
@@ -1501,9 +1501,14 @@ static bool load_conn(struct starter_conn *conn,
084096
 				   hunk_streq(val, "rsa")) {
084096
 				conn->authby.rsasig = true;
084096
 				conn->authby.rsasig_v1_5 = true;
14b573
+				/*
14b573
+				 * These cause failure with RSA 1024 bits because it uses RSA-PSS
14b573
+				 */
14b573
+#if 0
14b573
 				conn->sighash_policy |= POL_SIGHASH_SHA2_256;
14b573
 				conn->sighash_policy |= POL_SIGHASH_SHA2_384;
14b573
 				conn->sighash_policy |= POL_SIGHASH_SHA2_512;
14b573
+#endif
084096
 			} else if (hunk_streq(val, "never")) {
084096
 				conn->authby.never = true;
14b573
 			/* everything else is only supported for IKEv2 */
084096
-- 
084096
2.39.0
084096