diff options
Diffstat (limited to 'gpgme/keylist.c')
-rw-r--r-- | gpgme/keylist.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gpgme/keylist.c b/gpgme/keylist.c index 09cb89f0..ac6bc4bb 100644 --- a/gpgme/keylist.c +++ b/gpgme/keylist.c @@ -141,6 +141,8 @@ set_mainkey_trust_info (GpgmeKey key, const char *src) break; case 'd': + /* Note that gpg 1.3 won't print that anymore but only uses + the capabilities field. */ key->keys.flags.disabled = 1; break; @@ -241,6 +243,16 @@ set_mainkey_capability (GpgmeKey key, const char *src) key->keys.flags.can_certify = 1; break; + case 'd': + case 'D': + /* Note, that this flag is also set using the key validity + field for backward compatibility with gpg 1.2. We use d + and D, so that a future gpg version will be able to + disable certain subkeys. Currently it is expected that + gpg sets this for the primary key. */ + key->keys.flags.disabled = 1; + break; + case 'E': key->gloflags.can_encrypt = 1; break; |