version 1.363, 2021/09/16 05:36:03 |
version 1.364, 2021/12/19 22:14:47 |
|
|
{ "always", SSH_CANONICALISE_ALWAYS }, |
{ "always", SSH_CANONICALISE_ALWAYS }, |
{ NULL, -1 } |
{ NULL, -1 } |
}; |
}; |
|
static const struct multistate multistate_pubkey_auth[] = { |
|
{ "true", SSH_PUBKEY_AUTH_ALL }, |
|
{ "false", SSH_PUBKEY_AUTH_NO }, |
|
{ "yes", SSH_PUBKEY_AUTH_ALL }, |
|
{ "no", SSH_PUBKEY_AUTH_NO }, |
|
{ "unbound", SSH_PUBKEY_AUTH_UNBOUND }, |
|
{ "host-bound", SSH_PUBKEY_AUTH_HBOUND }, |
|
{ NULL, -1 } |
|
}; |
static const struct multistate multistate_compression[] = { |
static const struct multistate multistate_compression[] = { |
#ifdef WITH_ZLIB |
#ifdef WITH_ZLIB |
{ "yes", COMP_ZLIB }, |
{ "yes", COMP_ZLIB }, |
|
|
goto parse_string; |
goto parse_string; |
|
|
case oPubkeyAuthentication: |
case oPubkeyAuthentication: |
|
multistate_ptr = multistate_pubkey_auth; |
intptr = &options->pubkey_authentication; |
intptr = &options->pubkey_authentication; |
goto parse_flag; |
goto parse_multistate; |
|
|
case oHostbasedAuthentication: |
case oHostbasedAuthentication: |
intptr = &options->hostbased_authentication; |
intptr = &options->hostbased_authentication; |
|
|
if (options->fwd_opts.streamlocal_bind_unlink == -1) |
if (options->fwd_opts.streamlocal_bind_unlink == -1) |
options->fwd_opts.streamlocal_bind_unlink = 0; |
options->fwd_opts.streamlocal_bind_unlink = 0; |
if (options->pubkey_authentication == -1) |
if (options->pubkey_authentication == -1) |
options->pubkey_authentication = 1; |
options->pubkey_authentication = SSH_PUBKEY_AUTH_ALL; |
if (options->gss_authentication == -1) |
if (options->gss_authentication == -1) |
options->gss_authentication = 0; |
options->gss_authentication = 0; |
if (options->gss_deleg_creds == -1) |
if (options->gss_deleg_creds == -1) |
|
|
return fmt_multistate_int(val, multistate_canonicalizehostname); |
return fmt_multistate_int(val, multistate_canonicalizehostname); |
case oAddKeysToAgent: |
case oAddKeysToAgent: |
return fmt_multistate_int(val, multistate_yesnoaskconfirm); |
return fmt_multistate_int(val, multistate_yesnoaskconfirm); |
|
case oPubkeyAuthentication: |
|
return fmt_multistate_int(val, multistate_pubkey_auth); |
case oFingerprintHash: |
case oFingerprintHash: |
return ssh_digest_alg_name(val); |
return ssh_digest_alg_name(val); |
default: |
default: |