diff options
| author | Werner Koch <[email protected]> | 2010-08-31 15:58:39 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2010-08-31 15:58:39 +0000 |
| commit | 87fac9911241310a4b601e126fa2e26b10bd370f (patch) | |
| tree | 49e09cc881b44a1dba0e9474040cda1d5f9ce581 /agent/agent.h | |
| parent | Fix for W32. (diff) | |
| download | gnupg-87fac9911241310a4b601e126fa2e26b10bd370f.tar.gz gnupg-87fac9911241310a4b601e126fa2e26b10bd370f.zip | |
Import OpenPGP keys into the agent.
Diffstat (limited to 'agent/agent.h')
| -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 --*/ |
