mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make the various ssh clients understand the VersionAddendum option.
Submitted by: pb
This commit is contained in:
parent
157d7b3538
commit
9e2cbe04ff
1 changed files with 10 additions and 1 deletions
|
|
@ -116,7 +116,8 @@ typedef enum {
|
||||||
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
|
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
|
||||||
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
|
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
|
||||||
oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,
|
oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,
|
||||||
oClearAllForwardings, oNoHostAuthenticationForLocalhost
|
oClearAllForwardings, oNoHostAuthenticationForLocalhost,
|
||||||
|
oVersionAddendum
|
||||||
} OpCodes;
|
} OpCodes;
|
||||||
|
|
||||||
/* Textual representations of the tokens. */
|
/* Textual representations of the tokens. */
|
||||||
|
|
@ -188,6 +189,7 @@ static struct {
|
||||||
{ "smartcarddevice", oSmartcardDevice },
|
{ "smartcarddevice", oSmartcardDevice },
|
||||||
{ "clearallforwardings", oClearAllForwardings },
|
{ "clearallforwardings", oClearAllForwardings },
|
||||||
{ "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
|
{ "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
|
||||||
|
{ "versionaddendum", oVersionAddendum },
|
||||||
{ NULL, oBadOption }
|
{ NULL, oBadOption }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -677,6 +679,13 @@ parse_int:
|
||||||
*intptr = value;
|
*intptr = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case oVersionAddendum:
|
||||||
|
ssh_version_set_addendum(strtok(s, "\n"));
|
||||||
|
do {
|
||||||
|
arg = strdelim(&s);
|
||||||
|
} while (arg != NULL && *arg != '\0');
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fatal("process_config_line: Unimplemented opcode %d", opcode);
|
fatal("process_config_line: Unimplemented opcode %d", opcode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue