summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-04-06 10:18:53 +0200
committerWerner Koch <wk@gnupg.org>2018-04-06 10:18:53 +0200
commit5ba74a134db431530884f03eea5410a68dbfe0f5 (patch)
treee3f96733c4bbf5a6e847708a7ff81d51c682824f /g10/keydb.h
parentagent: Support SSH signature flags. (diff)
downloadgnupg2-5ba74a134db431530884f03eea5410a68dbfe0f5.tar.xz
gnupg2-5ba74a134db431530884f03eea5410a68dbfe0f5.zip
gpg: Re-indent sig-check.c and use signature class macros.
* g10/keydb.h (IS_BACK_SIG): New. * g10/sig-check.c: Re-indent and use macros. -- This makes the code easier to understand. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 739376838..627564c3c 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -33,6 +33,7 @@
#define IS_KEY_SIG(s) ((s)->sig_class == 0x1f)
#define IS_UID_SIG(s) (((s)->sig_class & ~3) == 0x10)
#define IS_SUBKEY_SIG(s) ((s)->sig_class == 0x18)
+#define IS_BACK_SIG(s) ((s)->sig_class == 0x19)
#define IS_KEY_REV(s) ((s)->sig_class == 0x20)
#define IS_UID_REV(s) ((s)->sig_class == 0x30)
#define IS_SUBKEY_REV(s) ((s)->sig_class == 0x28)