version 1.155, 2019/10/08 22:40:39 |
version 1.156, 2020/01/23 10:24:29 |
|
|
|
|
if (name == NULL) |
if (name == NULL) |
return SSH_ERR_NO_COMPRESS_ALG_MATCH; |
return SSH_ERR_NO_COMPRESS_ALG_MATCH; |
|
#ifdef WITH_ZLIB |
if (strcmp(name, "zlib@openssh.com") == 0) { |
if (strcmp(name, "zlib@openssh.com") == 0) { |
comp->type = COMP_DELAYED; |
comp->type = COMP_DELAYED; |
} else if (strcmp(name, "zlib") == 0) { |
} else if (strcmp(name, "zlib") == 0) { |
comp->type = COMP_ZLIB; |
comp->type = COMP_ZLIB; |
} else if (strcmp(name, "none") == 0) { |
} else |
|
#endif /* WITH_ZLIB */ |
|
if (strcmp(name, "none") == 0) { |
comp->type = COMP_NONE; |
comp->type = COMP_NONE; |
} else { |
} else { |
error("%s: unsupported compression scheme %s", __func__, name); |
error("%s: unsupported compression scheme %s", __func__, name); |