summaryrefslogtreecommitdiff
path: root/tests/pubkey.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-12-04 16:11:53 +0000
committerWerner Koch <wk@gnupg.org>2003-12-04 16:11:53 +0000
commiteffe9aaa1d7b96f8b702501b29023174b902c699 (patch)
tree696a89a559e4e40d69dd821c40e3551b7919fd99 /tests/pubkey.c
parent65ca81d39bb7d900c7b9d9908c77668172371ddf (diff)
downloadlibgcrypt-effe9aaa1d7b96f8b702501b29023174b902c699.tar.gz
* pubkey.c (check_keys_crypt): Fixed my last patch.
Diffstat (limited to 'tests/pubkey.c')
-rw-r--r--tests/pubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pubkey.c b/tests/pubkey.c
index 747f9460..8753732b 100644
--- a/tests/pubkey.c
+++ b/tests/pubkey.c
@@ -93,7 +93,7 @@ check_keys_crypt (gcry_sexp_t pkey, gcry_sexp_t skey,
if (rc)
die ("encryption failed: %s\n", gcry_strerror (rc));
- l = gcry_sexp_find_token (plain1, "flags", 0);
+ l = gcry_sexp_find_token (cipher, "flags", 0);
have_flags = !!l;
gcry_sexp_release (l);
@@ -104,7 +104,7 @@ check_keys_crypt (gcry_sexp_t pkey, gcry_sexp_t skey,
die ("decryption failed: %s\n", gcry_strerror (rc));
/* Extract decrypted data. Note that for compatibility reasons, the
- output opf gcry_pk_decrypt depends on whether a flags lists (even
+ output of gcry_pk_decrypt depends on whether a flags lists (even
if empty) occurs in its input data. Because we passed the output
of encrypt directly to decrypt, such a flag value won't be there
as of today. We check it anyway. */