aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-02-07 13:17:33 +0000
committerWerner Koch <[email protected]>2012-02-07 13:17:33 +0000
commitb817ae7df947093384a25797999a9aa187e20f9c (patch)
tree2c27e1f31ebc1954ce384d18874fd544e4b7b7df /agent/agent.h
parentUse new status printing functions. (diff)
downloadgnupg-b817ae7df947093384a25797999a9aa187e20f9c.tar.gz
gnupg-b817ae7df947093384a25797999a9aa187e20f9c.zip
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.
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h
index d345c66a1..45bc507e3 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -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,