aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/recipient.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/recipient.c')
-rw-r--r--gpgme/recipient.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/gpgme/recipient.c b/gpgme/recipient.c
index 2e377ad9..43d36987 100644
--- a/gpgme/recipient.c
+++ b/gpgme/recipient.c
@@ -77,6 +77,46 @@ gpgme_recipients_count ( const GpgmeRecipients rset )
}
+
+GpgmeError
+gpgme_recipients_enum_open ( const GpgmeRecipients rset, void **ctx )
+{
+ if (!rset || !ctx)
+ return mk_error (Invalid_Value);
+
+ *ctx = rset->list;
+ return 0;
+}
+
+const char *
+gpgme_recipients_enum_read ( const GpgmeRecipients rset, void **ctx )
+{
+ struct user_id_s *r;
+
+ if (!rset || !ctx)
+ return NULL; /* oops */
+
+ r = *ctx;
+ if ( r ) {
+ const char *s = r->name;
+ r = r->next;
+ *ctx = r;
+ return s;
+ }
+
+ return NULL;
+}
+
+GpgmeError
+gpgme_recipients_enum_close ( const GpgmeRecipients rset, void **ctx )
+{
+ if (!rset || !ctx)
+ return mk_error (Invalid_Value);
+ *ctx = NULL;
+ return 0;
+}
+
+
void
_gpgme_append_gpg_args_from_recipients (
const GpgmeRecipients rset,
@@ -92,3 +132,6 @@ _gpgme_append_gpg_args_from_recipients (
}
+
+
+