mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
config: Accept the PubkeyAcceptedTypes configuration option
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
4521ab73b6
commit
37864b6575
@@ -72,6 +72,7 @@ enum ssh_config_opcode_e {
|
|||||||
SOC_KBDINTERACTIVEAUTHENTICATION,
|
SOC_KBDINTERACTIVEAUTHENTICATION,
|
||||||
SOC_PASSWORDAUTHENTICATION,
|
SOC_PASSWORDAUTHENTICATION,
|
||||||
SOC_PUBKEYAUTHENTICATION,
|
SOC_PUBKEYAUTHENTICATION,
|
||||||
|
SOC_PUBKEYACCEPTEDTYPES,
|
||||||
|
|
||||||
SOC_END /* Keep this one last in the list */
|
SOC_END /* Keep this one last in the list */
|
||||||
};
|
};
|
||||||
@@ -144,7 +145,7 @@ static struct ssh_config_keyword_table_s ssh_config_keyword_table[] = {
|
|||||||
{ "preferredauthentications", SOC_UNSUPPORTED},
|
{ "preferredauthentications", SOC_UNSUPPORTED},
|
||||||
{ "proxyjump", SOC_UNSUPPORTED},
|
{ "proxyjump", SOC_UNSUPPORTED},
|
||||||
{ "proxyusefdpass", SOC_UNSUPPORTED},
|
{ "proxyusefdpass", SOC_UNSUPPORTED},
|
||||||
{ "pubkeyacceptedtypes", SOC_UNSUPPORTED},
|
{ "pubkeyacceptedtypes", SOC_PUBKEYACCEPTEDTYPES},
|
||||||
{ "rekeylimit", SOC_UNSUPPORTED},
|
{ "rekeylimit", SOC_UNSUPPORTED},
|
||||||
{ "remotecommand", SOC_UNSUPPORTED},
|
{ "remotecommand", SOC_UNSUPPORTED},
|
||||||
{ "revokedhostkeys", SOC_UNSUPPORTED},
|
{ "revokedhostkeys", SOC_UNSUPPORTED},
|
||||||
@@ -592,6 +593,12 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
|
|||||||
ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, p);
|
ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, p);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SOC_PUBKEYACCEPTEDTYPES:
|
||||||
|
p = ssh_config_get_str_tok(&s, NULL);
|
||||||
|
if (p && *parsing) {
|
||||||
|
ssh_options_set(session, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, p);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SOC_KEXALGORITHMS:
|
case SOC_KEXALGORITHMS:
|
||||||
p = ssh_config_get_str_tok(&s, NULL);
|
p = ssh_config_get_str_tok(&s, NULL);
|
||||||
if (p && *parsing) {
|
if (p && *parsing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user