summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-02 21:48:51 +0000
committerdes <des@FreeBSD.org>2002-04-02 21:48:51 +0000
commitac025bb036e859c95b8819fe6ba4fa154f4bacfd (patch)
treed5c47202b943f5f93d807205faf40c5f32cd84c4 /crypto
parent0b196d98fbc068ee1cdd96ff0e5d8b9a313ef293 (diff)
downloadFreeBSD-src-ac025bb036e859c95b8819fe6ba4fa154f4bacfd.zip
FreeBSD-src-ac025bb036e859c95b8819fe6ba4fa154f4bacfd.tar.gz
Make the various ssh clients understand the VersionAddendum option.
Submitted by: pb
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/readconf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/openssh/readconf.c b/crypto/openssh/readconf.c
index 5e755ad..e1eb469 100644
--- a/crypto/openssh/readconf.c
+++ b/crypto/openssh/readconf.c
@@ -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 @@ parse_int:
*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);
}
OpenPOWER on IntegriCloud