|
Lines 119-126
Link Here
|
| 119 |
options->verify_reverse_mapping = -1; |
119 |
options->verify_reverse_mapping = -1; |
| 120 |
options->client_alive_interval = -1; |
120 |
options->client_alive_interval = -1; |
| 121 |
options->client_alive_count_max = -1; |
121 |
options->client_alive_count_max = -1; |
| 122 |
options->authorized_keys_file = NULL; |
122 |
options->num_authorized_keys_files = 0; |
| 123 |
options->authorized_keys_file2 = NULL; |
|
|
| 124 |
|
123 |
|
| 125 |
/* Needs to be accessable in many places */ |
124 |
/* Needs to be accessable in many places */ |
| 126 |
use_privsep = -1; |
125 |
use_privsep = -1; |
|
Lines 240-254
Link Here
|
| 240 |
options->client_alive_interval = 0; |
239 |
options->client_alive_interval = 0; |
| 241 |
if (options->client_alive_count_max == -1) |
240 |
if (options->client_alive_count_max == -1) |
| 242 |
options->client_alive_count_max = 3; |
241 |
options->client_alive_count_max = 3; |
| 243 |
if (options->authorized_keys_file2 == NULL) { |
242 |
if (options->num_authorized_keys_files == 0) { |
| 244 |
/* authorized_keys_file2 falls back to authorized_keys_file */ |
243 |
/* fill default authorized keys files */ |
| 245 |
if (options->authorized_keys_file != NULL) |
244 |
options->authorized_keys_files[options->num_authorized_keys_files++] = _PATH_SSH_USER_PERMITTED_KEYS; |
| 246 |
options->authorized_keys_file2 = options->authorized_keys_file; |
245 |
options->authorized_keys_files[options->num_authorized_keys_files++] = _PATH_SSH_USER_PERMITTED_KEYS2; |
| 247 |
else |
246 |
} |
| 248 |
options->authorized_keys_file2 = _PATH_SSH_USER_PERMITTED_KEYS2; |
|
|
| 249 |
} |
| 250 |
if (options->authorized_keys_file == NULL) |
| 251 |
options->authorized_keys_file = _PATH_SSH_USER_PERMITTED_KEYS; |
| 252 |
|
247 |
|
| 253 |
/* Turn privilege separation _off_ by default */ |
248 |
/* Turn privilege separation _off_ by default */ |
| 254 |
if (use_privsep == -1) |
249 |
if (use_privsep == -1) |
|
Lines 284-290
Link Here
|
| 284 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
279 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
| 285 |
sBanner, sVerifyReverseMapping, sHostbasedAuthentication, |
280 |
sBanner, sVerifyReverseMapping, sHostbasedAuthentication, |
| 286 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
281 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 287 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
282 |
sClientAliveCountMax, sAuthorizedKeysFile, |
| 288 |
sUsePrivilegeSeparation, |
283 |
sUsePrivilegeSeparation, |
| 289 |
sDeprecated |
284 |
sDeprecated |
| 290 |
} ServerOpCodes; |
285 |
} ServerOpCodes; |
|
Lines 360-366
Link Here
|
| 360 |
{ "clientaliveinterval", sClientAliveInterval }, |
355 |
{ "clientaliveinterval", sClientAliveInterval }, |
| 361 |
{ "clientalivecountmax", sClientAliveCountMax }, |
356 |
{ "clientalivecountmax", sClientAliveCountMax }, |
| 362 |
{ "authorizedkeysfile", sAuthorizedKeysFile }, |
357 |
{ "authorizedkeysfile", sAuthorizedKeysFile }, |
| 363 |
{ "authorizedkeysfile2", sAuthorizedKeysFile2 }, |
358 |
{ "authorizedkeysfile2", sAuthorizedKeysFile }, |
| 364 |
{ "useprivilegeseparation", sUsePrivilegeSeparation}, |
359 |
{ "useprivilegeseparation", sUsePrivilegeSeparation}, |
| 365 |
{ NULL, sBadOption } |
360 |
{ NULL, sBadOption } |
| 366 |
}; |
361 |
}; |
|
Lines 867-876
Link Here
|
| 867 |
* AuthorizedKeysFile /etc/ssh_keys/%u |
862 |
* AuthorizedKeysFile /etc/ssh_keys/%u |
| 868 |
*/ |
863 |
*/ |
| 869 |
case sAuthorizedKeysFile: |
864 |
case sAuthorizedKeysFile: |
| 870 |
case sAuthorizedKeysFile2: |
865 |
intptr = &options->num_authorized_keys_files; |
| 871 |
charptr = (opcode == sAuthorizedKeysFile ) ? |
866 |
if (*intptr >= MAX_AUTHKEYFILES) |
| 872 |
&options->authorized_keys_file : |
867 |
fatal("%s line %d: too many authorized keys " |
| 873 |
&options->authorized_keys_file2; |
868 |
"files specified (max %d).", |
|
|
869 |
filename, linenum, MAX_AUTHKEYFILES); |
| 870 |
|
| 871 |
charptr = &options->authorized_keys_files[*intptr]; |
| 874 |
goto parse_filename; |
872 |
goto parse_filename; |
| 875 |
|
873 |
|
| 876 |
case sClientAliveInterval: |
874 |
case sClientAliveInterval: |