attest displays dates either in local time or UTC
[strongswan.git] / src / libpts / plugins / imv_attestation / attest.c
index 5cfc073..1cdacae 100644 (file)
@@ -145,6 +145,7 @@ static void do_args(int argc, char *argv[])
                        { "rel", no_argument, NULL, 'R' },
                        { "sequence", required_argument, NULL, 'S' },
                        { "seq", required_argument, NULL, 'S' },
+                       { "utc", no_argument, NULL, 'U' },
                        { "version", required_argument, NULL, 'V' },
                        { "security", no_argument, NULL, 'Y' },
                        { "sha1", no_argument, NULL, '1' },
@@ -290,6 +291,9 @@ static void do_args(int argc, char *argv[])
                        case 'S':
                                attest->set_sequence(attest, atoi(optarg));
                                continue;
+                       case 'U':
+                               attest->set_utc(attest);
+                               continue;
                        case 'V':
                                if (!attest->set_version(attest, optarg))
                                {