mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Add pin length field to the shadowed private key format.
This is not yet fully implemented. It will eventually allow to support pinpad equipped readers which do not support variable length pin lengths. * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and parse pinlen info. Change all callers to pass NULL for it.
This commit is contained in:
parent
12ea5c904c
commit
b817ae7df9
5 changed files with 41 additions and 5 deletions
|
@ -394,7 +394,7 @@ int agent_shadow_key (const unsigned char *pubkey,
|
|||
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);
|
||||
char **r_hexsn, char **r_idstr, int *r_pinlen);
|
||||
gpg_error_t s2k_hash_passphrase (const char *passphrase, int hashalgo,
|
||||
int s2kmode,
|
||||
const unsigned char *s2ksalt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue