version 1.5, 2001/12/02 02:08:32 |
version 1.5.2.1, 2002/06/26 15:30:38 |
|
|
decode_attrib(Buffer *b) |
decode_attrib(Buffer *b) |
{ |
{ |
static Attrib a; |
static Attrib a; |
|
|
attrib_clear(&a); |
attrib_clear(&a); |
a.flags = buffer_get_int(b); |
a.flags = buffer_get_int(b); |
if (a.flags & SSH2_FILEXFER_ATTR_SIZE) |
if (a.flags & SSH2_FILEXFER_ATTR_SIZE) |
|
|
if (a.flags & SSH2_FILEXFER_ATTR_EXTENDED) { |
if (a.flags & SSH2_FILEXFER_ATTR_EXTENDED) { |
char *type, *data; |
char *type, *data; |
int i, count; |
int i, count; |
|
|
count = buffer_get_int(b); |
count = buffer_get_int(b); |
for (i = 0; i < count; i++) { |
for (i = 0; i < count; i++) { |
type = buffer_get_string(b, NULL); |
type = buffer_get_string(b, NULL); |