jonathancammack / rpms / openssh

Forked from rpms/openssh 8 months ago
Clone

Blame SOURCES/openssh-8.0p1-crypto-policies.patch

3e8b5b
diff -up openssh-8.0p1/ssh_config.5.crypto-policies openssh-8.0p1/ssh_config.5
3009ed
--- openssh-8.0p1/ssh_config.5.crypto-policies	2020-03-24 17:32:54.821789205 +0100
3009ed
+++ openssh-8.0p1/ssh_config.5	2020-03-24 17:59:58.174122920 +0100
3009ed
@@ -357,17 +357,17 @@ or
3009ed
 .Qq *.c.example.com
3009ed
 domains.
3009ed
 .It Cm CASignatureAlgorithms
3009ed
+The default is handled system-wide by
3009ed
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3009ed
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies which algorithms are allowed for signing of certificates
3009ed
 by certificate authorities (CAs).
3009ed
-The default is:
3009ed
-.Bd -literal -offset indent
3009ed
-ecdsa-sha2-nistp256.ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
3009ed
-ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
3009ed
-.Ed
3009ed
-.Pp
3009ed
 .Xr ssh 1
3009ed
 will not accept host certificates signed using algorithms other than those
3009ed
 specified.
3009ed
+.Pp
3009ed
 .It Cm CertificateFile
3009ed
 Specifies a file from which the user's certificate is read.
3009ed
 A corresponding private key must be provided separately in order
3009ed
@@ -420,16 +420,21 @@ If the option is set to
3009ed
 .Cm no ,
3009ed
 the check will not be executed.
3009ed
 .It Cm Ciphers
3009ed
+The default is handled system-wide by
3009ed
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3009ed
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the ciphers allowed and their order of preference.
3009ed
 Multiple ciphers must be comma-separated.
3009ed
 If the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified ciphers will be appended to the default set
3009ed
+character, then the specified ciphers will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3009ed
 .Sq -
