aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cardglue.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-12-10 10:49:14 +0000
committerWerner Koch <[email protected]>2004-12-10 10:49:14 +0000
commit5a37f0deab970fc31fefe4bb37ada3ce4093a331 (patch)
treef8917e62f8fb1ba929e3d951f39f98fe7f51560c /g10/cardglue.c
parent* options.h, g10.c (main), textfilter.c (len_without_trailing_ws): Removed (diff)
downloadgnupg-5a37f0deab970fc31fefe4bb37ada3ce4093a331.tar.gz
gnupg-5a37f0deab970fc31fefe4bb37ada3ce4093a331.zip
* app-openpgp.c (send_fprtime_if_not_null): New.
(do_getattr): Add KEY_TIME. (do_learn_status): Print KEY_TIME. * cardglue.c (learn_status_cb): Parse KEY-TIME. * card-util.c (card_status): Print creation time if available.
Diffstat (limited to 'g10/cardglue.c')
-rw-r--r--g10/cardglue.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/g10/cardglue.c b/g10/cardglue.c
index 48991633c..e6bcbe286 100644
--- a/g10/cardglue.c
+++ b/g10/cardglue.c
@@ -558,6 +558,20 @@ learn_status_cb (void *opaque, const char *line)
else if (no == 3)
parm->fpr3valid = unhexify_fpr (line, parm->fpr3);
}
+ else if (keywordlen == 8 && !memcmp (keyword, "KEY-TIME", keywordlen))
+ {
+ int no = atoi (line);
+ while (* line && !spacep (line))
+ line++;
+ while (spacep (line))
+ line++;
+ if (no == 1)
+ parm->fpr1time = strtoul (line, NULL, 10);
+ else if (no == 2)
+ parm->fpr2time = strtoul (line, NULL, 10);
+ else if (no == 3)
+ parm->fpr3time = strtoul (line, NULL, 10);
+ }
else if (keywordlen == 6 && !memcmp (keyword, "CA-FPR", keywordlen))
{
int no = atoi (line);