aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-03-20 09:09:40 +0000
committerWerner Koch <[email protected]>2017-03-20 09:09:40 +0000
commitfe0b37e123ded51cc5f4cb5e3547fdfbce37a43e (patch)
treef2d6fd82b6f04fce658d397b6961374a8b09f514 /g10/main.h
parentgpg: Remove unused stuff. (diff)
downloadgnupg-fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e.tar.gz
gnupg-fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e.zip
gpg: Add new field no 18 to the colon listing.
* g10/misc.c (gnupg_pk_is_compliant): New. * g10/keylist.c (print_compliance_flags): New. (list_keyblock_colon): Call it here. * sm/keylist.c (print_compliance_flags): New. (list_cert_colon): Call it here. -- This patch is to convey information about DE_VS compliant keys to the caller. The double digit value is used so that parsers do the right thing and don't just look for a single digit. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h
index f58f04162..c9c345418 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -125,6 +125,9 @@ int openpgp_pk_test_algo2 (pubkey_algo_t algo, unsigned int use);
int openpgp_pk_algo_usage ( int algo );
const char *openpgp_pk_algo_name (pubkey_algo_t algo);
+int gnupg_pk_is_compliant (int compliance, PKT_public_key *pk,
+ unsigned int keylength, const char *curvename);
+
enum gcry_md_algos map_md_openpgp_to_gcry (digest_algo_t algo);
int openpgp_md_test_algo (digest_algo_t algo);
const char *openpgp_md_algo_name (int algo);