make quiet without --verbose flag

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23734 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-09-07 21:06:56 +00:00
parent 4f023f744b
commit 45041db81e

View File

@@ -38,6 +38,8 @@
RCSID("$Id$");
static int verbose_flag = 0;
struct testcase {
const heim_oid *(*oid)(void);
krb5_data Z;
@@ -153,7 +155,7 @@ test_dh2key(krb5_context context, int i, struct testcase *c)
if (ret)
krb5_err(context, 1, ret, "parse_name: %s", c->server);
{
if (verbose_flag) {
char *str;
hex_encode(c->Z.data, c->Z.length, &str);
printf("Z: %s\n", str);
@@ -188,7 +190,7 @@ test_dh2key(krb5_context context, int i, struct testcase *c)
if (ret)
krb5_err(context, 1, ret, "_krb5_pk_kdf: %d", i);
{
if (verbose_flag) {
char *str;
hex_encode(key.keyvalue.data, key.keyvalue.length, &str);
printf("key: %s\n", str);
@@ -209,6 +211,8 @@ static int version_flag = 0;
static int help_flag = 0;
static struct getargs args[] = {
{"verbose", 0, arg_flag, &verbose_flag,
"verbose output", NULL },
{"version", 0, arg_flag, &version_flag,
"print version", NULL },
{"help", 0, arg_flag, &help_flag,