[git] GPGME - branch, master, updated. gpgme-1.4.2-2-gf2eeccb
by Werner Koch
cvs at cvs.gnupg.org
Tue Jun 18 10:54:41 CEST 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 f2eeccbdfaf855a81abb92abe5ab4c702712bac7 (commit)
from 5df596d6ec62c304db9b988b17fcbbed126855b4 (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 f2eeccbdfaf855a81abb92abe5ab4c702712bac7
Author: Werner Koch <wk at gnupg.org>
Date: Tue Jun 18 10:27:46 2013 +0200
Add function gpgme_signers_count.
* src/signers.c (gpgme_signers_count): New.
* src/libgpgme.vers, src/gpgme.def: Add as external symbol.
* src/gpgme.h.in: Add prototype.
diff --git a/NEWS b/NEWS
index 3b8fea3..55c8660 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
Noteworthy changes in version 1.4.3 (unreleased)
------------------------------------------------
+ * Interface changes relative to the 1.4.2 release:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ gpgme_signers_count NEW.
+
Noteworthy changes in version 1.4.2 (2013-05-28)
------------------------------------------------
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index 217dc13..1a19370 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -4785,6 +4785,11 @@ list of signers in the context @var{ctx}.
Calling this function acquires an additional reference for the key.
@end deftypefun
+ at deftypefun @w{unsigned int} gpgme_signers_count (@w{const gpgme_ctx_t @var{ctx}})
+The function @code{gpgme_signers_count} returns the number of signer keys in
+the context @var{ctx}.
+ at end deftypefun
+
@deftypefun gpgme_key_t gpgme_signers_enum (@w{const gpgme_ctx_t @var{ctx}}, @w{int @var{seq}})
The function @code{gpgme_signers_enum} returns the @var{seq}th key in
the list of signers in the context @var{ctx}. An additional reference
diff --git a/src/gpgme.def b/src/gpgme.def
index 3a6e0e3..7610d37 100644
--- a/src/gpgme.def
+++ b/src/gpgme.def
@@ -209,5 +209,7 @@ EXPORTS
gpgme_set_pinentry_mode @158
gpgme_get_pinentry_mode @159
+ gpgme_signers_count @160
+
; END
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 11780d1..f644a50 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -934,6 +934,9 @@ void gpgme_signers_clear (gpgme_ctx_t ctx);
/* Add KEY to list of signers in CTX. */
gpgme_error_t gpgme_signers_add (gpgme_ctx_t ctx, const gpgme_key_t key);
+/* Return the number of signers in CTX. */
+unsigned int gpgme_signers_count (const gpgme_ctx_t ctx);
+
/* Return the SEQth signer's key in CTX. */
gpgme_key_t gpgme_signers_enum (const gpgme_ctx_t ctx, int seq);
diff --git a/src/libgpgme.vers b/src/libgpgme.vers
index 358b63c..0b2e89d 100644
--- a/src/libgpgme.vers
+++ b/src/libgpgme.vers
@@ -143,6 +143,7 @@ GPGME_1.0 {
gpgme_set_textmode;
gpgme_signers_add;
gpgme_signers_clear;
+ gpgme_signers_count;
gpgme_signers_enum;
gpgme_key_ref;
diff --git a/src/signers.c b/src/signers.c
index 88f923c..f43fafc 100644
--- a/src/signers.c
+++ b/src/signers.c
@@ -93,6 +93,14 @@ gpgme_signers_add (gpgme_ctx_t ctx, const gpgme_key_t key)
}
+/* Return the number of signers in CTX. */
+unsigned int
+gpgme_signers_count (const gpgme_ctx_t ctx)
+{
+ return ctx? ctx->signers_len : 0;
+}
+
+
/* Return the SEQth signer's key in CTX with one reference. */
gpgme_key_t
gpgme_signers_enum (const gpgme_ctx_t ctx, int seq)
-----------------------------------------------------------------------
Summary of changes:
NEWS | 4 ++++
doc/gpgme.texi | 5 +++++
src/gpgme.def | 2 ++
src/gpgme.h.in | 3 +++
src/libgpgme.vers | 1 +
src/signers.c | 8 ++++++++
6 files changed, 23 insertions(+), 0 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list