aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-01-06 21:06:23 +0000
committerWerner Koch <[email protected]>2003-01-06 21:06:23 +0000
commit3552416199ea6b714e0e6eeab92124d8714a1614 (patch)
tree26babf908a822c0409d38de9a117292ee4c38b54
parent2003-01-06 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-3552416199ea6b714e0e6eeab92124d8714a1614.tar.gz
gpgme-3552416199ea6b714e0e6eeab92124d8714a1614.zip
* keylist.c (set_mainkey_capability): Handle 'd' and 'D' used
since gpg 1.3 to denote disabled keys.
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/gpgme.h2
-rw-r--r--gpgme/keylist.c12
3 files changed, 18 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 1158538c..040c4588 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-06 Werner Koch <[email protected]>
+
+ * keylist.c (set_mainkey_capability): Handle 'd' and 'D' used
+ since gpg 1.3 to denote disabled keys.
+
2003-01-06 Marcus Brinkmann <[email protected]>
* data-mem.c: Include <string.h>.
diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h
index f38f2919..9546c7a1 100644
--- a/gpgme/gpgme.h
+++ b/gpgme/gpgme.h
@@ -43,7 +43,7 @@ extern "C" {
AM_PATH_GPGME macro) check that this header matches the installed
library. Warning: Do not edit the next line. configure will do
that for you! */
-#define GPGME_VERSION "0.4.0"
+#define GPGME_VERSION "0.4.1"
/* The opaque data types used by GPGME. */
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;