|
Lines 96-101
Link Here
|
| 96 |
options->client_alive_count_max = -1; |
96 |
options->client_alive_count_max = -1; |
| 97 |
options->authorized_keys_file = NULL; |
97 |
options->authorized_keys_file = NULL; |
| 98 |
options->authorized_keys_file2 = NULL; |
98 |
options->authorized_keys_file2 = NULL; |
|
|
99 |
options->num_allow_env = 0; |
| 99 |
|
100 |
|
| 100 |
/* Needs to be accessable in many places */ |
101 |
/* Needs to be accessable in many places */ |
| 101 |
use_privsep = -1; |
102 |
use_privsep = -1; |
|
Lines 243-249
Link Here
|
| 243 |
sBanner, sUseDNS, sHostbasedAuthentication, |
244 |
sBanner, sUseDNS, sHostbasedAuthentication, |
| 244 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
245 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 245 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
246 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
| 246 |
sGssAuthentication, sGssCleanupCreds, |
247 |
sGssAuthentication, sGssCleanupCreds, sAllowEnv, |
| 247 |
sUsePrivilegeSeparation, |
248 |
sUsePrivilegeSeparation, |
| 248 |
sDeprecated, sUnsupported |
249 |
sDeprecated, sUnsupported |
| 249 |
} ServerOpCodes; |
250 |
} ServerOpCodes; |
|
Lines 331-336
Link Here
|
| 331 |
{ "authorizedkeysfile", sAuthorizedKeysFile }, |
332 |
{ "authorizedkeysfile", sAuthorizedKeysFile }, |
| 332 |
{ "authorizedkeysfile2", sAuthorizedKeysFile2 }, |
333 |
{ "authorizedkeysfile2", sAuthorizedKeysFile2 }, |
| 333 |
{ "useprivilegeseparation", sUsePrivilegeSeparation}, |
334 |
{ "useprivilegeseparation", sUsePrivilegeSeparation}, |
|
|
335 |
{ "allowenv", sAllowEnv }, |
| 334 |
{ NULL, sBadOption } |
336 |
{ NULL, sBadOption } |
| 335 |
}; |
337 |
}; |
| 336 |
|
338 |
|
|
Lines 850-855
Link Here
|
| 850 |
case sClientAliveCountMax: |
852 |
case sClientAliveCountMax: |
| 851 |
intptr = &options->client_alive_count_max; |
853 |
intptr = &options->client_alive_count_max; |
| 852 |
goto parse_int; |
854 |
goto parse_int; |
|
|
855 |
|
| 856 |
case sAllowEnv: |
| 857 |
while ((arg = strdelim(&cp)) && *arg != '\0') { |
| 858 |
if (strchr(arg, '=') != NULL) |
| 859 |
fatal("%s line %d: Invalid environment name.", |
| 860 |
filename, linenum); |
| 861 |
if (options->num_allow_env >= MAX_ALLOW_ENV) |
| 862 |
fatal("%s line %d: too many allow env.", |
| 863 |
filename, linenum); |
| 864 |
options->allow_env[options->num_allow_env++] = |
| 865 |
xstrdup(arg); |
| 866 |
} |
| 867 |
break; |
| 853 |
|
868 |
|
| 854 |
case sDeprecated: |
869 |
case sDeprecated: |
| 855 |
logit("%s line %d: Deprecated option %s", |
870 |
logit("%s line %d: Deprecated option %s", |