[OpenPGP:SDK svn] r318 - openpgpsdk/trunk/examples
Subversion
ben at algroup.co.uk
Thu Dec 1 13:35:33 GMT 2005
Author: ben
Date: 2005-12-01 13:35:33 +0000 (Thu, 01 Dec 2005)
New Revision: 318
Modified:
openpgpsdk/trunk/examples/verify2.c
Log:
Control verbosity.
Modified: openpgpsdk/trunk/examples/verify2.c
===================================================================
--- openpgpsdk/trunk/examples/verify2.c 2005-11-30 15:23:25 UTC (rev 317)
+++ openpgpsdk/trunk/examples/verify2.c 2005-12-01 13:35:33 UTC (rev 318)
@@ -127,16 +127,21 @@
const char *verify;
int ch;
ops_boolean_t armour=ops_false;
+ ops_boolean_t verbose=ops_false;
pname=argv[0];
- while((ch=getopt(argc,argv,"a")) != -1)
+ while((ch=getopt(argc,argv,"av")) != -1)
switch(ch)
{
case 'a':
armour=ops_true;
break;
+ case 'v':
+ verbose=ops_true;
+ break;
+
default:
usage();
}
@@ -163,7 +168,8 @@
close(arg.fd);
- ops_dump_keyring(&keyring);
+ if(verbose)
+ ops_dump_keyring(&keyring);
ops_parse_info_init(&parse_info);
More information about the OpenPGPsdk-svn
mailing list