|
Lines 41-46
Link Here
|
| 41 |
|
41 |
|
| 42 |
/* Portable-specific options */ |
42 |
/* Portable-specific options */ |
| 43 |
options->use_pam = -1; |
43 |
options->use_pam = -1; |
|
|
44 |
options->use_pam_setcred = -1; |
| 44 |
|
45 |
|
| 45 |
/* Standard Options */ |
46 |
/* Standard Options */ |
| 46 |
options->num_ports = 0; |
47 |
options->num_ports = 0; |
|
Lines 113-118
Link Here
|
| 113 |
if (options->use_pam == -1) |
114 |
if (options->use_pam == -1) |
| 114 |
options->use_pam = 0; |
115 |
options->use_pam = 0; |
| 115 |
|
116 |
|
|
|
117 |
if (options->use_pam_setcred == -1) |
| 118 |
options->use_pam_setcred = 0; |
| 119 |
|
| 116 |
/* Standard Options */ |
120 |
/* Standard Options */ |
| 117 |
if (options->protocol == SSH_PROTO_UNKNOWN) |
121 |
if (options->protocol == SSH_PROTO_UNKNOWN) |
| 118 |
options->protocol = SSH_PROTO_1|SSH_PROTO_2; |
122 |
options->protocol = SSH_PROTO_1|SSH_PROTO_2; |
|
Lines 248-253
Link Here
|
| 248 |
sBadOption, /* == unknown option */ |
252 |
sBadOption, /* == unknown option */ |
| 249 |
/* Portable-specific options */ |
253 |
/* Portable-specific options */ |
| 250 |
sUsePAM, |
254 |
sUsePAM, |
|
|
255 |
sUsePAMSetCred, |
| 251 |
/* Standard Options */ |
256 |
/* Standard Options */ |
| 252 |
sPort, sHostKeyFile, sServerKeyBits, sLoginGraceTime, sKeyRegenerationTime, |
257 |
sPort, sHostKeyFile, sServerKeyBits, sLoginGraceTime, sKeyRegenerationTime, |
| 253 |
sPermitRootLogin, sLogFacility, sLogLevel, |
258 |
sPermitRootLogin, sLogFacility, sLogLevel, |
|
Lines 279-286
Link Here
|
| 279 |
/* Portable-specific options */ |
284 |
/* Portable-specific options */ |
| 280 |
#ifdef USE_PAM |
285 |
#ifdef USE_PAM |
| 281 |
{ "usepam", sUsePAM }, |
286 |
{ "usepam", sUsePAM }, |
|
|
287 |
{ "usepamsetcred", sUsePAMSetCred }, |
| 282 |
#else |
288 |
#else |
| 283 |
{ "usepam", sUnsupported }, |
289 |
{ "usepam", sUnsupported }, |
|
|
290 |
{ "usepamsetcred", sUnsupported }, |
| 284 |
#endif |
291 |
#endif |
| 285 |
{ "pamauthenticationviakbdint", sDeprecated }, |
292 |
{ "pamauthenticationviakbdint", sDeprecated }, |
| 286 |
/* Standard Options */ |
293 |
/* Standard Options */ |
|
Lines 447-452
Link Here
|
| 447 |
case sUsePAM: |
454 |
case sUsePAM: |
| 448 |
intptr = &options->use_pam; |
455 |
intptr = &options->use_pam; |
| 449 |
goto parse_flag; |
456 |
goto parse_flag; |
|
|
457 |
case sUsePAMSetCred: |
| 458 |
intptr = &options->use_pam_setcred; |
| 459 |
goto parse_flag; |
| 450 |
|
460 |
|
| 451 |
/* Standard Options */ |
461 |
/* Standard Options */ |
| 452 |
case sBadOption: |
462 |
case sBadOption: |