vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Petr Lautrbach 9fe1af
diff -up openssh-6.1p1/servconf.c.required-authentication openssh-6.1p1/servconf.c
Petr Lautrbach fe661c
--- openssh-6.1p1/servconf.c.required-authentication	2012-11-30 21:13:14.375382453 +0100
Petr Lautrbach fe661c
+++ openssh-6.1p1/servconf.c	2012-11-30 21:33:56.972017545 +0100
Petr Lautrbach fe661c
@@ -495,6 +495,8 @@ static struct {
Petr Lautrbach fe661c
 	{ "authorizedkeyscommandrunas", sAuthorizedKeysCommandUser, SSHCFG_ALL },
Petr Lautrbach fe661c
 	{ "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL },
Petr Lautrbach fe661c
 	{ "authenticationmethods", sAuthenticationMethods, SSHCFG_ALL },
Petr Lautrbach fe661c
+	{ "requiredauthentications1", sAuthenticationMethods, SSHCFG_ALL },
Petr Lautrbach fe661c
+	{ "requiredauthentications2", sAuthenticationMethods, SSHCFG_ALL },
Petr Lautrbach d9e618
 	{ NULL, sBadOption, 0 }
Petr Lautrbach fe661c
 };
Petr Lautrbach fe661c
 
Petr Lautrbach fe661c
@@ -1560,6 +1562,9 @@ process_server_config_line(ServerOptions
Petr Lautrbach fe661c
 		return 0;
Petr Lautrbach fe661c
 
Petr Lautrbach fe661c
 	case sAuthenticationMethods:
Petr Lautrbach fe661c
+		if (strncasecmp(arg, "requiredauthentications", 23) == 0)
Petr Lautrbach fe661c
+			logit("%s line %d: Option %s is obsolete. Please use AuthenticationMethods",
Petr Lautrbach fe661c
+			    filename, linenum, arg);
Petr Lautrbach fe661c
 		if (*activep && options->num_auth_methods == 0) {
Petr Lautrbach fe661c
 			while ((arg = strdelim(&cp)) && *arg != '\0') {
Petr Lautrbach fe661c
 				if (options->num_auth_methods >=