diff options
author | Werner Koch <wk@gnupg.org> | 2003-12-04 16:11:53 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2003-12-04 16:11:53 +0000 |
commit | effe9aaa1d7b96f8b702501b29023174b902c699 (patch) | |
tree | 696a89a559e4e40d69dd821c40e3551b7919fd99 /tests/pubkey.c | |
parent | 65ca81d39bb7d900c7b9d9908c77668172371ddf (diff) | |
download | libgcrypt-effe9aaa1d7b96f8b702501b29023174b902c699.tar.gz |
* pubkey.c (check_keys_crypt): Fixed my last patch.
Diffstat (limited to 'tests/pubkey.c')
-rw-r--r-- | tests/pubkey.c | 4 |
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. */ |