doc: Add a code comment about back signatures.

--
This commit is contained in:
Werner Koch 2018-04-06 11:01:46 +02:00
parent 5ba74a134d
commit cfd0779808
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 1 deletions

View File

@ -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))