[seahorse] gpgme-subkey / types: Add CAN_CERTIFY and CAN_AUTHENTICATE flags for PGP subkeys
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] gpgme-subkey / types: Add CAN_CERTIFY and CAN_AUTHENTICATE flags for PGP subkeys
- Date: Tue, 29 Jul 2014 20:24:08 +0000 (UTC)
commit 018881b9912357678c2e0e12ed109c93eb3ec9fb
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jul 29 08:47:51 2014 -0500
gpgme-subkey / types: Add CAN_CERTIFY and CAN_AUTHENTICATE flags for PGP subkeys
We only supported CAN_ENCRYPT and CAN_SIGN, but subkeys can have these other two flags as well.
https://bugzilla.gnome.org/show_bug.cgi?id=733920
Signed-off-by: Federico Mena Quintero <federico gnome org>
common/types.vala | 6 ++++++
pgp/seahorse-gpgme-subkey.c | 4 ++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/common/types.vala b/common/types.vala
index 6f33e57..081065b 100644
--- a/common/types.vala
+++ b/common/types.vala
@@ -43,6 +43,12 @@ public enum Flags {
[CCode (cname = "SEAHORSE_FLAG_CAN_SIGN")]
CAN_SIGN = 0x00000004,
+ [CCode (cname = "SEAHORSE_FLAG_CAN_CERTIFY")]
+ CAN_CERTIFY = 0x00000008,
+
+ [CCode (cname = "SEAHORSE_FLAG_CAN_AUTHENTICATE")]
+ CAN_AUTHENTICATE = 0x00000010,
+
[CCode (cname = "SEAHORSE_FLAG_EXPIRED")]
EXPIRED = 0x00000100,
diff --git a/pgp/seahorse-gpgme-subkey.c b/pgp/seahorse-gpgme-subkey.c
index ab8aef9..7d310da 100644
--- a/pgp/seahorse-gpgme-subkey.c
+++ b/pgp/seahorse-gpgme-subkey.c
@@ -230,6 +230,10 @@ seahorse_gpgme_subkey_set_subkey (SeahorseGpgmeSubkey *self, gpgme_subkey_t subk
flags |= SEAHORSE_FLAG_CAN_ENCRYPT;
if (subkey->can_sign)
flags |= SEAHORSE_FLAG_CAN_SIGN;
+ if (subkey->can_certify)
+ flags |= SEAHORSE_FLAG_CAN_CERTIFY;
+ if (subkey->can_authenticate)
+ flags |= SEAHORSE_FLAG_CAN_AUTHENTICATE;
seahorse_pgp_subkey_set_flags (base, flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]