=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshconnect.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/ssh/sshconnect.c 1999/10/16 19:23:35 1.20 +++ src/usr.bin/ssh/sshconnect.c 1999/10/16 20:47:14 1.21 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.20 1999/10/16 19:23:35 provos Exp $"); +RCSID("$Id: sshconnect.c,v 1.21 1999/10/16 20:47:14 markus Exp $"); #include #include "xmalloc.h" @@ -26,6 +26,7 @@ #include "cipher.h" #include "mpaux.h" #include "uidswap.h" +#include "compat.h" #include @@ -915,12 +916,15 @@ debug("Remote protocol version %d.%d, remote software version %.100s", remote_major, remote_minor, remote_version); - if (options.forward_agent && strcmp(remote_version, SSH_VERSION) != 0) - { - log("Agent forwarding disabled, remote version is not '%s'.", + + if (remote_major == 1 && remote_minor == 3) { + enable_compat13(); + if (options.forward_agent && strcmp(remote_version, SSH_VERSION) != 0) { + log("Agent forwarding disabled, remote version '%s' is not compatible.", SSH_VERSION); options.forward_agent = 0; } + } #if 0 /* Removed for now, to permit compatibility with latter versions. The server will reject our version and disconnect if it doesn't support it. */