aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-04-06 09:01:46 +0000
committerWerner Koch <[email protected]>2018-04-06 09:01:46 +0000
commitcfd07798087f671c134eef056229bb30e08cc77c (patch)
tree912f412d769629ea662aa0cce7e2bdd62f7e6d28
parentgpg: Re-indent sig-check.c and use signature class macros. (diff)
downloadgnupg-cfd07798087f671c134eef056229bb30e08cc77c.tar.gz
gnupg-cfd07798087f671c134eef056229bb30e08cc77c.zip
doc: Add a code comment about back signatures.
--
-rw-r--r--g10/keydb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 627564c3c..cc99241f5 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -26,7 +26,9 @@
#include "../common/util.h"
#include "packet.h"
-/* What qualifies as a certification (rather than a signature?) */
+/* What qualifies as a certification (key-signature in contrast to a
+ * data signature)? Note that a back signature is special and can be
+ * made by key and data signatures capable subkeys.) */
#define IS_CERT(s) (IS_KEY_SIG(s) || IS_UID_SIG(s) || IS_SUBKEY_SIG(s) \
|| IS_KEY_REV(s) || IS_UID_REV(s) || IS_SUBKEY_REV(s))
#define IS_SIG(s) (!IS_CERT(s))