]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - openssh/patches/openssh-6.1p1-required-authentications.patch
openssh: Update to 6.1p1.
[people/amarx/ipfire-3.x.git] / openssh / patches / openssh-6.1p1-required-authentications.patch
diff --git a/openssh/patches/openssh-6.1p1-required-authentications.patch b/openssh/patches/openssh-6.1p1-required-authentications.patch
new file mode 100644 (file)
index 0000000..bfc28ee
--- /dev/null
@@ -0,0 +1,22 @@
+diff -up openssh-6.1p1/servconf.c.required-authentication openssh-6.1p1/servconf.c
+--- openssh-6.1p1/servconf.c.required-authentication   2012-11-30 21:13:14.375382453 +0100
++++ openssh-6.1p1/servconf.c   2012-11-30 21:33:56.972017545 +0100
+@@ -495,6 +495,8 @@ static struct {
+       { "authorizedkeyscommandrunas", sAuthorizedKeysCommandUser, SSHCFG_ALL },
+       { "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL },
+       { "authenticationmethods", sAuthenticationMethods, SSHCFG_ALL },
++      { "requiredauthentications1", sAuthenticationMethods, SSHCFG_ALL },
++      { "requiredauthentications2", sAuthenticationMethods, SSHCFG_ALL },
+       { NULL, sBadOption, 0 }
+ };
+@@ -1560,6 +1562,9 @@ process_server_config_line(ServerOptions
+               return 0;
+       case sAuthenticationMethods:
++              if (strncasecmp(arg, "requiredauthentications", 23) == 0)
++                      logit("%s line %d: Option %s is obsolete. Please use AuthenticationMethods",
++                          filename, linenum, arg);
+               if (*activep && options->num_auth_methods == 0) {
+                       while ((arg = strdelim(&cp)) && *arg != '\0') {
+                               if (options->num_auth_methods >=