[git] GPGME - branch, master, updated. gpgme-1.8.0-89-g8071a6b

by Andre Heinecke cvs at cvs.gnupg.org
Thu Mar 2 09:38:46 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  8071a6b2ca33c2a46ed1d50ae7283241daaafcd3 (commit)
      from  d63258066d008de113ed1170f1b0e787a5bdaba1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8071a6b2ca33c2a46ed1d50ae7283241daaafcd3
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Mar 2 09:35:05 2017 +0100

    cpp: Add subkey keygrip to API
    
    * lang/cpp/src/key.cpp (Subkey::keyGrip): New.
    * lang/cpp/src/key.h: Update accordingly.

diff --git a/NEWS b/NEWS
index 4ad1cea..7899522 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Noteworthy changes in version 1.8.1 (unreleased)
  cpp: Key::UserID::revoke()                         NEW.
  cpp: Key::addUid()                                 NEW.
  cpp: GpgGenCardKeyInteractor                       NEW.
+ cpp: Subkey::keyGrip                               NEW.
  qt: CryptoConfig::stringValueList()                NEW.
  gpgme_data_rewind                                  UN-DEPRECATE.
  py: Context.__init__        EXTENDED: New keyword arg home_dir.
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp
index 3cc26a7..9eebbf0 100644
--- a/lang/cpp/src/key.cpp
+++ b/lang/cpp/src/key.cpp
@@ -476,7 +476,12 @@ bool Subkey::isCardKey() const
 
 const char *Subkey::cardSerialNumber() const
 {
-    return subkey ? subkey->card_number : 0 ;
+    return subkey ? subkey->card_number : nullptr;
+}
+
+const char *Subkey::keyGrip() const
+{
+    return subkey ? subkey->keygrip : nullptr;
 }
 
 bool Subkey::isSecret() const
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h
index b0599c7..8c11a9d 100644
--- a/lang/cpp/src/key.h
+++ b/lang/cpp/src/key.h
@@ -270,6 +270,8 @@ public:
 
     const char *cardSerialNumber() const;
 
+    const char *keyGrip() const;
+
 private:
     shared_gpgme_key_t key;
     gpgme_sub_key_t subkey;

-----------------------------------------------------------------------

Summary of changes:
 NEWS                 | 1 +
 lang/cpp/src/key.cpp | 7 ++++++-
 lang/cpp/src/key.h   | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list