3009ed
 character, then the specified ciphers (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3009ed
+from the built-in default set instead of replacing them.
3009ed
 .Pp
3009ed
 The supported ciphers are:
3009ed
 .Bd -literal -offset indent
3009ed
@@ -445,13 +450,6 @@ aes256-gcm@openssh.com
3e8b5b
 chacha20-poly1305@openssh.com
3e8b5b
 .Ed
3e8b5b
 .Pp
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-chacha20-poly1305@openssh.com,
3e8b5b
-aes128-ctr,aes192-ctr,aes256-ctr,
3e8b5b
-aes128-gcm@openssh.com,aes256-gcm@openssh.com
3e8b5b
-.Ed
3009ed
-.Pp
3009ed
 The list of available ciphers may also be obtained using
3009ed
 .Qq ssh -Q cipher .
3009ed
 .It Cm ClearAllForwardings
3009ed
@@ -800,6 +798,11 @@ command line will be passed untouched to
3009ed
 The default is
3009ed
 .Dq no .
3009ed
 .It Cm GSSAPIKexAlgorithms
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 The list of key exchange algorithms that are offered for GSSAPI
3009ed
 key exchange. Possible values are
3009ed
 .Bd -literal -offset 3n
3009ed
@@ -812,9 +815,8 @@ gss-nistp256-sha256-,
3e8b5b
 gss-curve25519-sha256-
3e8b5b
 .Ed
3e8b5b
 .Pp
3e8b5b
-The default is
3009ed
-.Dq gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1- .
3009ed
 This option only applies to connections using GSSAPI.
3009ed
+.Pp
3009ed
 .It Cm HashKnownHosts
3009ed
 Indicates that
3009ed
 .Xr ssh 1
3009ed
@@ -1114,26 +1115,21 @@ it may be zero or more of:
3009ed
 and
3009ed
 .Cm pam .
3009ed
 .It Cm KexAlgorithms
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the available KEX (Key Exchange) algorithms.
3009ed
 Multiple algorithms must be comma-separated.
3009ed
 Alternately if the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified methods will be appended to the default set
3009ed
+character, then the specified methods will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3e8b5b
 .Sq -
3e8b5b
 character, then the specified methods (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-curve25519-sha256,curve25519-sha256@libssh.org,
3e8b5b
-ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
3e8b5b
-diffie-hellman-group-exchange-sha256,
3e8b5b
-diffie-hellman-group16-sha512,
3e8b5b
-diffie-hellman-group18-sha512,
3e8b5b
-diffie-hellman-group14-sha256,
3e8b5b
-diffie-hellman-group14-sha1
3e8b5b
-.Ed
3009ed
+from the built-in default set instead of replacing them.
3009ed
 .Pp
3009ed
 The list of available key exchange algorithms may also be obtained using
3009ed
 .Qq ssh -Q kex .
3009ed
@@ -1193,33 +1189,29 @@ The default is INFO.
3009ed
 DEBUG and DEBUG1 are equivalent.
3009ed
 DEBUG2 and DEBUG3 each specify higher levels of verbose output.
3009ed
 .It Cm MACs
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the MAC (message authentication code) algorithms
3009ed
 in order of preference.
3009ed
 The MAC algorithm is used for data integrity protection.
3009ed
 Multiple algorithms must be comma-separated.
3009ed
 If the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified algorithms will be appended to the default set
3009ed
+character, then the specified algorithms will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3009ed
 .Sq -
3009ed
 character, then the specified algorithms (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3009ed
+from the built-in default set instead of replacing them.
3e8b5b
 .Pp
3009ed
 The algorithms that contain
3009ed
 .Qq -etm
3e8b5b
 calculate the MAC after encryption (encrypt-then-mac).
3e8b5b
 These are considered safer and their use recommended.
3e8b5b
 .Pp
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-umac-64-etm@openssh.com,umac-128-etm@openssh.com,
3e8b5b
-hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
3e8b5b
-hmac-sha1-etm@openssh.com,
3e8b5b
-umac-64@openssh.com,umac-128@openssh.com,
3e8b5b
-hmac-sha2-256,hmac-sha2-512,hmac-sha1
3e8b5b
-.Ed
3009ed
-.Pp
3009ed
 The list of available MAC algorithms may also be obtained using
3009ed
 .Qq ssh -Q mac .
3009ed
 .It Cm NoHostAuthenticationForLocalhost
3009ed
@@ -1352,27 +1344,21 @@ instead of continuing to execute and pas
3009ed
 The default is
3009ed
 .Cm no .
3009ed
 .It Cm PubkeyAcceptedKeyTypes
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the key types that will be used for public key authentication
3009ed
 as a comma-separated list of patterns.
3009ed
 Alternately if the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the key types after it will be appended to the default
3009ed
+character, then the key types after it will be appended to the built-in default
3009ed
 instead of replacing it.
3009ed
 If the specified value begins with a
3e8b5b
 .Sq -
3e8b5b
 character, then the specified key types (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3e8b5b
-The default for this option is:
3e8b5b
-.Bd -literal -offset 3n
3e8b5b
-ecdsa-sha2-nistp256-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp384-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp521-cert-v01@openssh.com,
3e8b5b
-ssh-ed25519-cert-v01@openssh.com,
3e8b5b
-rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,
3e8b5b
-ssh-rsa-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
3e8b5b
-ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
3e8b5b
-.Ed
3009ed
+from the built-in default set instead of replacing them.
3e8b5b
 .Pp
3e8b5b
 The list of available key types may also be obtained using
3e8b5b
 .Qq ssh -Q key .
3e8b5b
diff -up openssh-8.0p1/sshd_config.5.crypto-policies openssh-8.0p1/sshd_config.5
3009ed
--- openssh-8.0p1/sshd_config.5.crypto-policies	2020-03-24 17:32:54.802788908 +0100
3009ed
+++ openssh-8.0p1/sshd_config.5	2020-03-24 17:54:13.347740176 +0100
3009ed
@@ -383,16 +383,16 @@ If the argument is
3009ed
 then no banner is displayed.
3009ed
 By default, no banner is displayed.
3009ed
 .It Cm CASignatureAlgorithms
3009ed
+The default is handled system-wide by
3009ed
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3009ed
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies which algorithms are allowed for signing of certificates
3009ed
 by certificate authorities (CAs).
3009ed
-The default is:
3009ed
-.Bd -literal -offset indent
3009ed
-ecdsa-sha2-nistp256.ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
3009ed
-ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
3009ed
-.Ed
3009ed
-.Pp
3009ed
 Certificates signed using other algorithms will not be accepted for
3009ed
 public key or host-based authentication.
3009ed
+.Pp
3009ed
 .It Cm ChallengeResponseAuthentication
3009ed
 Specifies whether challenge-response authentication is allowed (e.g. via
3009ed
 PAM or through authentication styles supported in
3009ed
@@ -454,16 +454,21 @@ The default is
3009ed
 indicating not to
3009ed
 .Xr chroot 2 .
3009ed
 .It Cm Ciphers
3009ed
+The default is handled system-wide by
3009ed
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3009ed
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the ciphers allowed.
3009ed
 Multiple ciphers must be comma-separated.
3009ed
 If the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified ciphers will be appended to the default set
3009ed
+character, then the specified ciphers will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3009ed
 .Sq -
3009ed
 character, then the specified ciphers (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3009ed
+from the built-in default set instead of replacing them.
3009ed
 .Pp
3009ed
 The supported ciphers are:
3009ed
 .Pp
3009ed
@@ -490,13 +495,6 @@ aes256-gcm@openssh.com
3e8b5b
 chacha20-poly1305@openssh.com
3e8b5b
 .El
3e8b5b
 .Pp
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-chacha20-poly1305@openssh.com,
3e8b5b
-aes128-ctr,aes192-ctr,aes256-ctr,
3e8b5b
-aes128-gcm@openssh.com,aes256-gcm@openssh.com
3e8b5b
-.Ed
3009ed
-.Pp
3009ed
 The list of available ciphers may also be obtained using
3009ed
 .Qq ssh -Q cipher .
3009ed
 .It Cm ClientAliveCountMax
3009ed
@@ -688,6 +686,11 @@ For this to work
3009ed
 .Cm GSSAPIKeyExchange
3009ed
 needs to be enabled in the server and also used by the client.
3009ed
 .It Cm GSSAPIKexAlgorithms
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 The list of key exchange algorithms that are accepted by GSSAPI
3009ed
 key exchange. Possible values are
3009ed
 .Bd -literal -offset 3n
3009ed
@@ -700,8 +703,6 @@ gss-nistp256-sha256-,
3e8b5b
 gss-curve25519-sha256-
3e8b5b
 .Ed
3e8b5b
 .Pp
3e8b5b
-The default is
3009ed
-.Dq gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1- .
3009ed
 This option only applies to connections using GSSAPI.
3e8b5b
 .It Cm HostbasedAcceptedKeyTypes
3e8b5b
 Specifies the key types that will be accepted for hostbased authentication
3009ed
@@ -791,19 +791,13 @@ is specified, the location of the socket
3009ed
 .Ev SSH_AUTH_SOCK
3009ed
 environment variable.
3e8b5b
 .It Cm HostKeyAlgorithms
3009ed
+The default is handled system-wide by
3009ed
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3009ed
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3e8b5b
 Specifies the host key algorithms
3e8b5b
 that the server offers.
3e8b5b
-The default for this option is:
3e8b5b
-.Bd -literal -offset 3n
3e8b5b
-ecdsa-sha2-nistp256-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp384-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp521-cert-v01@openssh.com,
3e8b5b
-ssh-ed25519-cert-v01@openssh.com,
3e8b5b
-rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,
3e8b5b
-ssh-rsa-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
3e8b5b
-ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
3e8b5b
-.Ed
3009ed
 .Pp
3009ed
 The list of available key types may also be obtained using
3009ed
 .Qq ssh -Q key .
3009ed
@@ -922,16 +916,21 @@ Specifies whether to look at .k5login fi
3009ed
 The default is
3009ed
 .Cm yes .
3009ed
 .It Cm KexAlgorithms
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the available KEX (Key Exchange) algorithms.
3009ed
 Multiple algorithms must be comma-separated.
3009ed
 Alternately if the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified methods will be appended to the default set
3009ed
+character, then the specified methods will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3009ed
 .Sq -
3009ed
 character, then the specified methods (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3009ed
+from the built-in default set instead of replacing them.
3009ed
 The supported algorithms are:
3e8b5b
 .Pp
3009ed
 .Bl -item -compact -offset indent
3009ed
@@ -961,15 +960,6 @@ ecdh-sha2-nistp384
3e8b5b
 ecdh-sha2-nistp521
3e8b5b
 .El
3e8b5b
 .Pp
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-curve25519-sha256,curve25519-sha256@libssh.org,
3e8b5b
-ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
3e8b5b
-diffie-hellman-group-exchange-sha256,
3e8b5b
-diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,
3e8b5b
-diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
3e8b5b
-.Ed
3009ed
-.Pp
3009ed
 The list of available key exchange algorithms may also be obtained using
3009ed
 .Qq ssh -Q kex .
3009ed
 .It Cm ListenAddress
3009ed
@@ -1038,17 +1028,22 @@ DEBUG and DEBUG1 are equivalent.
3009ed
 DEBUG2 and DEBUG3 each specify higher levels of debugging output.
3009ed
 Logging with a DEBUG level violates the privacy of users and is not recommended.
3009ed
 .It Cm MACs
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the available MAC (message authentication code) algorithms.
3009ed
 The MAC algorithm is used for data integrity protection.
3009ed
 Multiple algorithms must be comma-separated.
3009ed
 If the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified algorithms will be appended to the default set
3009ed
+character, then the specified algorithms will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3009ed
 .Sq -
3009ed
 character, then the specified algorithms (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3009ed
+from the built-in default set instead of replacing them.
3e8b5b
 .Pp
3009ed
 The algorithms that contain
3009ed
 .Qq -etm
3009ed
@@ -1091,15 +1086,6 @@ umac-64-etm@openssh.com
3e8b5b
 umac-128-etm@openssh.com
3e8b5b
 .El
3e8b5b
 .Pp
3e8b5b
-The default is:
3e8b5b
-.Bd -literal -offset indent
3e8b5b
-umac-64-etm@openssh.com,umac-128-etm@openssh.com,
3e8b5b
-hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
3e8b5b
-hmac-sha1-etm@openssh.com,
3e8b5b
-umac-64@openssh.com,umac-128@openssh.com,
3e8b5b
-hmac-sha2-256,hmac-sha2-512,hmac-sha1
3e8b5b
-.Ed
3009ed
-.Pp
3009ed
 The list of available MAC algorithms may also be obtained using
3009ed
 .Qq ssh -Q mac .
3009ed
 .It Cm Match
3009ed
@@ -1446,27 +1432,21 @@ or equivalent.)
3009ed
 The default is
3009ed
 .Cm yes .
3009ed
 .It Cm PubkeyAcceptedKeyTypes
3e8b5b
+The default is handled system-wide by
3e8b5b
+.Xr crypto-policies 7 .
3009ed
+To see the current defaults and how to modify them, see manual page
3e8b5b
+.Xr update-crypto-policies 8 .
3009ed
+.Pp
3009ed
 Specifies the key types that will be accepted for public key authentication
3009ed
 as a list of comma-separated patterns.
3009ed
 Alternately if the specified value begins with a
3009ed
 .Sq +
3009ed
-character, then the specified key types will be appended to the default set
3009ed
+character, then the specified key types will be appended to the built-in default set
3009ed
 instead of replacing them.
3009ed
 If the specified value begins with a
3e8b5b
 .Sq -
3e8b5b
 character, then the specified key types (including wildcards) will be removed
3009ed
-from the default set instead of replacing them.
3e8b5b
-The default for this option is:
3e8b5b
-.Bd -literal -offset 3n
3e8b5b
-ecdsa-sha2-nistp256-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp384-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp521-cert-v01@openssh.com,
3e8b5b
-ssh-ed25519-cert-v01@openssh.com,
3e8b5b
-rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,
3e8b5b
-ssh-rsa-cert-v01@openssh.com,
3e8b5b
-ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
3e8b5b
-ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
3e8b5b
-.Ed
3009ed
+from the built-in default set instead of replacing them.
3e8b5b
 .Pp
3e8b5b
 The list of available key types may also be obtained using
3e8b5b
 .Qq ssh -Q key .