IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Additional AD Comment: draft-ietf-secsh-publickey-subsystem and garbage



Jon Bright wrote:
Sam Hartman wrote:

In order to guarantee interoperability, your subsystem needs to be
able to filter out leading garbage and clients MUST do so.

The spec doesn't currently do this.

I'll admit to having overlooked that.  Would

00 00 00 07 76 65 72 73 69 6f 6e

('string "version"' in SSHish), which both sides send on start, be sufficient as a magic number?

If so, I can just add a sentence referring to the garbage filtering and pointing out that some garbage may appear before this byte string.

Hah... we crossed in the mail :-)

Actually, having thought about it a little more, I suspect
that in practice the byte string 00 00 00 (the first three
valid protocol bytes) would be sufficient to filter out
99.99999% of all shell output.

Thanks,

Joseph



Home | Main Index | Thread Index | Old Index