diff options
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index 9aaf26441..dfc82ec2f 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -181,6 +181,8 @@ struct server_control_s PKSIGN command to the scdaemon. */ int in_passwd; /* Hack to inhibit enforced passphrase change during an explicit passwd command. */ + + unsigned long s2k_count; /* Other than the calibrated count. */ }; @@ -332,7 +334,8 @@ gpg_error_t agent_protect_and_store (ctrl_t ctrl, gcry_sexp_t s_skey, unsigned long get_standard_s2k_count (void); unsigned char get_standard_s2k_count_rfc4880 (void); int agent_protect (const unsigned char *plainkey, const char *passphrase, - unsigned char **result, size_t *resultlen); + unsigned char **result, size_t *resultlen, + unsigned long s2k_count); int agent_unprotect (const unsigned char *protectedkey, const char *passphrase, gnupg_isotime_t protected_at, unsigned char **result, size_t *resultlen); |