diff options
Diffstat (limited to 'src/signers.c')
-rw-r--r-- | src/signers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/signers.c b/src/signers.c index 88f923c5..f43fafc7 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) |