version 1.4.2.1, 2002/03/07 17:37:47 |
version 1.4.2.2, 2002/06/26 18:22:36 |
|
|
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); |