summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/servconf.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-06-29 10:49:57 +0000
committerdes <des@FreeBSD.org>2002-06-29 10:49:57 +0000
commita56e989df507678554319c1aab75a3ff04601696 (patch)
treef35ed0ce62ef0529560a85d393a78b25094175fc /crypto/openssh/servconf.c
parent4d49e874a98f2f5132b00b21cc2e6cd067f67c8f (diff)
downloadFreeBSD-src-a56e989df507678554319c1aab75a3ff04601696.zip
FreeBSD-src-a56e989df507678554319c1aab75a3ff04601696.tar.gz
Add the VersionAddendum configuration variable.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'crypto/openssh/servconf.c')
-rw-r--r--crypto/openssh/servconf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/openssh/servconf.c b/crypto/openssh/servconf.c
index fb6332c..4195b41 100644
--- a/crypto/openssh/servconf.c
+++ b/crypto/openssh/servconf.c
@@ -299,6 +299,7 @@ typedef enum {
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval,
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2,
sUsePrivilegeSeparation,
+ sVersionAddendum,
sDeprecated
} ServerOpCodes;
@@ -376,6 +377,7 @@ static struct {
{ "authorizedkeysfile", sAuthorizedKeysFile },
{ "authorizedkeysfile2", sAuthorizedKeysFile2 },
{ "useprivilegeseparation", sUsePrivilegeSeparation},
+ { "versionaddendum", sVersionAddendum },
{ NULL, sBadOption }
};
@@ -899,6 +901,13 @@ parse_flag:
intptr = &options->client_alive_count_max;
goto parse_int;
+ case sVersionAddendum:
+ ssh_version_set_addendum(strtok(cp, "\n"));
+ do {
+ arg = strdelim(&cp);
+ } while (arg != NULL && *arg != '\0');
+ break;
+
case sDeprecated:
log("%s line %d: Deprecated option %s",
filename, linenum, arg);
OpenPOWER on IntegriCloud