diff options
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/packet.h b/g10/packet.h index 409d7d419..b0a51d1b5 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -60,6 +60,11 @@ #define PUBKEY_USAGE_RENC 1024 /* Restricted encryption. */ #define PUBKEY_USAGE_TIME 2048 /* Timestamp use. */ +/* The usage bits which can be derived from the algo. */ +#define PUBKEY_USAGE_BASIC_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC\ + |PUBKEY_USAGE_CERT|PUBKEY_USAGE_AUTH) + + /* Helper macros. */ #define is_RSA(a) ((a)==PUBKEY_ALGO_RSA || (a)==PUBKEY_ALGO_RSA_E \ || (a)==PUBKEY_ALGO_RSA_S ) |