Re: Can an SSH_MSG_EXT_INFO have zero entries?

Niels Möller <[email protected]> Mon, 03 Apr 2023 16:35:32 +0200
Newsgroups gmane.ietf.secsh
Message-ID <[email protected]>
Mouse <[email protected]> writes:

> I would assume it's one that conforms to the syntax given.  8308
> describes it as
>
>      byte       SSH_MSG_EXT_INFO (value 7)
>      uint32     nr-extensions
>      repeat the following 2 fields "nr-extensions" times:
>        string   extension-name
>        string   extension-value (binary)
>
> which looks to me as though that is a perfectly good SSH_MSG_EXT_INFO
> message, just one that happens to have a zero nr-extensions.

For what it's worth, empty lists are valid (and common) in some other
places, e.g., the languages lists in SSH_MSG_KEXINIT.

Regards,
/Niels Möller

-- 
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.