Fewer newlines in comp method output
Print "supported compression methods" all on one line. Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
parent
7eeeb49e11
commit
22ebaae08c
@ -1394,15 +1394,17 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user