On Tue, Apr 02, 2002 at 10:40:08AM +0200, Dag-Erling Smorgrav wrote:
> > Uh, no, it does not seem to work in ssh_config, only in sshd_config.
> Hmm, that needs fixing then.

I have written the following patch, seems to work ok.

Pierre

--- readconf.c.orig     Tue Mar 19 14:29:02 2002
+++ readconf.c  Tue Apr  2 19:44:46 2002
@@ -116,7 +116,8 @@
        oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
        oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
        oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,
-       oClearAllForwardings, oNoHostAuthenticationForLocalhost
+       oClearAllForwardings, oNoHostAuthenticationForLocalhost,
+       oVersionAddendum
 } OpCodes;
 
 /* Textual representations of the tokens. */
@@ -188,6 +189,7 @@
        { "smartcarddevice", oSmartcardDevice },
        { "clearallforwardings", oClearAllForwardings },
        { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
+       { "versionaddendum", oVersionAddendum },
        { NULL, oBadOption }
 };
 
@@ -675,6 +677,13 @@
                }
                if (*activep && *intptr == -1)
                        *intptr = value;
+               break;
+
+       case oVersionAddendum:
+               ssh_version_set_addendum(strtok(s, "\n"));
+               do {
+                       arg = strdelim(&s);
+               } while (arg != NULL && *arg != '\0');
                break;
 
        default:

Reply via email to