提交 22ebaae0 编写于 作者: R Rich Salz

Fewer newlines in comp method output

Print "supported compression methods" all on one line.
Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 7eeeb49e
...@@ -1394,16 +1394,18 @@ int main(int argc, char *argv[]) ...@@ -1394,16 +1394,18 @@ int main(int argc, char *argv[])
} }
} }
ssl_comp_methods = SSL_COMP_get_compression_methods(); ssl_comp_methods = SSL_COMP_get_compression_methods();
fprintf(stderr, "Available compression methods:\n"); fprintf(stderr, "Available compression methods:");
{ {
int j, n = sk_SSL_COMP_num(ssl_comp_methods); int j, n = sk_SSL_COMP_num(ssl_comp_methods);
if (n == 0) if (n == 0)
fprintf(stderr, " NONE\n"); fprintf(stderr, " NONE\n");
else else {
for (j = 0; j < n; j++) { for (j = 0; j < n; j++) {
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j); SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
fprintf(stderr, " %d: %s\n", c->id, c->name); fprintf(stderr, " %s:%d", c->name, c->id);
} }
fprintf(stderr, "\n");
}
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册