aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgsm/t-encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/gpgsm/t-encrypt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/gpgsm/t-encrypt.c b/tests/gpgsm/t-encrypt.c
index 1daa7720..510eda5d 100644
--- a/tests/gpgsm/t-encrypt.c
+++ b/tests/gpgsm/t-encrypt.c
@@ -60,7 +60,7 @@ main (int argc, char **argv)
gpgme_ctx_t ctx;
gpgme_error_t err;
gpgme_data_t in, out;
- gpgme_recipients_t rset;
+ gpgme_user_id_t rset = NULL;
gpgme_encrypt_result_t result;
err = gpgme_engine_check_version (GPGME_PROTOCOL_CMS);
@@ -77,11 +77,9 @@ main (int argc, char **argv)
err = gpgme_data_new (&out);
fail_if_err (err);
- err = gpgme_recipients_new (&rset);
- fail_if_err (err);
- err = gpgme_recipients_add_name_with_validity (rset, "test cert 1",
- GPGME_VALIDITY_FULL);
+ err = gpgme_user_ids_append (&rset, "test cert 1");
fail_if_err (err);
+ rset->validity = GPGME_VALIDITY_FULL;
err = gpgme_op_encrypt (ctx, rset, in, out);
fail_if_err (err);
@@ -94,7 +92,7 @@ main (int argc, char **argv)
}
print_data (out);
- gpgme_recipients_release (rset);
+ gpgme_user_ids_release (rset);
gpgme_data_release (in);
gpgme_data_release (out);
gpgme_release (ctx);