From d95beb85dfa413a9f61c7026607574e9bf608ab0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 May 2015 08:55:57 +0200 Subject: [PATCH] Typo fixes -- --- agent/findkey.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/findkey.c b/agent/findkey.c index 80771c5bb..699291dfc 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -47,7 +47,7 @@ struct try_unprotect_arg_s const unsigned char *protected_key; unsigned char *unprotected_key; int change_required; /* Set by the callback to indicate that the - user should chnage the passphrase. */ + user should change the passphrase. */ }; @@ -469,6 +469,8 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text, assert (arg.unprotected_key); if (arg.change_required) { + /* The callback told as that the user should change their + passphrase. Present the dialog to do. */ size_t canlen, erroff; gcry_sexp_t s_skey; @@ -499,6 +501,7 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text, } else { + /* Passphrase is fine. */ agent_put_cache (hexgrip, cache_mode, pi->pin, lookup_ttl? lookup_ttl (hexgrip) : 0); agent_store_cache_hit (hexgrip);