[git] GPGME - branch, master, updated. gpgme-1.3.2-30-g4f38155

by Werner Koch cvs at cvs.gnupg.org
Tue Feb 12 10:54:34 CET 2013


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  4f381554411ef019d79492f1751543f145604bcf (commit)
      from  02a2cf0ccb4d01700adf6d18316d7705d519a048 (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 4f381554411ef019d79492f1751543f145604bcf
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Feb 12 10:42:54 2013 +0100

    Add public function gpgme_get_pinentry_mode.
    
    * src/gpgme.c (gpgme_get_pinentry_mode): New.

diff --git a/NEWS b/NEWS
index 7499b14..1690272 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Noteworthy changes in version 1.3.3 (unreleased)
  gpgme_io_writen                NEW.
  gpgme_set_global_flag          NEW.
  gpgme_set_pinentry_mode        NEW.
+ gpgme_get_pinentry_mode        NEW.
  gpgme_pinentry_mode_t          NEW.
  GPGME_PINENTRY_MODE_DEFAULT    NEW.
  GPGME_PINENTRY_MODE_ASK        NEW.
diff --git a/src/gpgme.c b/src/gpgme.c
index 76c13b1..281ba9c 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -539,6 +539,16 @@ gpgme_set_pinentry_mode (gpgme_ctx_t ctx, gpgme_keylist_mode_t mode)
 }
 
 
+/* Get the pinentry mode of CTX.  */
+gpgme_pinentry_mode_t
+gpgme_get_pinentry_mode (gpgme_ctx_t ctx)
+{
+  TRACE1 (DEBUG_CTX, "gpgme_get_pinentry_mode", ctx,
+	  "ctx->pinentry_mode=%u", (unsigned int)ctx->pinentry_mode);
+  return ctx->pinentry_mode;
+}
+
+
 /* This function sets a callback function to be used to pass a
    passphrase to gpg.  */
 void
diff --git a/src/gpgme.def b/src/gpgme.def
index ccee05a..3a6e0e3 100644
--- a/src/gpgme.def
+++ b/src/gpgme.def
@@ -207,6 +207,7 @@ EXPORTS
     gpgme_io_writen                       @157
 
     gpgme_set_pinentry_mode               @158
+    gpgme_get_pinentry_mode               @159
 
 ; END
 
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 4ec2367..9d9a556 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -875,6 +875,9 @@ gpgme_keylist_mode_t gpgme_get_keylist_mode (gpgme_ctx_t ctx);
 gpgme_error_t gpgme_set_pinentry_mode (gpgme_ctx_t ctx,
                                        gpgme_pinentry_mode_t mode);
 
+/* Get the pinentry mode of CTX.  */
+gpgme_pinentry_mode_t gpgme_get_pinentry_mode (gpgme_ctx_t ctx);
+
 /* Set the passphrase callback function in CTX to CB.  HOOK_VALUE is
    passed as first argument to the passphrase callback function.  */
 void gpgme_set_passphrase_cb (gpgme_ctx_t ctx,
diff --git a/src/libgpgme.vers b/src/libgpgme.vers
index c178af9..358b63c 100644
--- a/src/libgpgme.vers
+++ b/src/libgpgme.vers
@@ -85,6 +85,7 @@ GPGME_1.1 {
     gpgme_io_writen;
 
     gpgme_set_pinentry_mode;
+    gpgme_get_pinentry_mode;
 };
 
 

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

Summary of changes:
 NEWS              |    1 +
 src/gpgme.c       |   10 ++++++++++
 src/gpgme.def     |    1 +
 src/gpgme.h.in    |    3 +++
 src/libgpgme.vers |    1 +
 5 files changed, 16 insertions(+), 0 deletions(-)


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




More information about the Gnupg-commits mailing list