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

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