Blame SOURCES/0001-ssh-Add-final-version-of-the-option-RequiredRSASize-53.patch

154879
From 1bda31d2d07ed9042b09b0596904dd4f317d8f48 Mon Sep 17 00:00:00 2001
154879
From: Jakub Jelen <jjelen@redhat.com>
154879
Date: Mon, 26 Sep 2022 20:20:47 +0200
154879
Subject: [PATCH] Add final version of the option RequiredRSASize (#53)
154879
154879
* Update source template to match generated template
154879
154879
* Add final name of the RequiredRSASize parameter
154879
154879
keeping the old version for backward compatibility.
154879
154879
Upstream commit:
154879
https://github.com/openssh/openssh-portable/commit/54b333d1
154879
---
154879
 .dev-tools/10_top.j2    | 4 ++--
154879
 .dev-tools/options_body | 1 +
154879
 templates/ssh_config.j2 | 3 +++
154879
 3 files changed, 6 insertions(+), 2 deletions(-)
154879
154879
diff --git a/.dev-tools/10_top.j2 b/.dev-tools/10_top.j2
154879
index 99704bd..8411de8 100644
154879
--- a/.dev-tools/10_top.j2
154879
+++ b/.dev-tools/10_top.j2
154879
@@ -7,10 +7,10 @@
154879
 {%     elif value is sameas false %}
154879
 {{ key }} no
154879
 {%     elif value is string or value is number %}
154879
-{{ key }} {{ value }}
154879
+{{ key }} {{ value | string }}
154879
 {%     else %}
154879
 {%       for i in value %}
154879
-{{ key }} {{ i }}
154879
+{{ key }} {{ i | string }}
154879
 {%       endfor %}
154879
 {%     endif %}
154879
 {%   endif %}
154879
diff --git a/.dev-tools/options_body b/.dev-tools/options_body
154879
index 176879d..8cc382f 100644
154879
--- a/.dev-tools/options_body
154879
+++ b/.dev-tools/options_body
154879
@@ -84,6 +84,7 @@ RekeyLimit
154879
 RemoteCommand
154879
 RemoteForward
154879
 RequestTTY
154879
+RequiredRSASize
154879
 RevokedHostKeys
154879
 RhostsRSAAuthentication
154879
 RSAAuthentication
154879
diff --git a/templates/ssh_config.j2 b/templates/ssh_config.j2
154879
index fab57de..7f277c7 100644
154879
--- a/templates/ssh_config.j2
154879
+++ b/templates/ssh_config.j2
154879
@@ -119,6 +119,7 @@ Match {{ match["Condition"] }}
154879
 {{       render_option("RemoteCommand",match["RemoteCommand"],true) -}}
154879
 {{       render_option("RemoteForward",match["RemoteForward"],true) -}}
154879
 {{       render_option("RequestTTY",match["RequestTTY"],true) -}}
154879
+{{       render_option("RequiredRSASize",match["RequiredRSASize"],true) -}}
154879
 {{       render_option("RevokedHostKeys",match["RevokedHostKeys"],true) -}}
154879
 {{       render_option("RhostsRSAAuthentication",match["RhostsRSAAuthentication"],true) -}}
154879
 {{       render_option("RSAAuthentication",match["RSAAuthentication"],true) -}}
154879
@@ -240,6 +241,7 @@ Host {{ host["Condition"] }}
154879
 {{       render_option("RemoteCommand",host["RemoteCommand"],true) -}}
154879
 {{       render_option("RemoteForward",host["RemoteForward"],true) -}}
154879
 {{       render_option("RequestTTY",host["RequestTTY"],true) -}}
154879
+{{       render_option("RequiredRSASize",host["RequiredRSASize"],true) -}}
154879
 {{       render_option("RevokedHostKeys",host["RevokedHostKeys"],true) -}}
154879
 {{       render_option("RhostsRSAAuthentication",host["RhostsRSAAuthentication"],true) -}}
154879
 {{       render_option("RSAAuthentication",host["RSAAuthentication"],true) -}}
154879
@@ -354,6 +356,7 @@ Host {{ host["Condition"] }}
154879
 {{ body_option("RemoteCommand",ssh_RemoteCommand) -}}
154879
 {{ body_option("RemoteForward",ssh_RemoteForward) -}}
154879
 {{ body_option("RequestTTY",ssh_RequestTTY) -}}
154879
+{{ body_option("RequiredRSASize",ssh_RequiredRSASize) -}}
154879
 {{ body_option("RevokedHostKeys",ssh_RevokedHostKeys) -}}
154879
 {{ body_option("RhostsRSAAuthentication",ssh_RhostsRSAAuthentication) -}}
154879
 {{ body_option("RSAAuthentication",ssh_RSAAuthentication) -}}
154879
-- 
154879
2.37.3
154879