add reference date for validity verification
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user