From 9e2cbe04ff4fa7b48a5deb3469b95314b12040cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 2 Apr 2002 21:48:51 +0000 Subject: [PATCH] Make the various ssh clients understand the VersionAddendum option. Submitted by: pb --- crypto/openssh/readconf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crypto/openssh/readconf.c b/crypto/openssh/readconf.c index 5e755ad62da6..e1eb46931609 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 @@ 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); }