diff options
Diffstat (limited to '')
-rw-r--r-- | agent/agent.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/agent/agent.h b/agent/agent.h index b39f2325c..57078ab40 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -171,8 +171,8 @@ struct pin_entry_info_s int with_qualitybar; /* Set if the quality bar should be displayed. */ int (*check_cb)(struct pin_entry_info_s *); /* CB used to check the PIN */ void *check_cb_arg; /* optional argument which might be of use in the CB */ - const char *cb_errtext; /* used by the cb to displaye a specific error */ - size_t max_length; /* allocated length of the buffer */ + const char *cb_errtext; /* used by the cb to display a specific error */ + size_t max_length; /* allocated length of the buffer */ char pin[1]; }; @@ -306,6 +306,11 @@ int agent_get_shadow_info (const unsigned char *shadowkey, unsigned char const **shadow_info); gpg_error_t parse_shadow_info (const unsigned char *shadow_info, char **r_hexsn, char **r_idstr); +gpg_error_t s2k_hash_passphrase (const char *passphrase, int hashalgo, + int s2kmode, + const unsigned char *s2ksalt, + unsigned int s2kcount, + unsigned char *key, size_t keylen); /*-- trustlist.c --*/ |