Blame SOURCES/0001-sshd-Add-final-version-of-RequiredRSASize.patch

0f057d
From 1408f489240dca04f086e4b32b253313eea28ea8 Mon Sep 17 00:00:00 2001
0f057d
From: Jakub Jelen <jjelen@redhat.com>
0f057d
Date: Mon, 26 Sep 2022 15:26:12 +0200
0f057d
Subject: [PATCH] Add final version of RequiredRSASize
0f057d
0f057d
Keep the old version for backward compatibility
0f057d
0f057d
Upstream commit:
0f057d
https://github.com/openssh/openssh-portable/commit/1875042c
0f057d
---
0f057d
 meta/options_body                | 1 +
0f057d
 meta/options_match               | 1 +
0f057d
 templates/sshd_config.j2         | 2 ++
0f057d
 templates/sshd_config_snippet.j2 | 2 ++
0f057d
 4 files changed, 6 insertions(+)
0f057d
0f057d
diff --git a/meta/options_body b/meta/options_body
0f057d
index 8681269..23a00f4 100644
0f057d
--- a/meta/options_body
0f057d
+++ b/meta/options_body
0f057d
@@ -89,6 +89,7 @@ PubkeyAuthentication
0f057d
 RSAAuthentication
0f057d
 RSAMinSize
0f057d
 RekeyLimit
0f057d
+RequiredRSASize
0f057d
 RevokedKeys
0f057d
 RDomain
0f057d
 RhostsRSAAuthentication
0f057d
diff --git a/meta/options_match b/meta/options_match
0f057d
index 6ef9214..5ec1413 100644
0f057d
--- a/meta/options_match
0f057d
+++ b/meta/options_match
0f057d
@@ -47,6 +47,7 @@ PubkeyAuthentication
0f057d
 RDomain
0f057d
 RekeyLimit
0f057d
 RevokedKeys
0f057d
+RequiredRSASize
0f057d
 RhostsRSAAuthentication
0f057d
 RSAAuthentication
0f057d
 RSAMinSize
0f057d
diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2
0f057d
index 2899f0a..a3b2465 100644
0f057d
--- a/templates/sshd_config.j2
0f057d
+++ b/templates/sshd_config.j2
0f057d
@@ -89,6 +89,7 @@ Match {{ match["Condition"] }}
0f057d
 {{       render_option("RDomain",match["RDomain"],true) -}}
0f057d
 {{       render_option("RekeyLimit",match["RekeyLimit"],true) -}}
0f057d
 {{       render_option("RevokedKeys",match["RevokedKeys"],true) -}}
0f057d
+{{       render_option("RequiredRSASize",match["RequiredRSASize"],true) -}}
0f057d
 {{       render_option("RhostsRSAAuthentication",match["RhostsRSAAuthentication"],true) -}}
0f057d
 {{       render_option("RSAAuthentication",match["RSAAuthentication"],true) -}}
0f057d
 {{       render_option("RSAMinSize",match["RSAMinSize"],true) -}}
0f057d
@@ -203,6 +204,7 @@ Match {{ match["Condition"] }}
0f057d
 {{ body_option("RSAAuthentication",sshd_RSAAuthentication) -}}
0f057d
 {{ body_option("RSAMinSize",sshd_RSAMinSize) -}}
0f057d
 {{ body_option("RekeyLimit",sshd_RekeyLimit) -}}
0f057d
+{{ body_option("RequiredRSASize",sshd_RequiredRSASize) -}}
0f057d
 {{ body_option("RevokedKeys",sshd_RevokedKeys) -}}
0f057d
 {{ body_option("RDomain",sshd_RDomain) -}}
0f057d
 {{ body_option("RhostsRSAAuthentication",sshd_RhostsRSAAuthentication) -}}
0f057d
diff --git a/templates/sshd_config_snippet.j2 b/templates/sshd_config_snippet.j2
0f057d
index 0ece8ed..a12cb3b 100644
0f057d
--- a/templates/sshd_config_snippet.j2
0f057d
+++ b/templates/sshd_config_snippet.j2
0f057d
@@ -88,6 +88,7 @@ Match {{ match["Condition"] }}
0f057d
 {{       render_option("RDomain",match["RDomain"],true) -}}
0f057d
 {{       render_option("RekeyLimit",match["RekeyLimit"],true) -}}
0f057d
 {{       render_option("RevokedKeys",match["RevokedKeys"],true) -}}
0f057d
+{{       render_option("RequiredRSASize",match["RequiredRSASize"],true) -}}
0f057d
 {{       render_option("RhostsRSAAuthentication",match["RhostsRSAAuthentication"],true) -}}
0f057d
 {{       render_option("RSAAuthentication",match["RSAAuthentication"],true) -}}
0f057d
 {{       render_option("RSAMinSize",match["RSAMinSize"],true) -}}
0f057d
@@ -202,6 +203,7 @@ Match {{ match["Condition"] }}
0f057d
 {{ body_option("RSAAuthentication",sshd_RSAAuthentication) -}}
0f057d
 {{ body_option("RSAMinSize",sshd_RSAMinSize) -}}
0f057d
 {{ body_option("RekeyLimit",sshd_RekeyLimit) -}}
0f057d
+{{ body_option("RequiredRSASize",sshd_RequiredRSASize) -}}
0f057d
 {{ body_option("RevokedKeys",sshd_RevokedKeys) -}}
0f057d
 {{ body_option("RDomain",sshd_RDomain) -}}
0f057d
 {{ body_option("RhostsRSAAuthentication",sshd_RhostsRSAAuthentication) -}}
0f057d
-- 
0f057d
2.37.3
0f057d