add reference date for validity verification

This commit is contained in:
Frank Morgner
2013-02-27 21:01:49 +01:00
parent 7f84772778
commit 4f7851d03c
2 changed files with 7 additions and 3 deletions

View File

@@ -598,7 +598,9 @@ main (int argc, char **argv)
} }
if (cmdline.verify_validity_given) { if (cmdline.verify_validity_given) {
r = add_to_ASN1_AUXILIARY_DATA(&templates, r = add_to_ASN1_AUXILIARY_DATA(&templates,
NID_id_DateOfExpiry, NULL, 0); NID_id_DateOfExpiry,
(unsigned char *) cmdline.verify_validity_arg,
strlen(cmdline.verify_validity_arg));
if (r < 0) if (r < 0)
goto err; goto err;
} }

View File

@@ -189,8 +189,10 @@ option "write-dg21" -
section "Verification of validity, age and community ID" section "Verification of validity, age and community ID"
option "verify-validity" - option "verify-validity" -
"Verify the chip's validity" "Verify the chip's validity with a reference date"
flag off string
typestr="YYYYMMDD"
optional
option "older-than" - option "older-than" -
"Verify age with a reference date" "Verify age with a reference date"
string string