Make the various ssh clients understand the VersionAddendum option.
Submitted by: pb
This commit is contained in:
parent
157d7b3538
commit
9e2cbe04ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93698
@ -116,7 +116,8 @@ typedef enum {
|
||||
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
|
||||
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
|
||||
oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,
|
||||
oClearAllForwardings, oNoHostAuthenticationForLocalhost
|
||||
oClearAllForwardings, oNoHostAuthenticationForLocalhost,
|
||||
oVersionAddendum
|
||||
} OpCodes;
|
||||
|
||||
/* Textual representations of the tokens. */
|
||||
@ -188,6 +189,7 @@ static struct {
|
||||
{ "smartcarddevice", oSmartcardDevice },
|
||||
{ "clearallforwardings", oClearAllForwardings },
|
||||
{ "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
|
||||
{ "versionaddendum", oVersionAddendum },
|
||||
{ NULL, oBadOption }
|
||||
};
|
||||
|
||||
@ -677,6 +679,13 @@ process_config_line(Options *options, const char *host,
|
||||
*intptr = value;
|
||||
break;
|
||||
|
||||
case oVersionAddendum:
|
||||
ssh_version_set_addendum(strtok(s, "\n"));
|
||||
do {
|
||||
arg = strdelim(&s);
|
||||
} while (arg != NULL && *arg != '\0');
|
||||
break;
|
||||
|
||||
default:
|
||||
fatal("process_config_line: Unimplemented opcode %d", opcode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user