use validated mode.

This commit is contained in:
Werner Koch 2008-10-30 14:41:23 +00:00
parent 66c64cfa05
commit 9c7489e8d1

View File

@ -63,6 +63,9 @@ main (int argc, char **argv)
fail_if_err (err); fail_if_err (err);
gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS); gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS);
gpgme_set_keylist_mode (ctx, (gpgme_get_keylist_mode (ctx)
| GPGME_KEYLIST_MODE_VALIDATE));
err = gpgme_op_keylist_start (ctx, argc? argv[0]:NULL, 0); err = gpgme_op_keylist_start (ctx, argc? argv[0]:NULL, 0);
fail_if_err (err); fail_if_err (err);