Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSupportedStructure.Decode

procedure Decode(const aBuf: tBytes; aOffset: Integer; aCount: Integer);
Parses a wire-format "supported" extension body from aBuf (aOffset/aCount delimit it), filling all the properties below. Called on the client when the server's SSH_FXP_VERSION carries a "supported" extension. The extension names are read as draft-ietf-secsh-filexfer-05 section 4.4 lays them out, a string each to the end of the body with no count before them; a body that does not end that way is read as ProFTPD's mod_sftp sends it for version 5, a uint32 count before its attribute-extension names and another before its extension names, and the names of both lists are taken. Nothing is read outside the aCount octets. Raises eSSHDecodeError, leaving the properties as they were, if the body is shorter than its five 32-bit fields or its names fit neither layout.