2003-05-04 Marcus Brinkmann <marcus@g10code.de>
* gpg/t-keylist-sig.c (main): Remove timestamp check.
This commit is contained in:
parent
f5d8c7d3df
commit
13634fff8a
@ -1,5 +1,7 @@
|
|||||||
2003-05-04 Marcus Brinkmann <marcus@g10code.de>
|
2003-05-04 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* gpg/t-keylist-sig.c (main): Remove timestamp check.
|
||||||
|
|
||||||
* gpgsm/t-keylist.c: Add check for timestamp.
|
* gpgsm/t-keylist.c: Add check for timestamp.
|
||||||
|
|
||||||
* gpg/Makefile.am (TESTS): Add t-keylist-sig.
|
* gpg/Makefile.am (TESTS): Add t-keylist-sig.
|
||||||
|
@ -51,7 +51,6 @@ struct
|
|||||||
{
|
{
|
||||||
GpgmePubKeyAlgo algo;
|
GpgmePubKeyAlgo algo;
|
||||||
char *keyid;
|
char *keyid;
|
||||||
int timestamp;
|
|
||||||
char *name;
|
char *name;
|
||||||
char *comment;
|
char *comment;
|
||||||
char *email;
|
char *email;
|
||||||
@ -64,13 +63,13 @@ keys[] =
|
|||||||
{
|
{
|
||||||
{ "A0FF4590BB6122EDEF6E3C542D727CC768697734", "6AE6D7EE46A871F8",
|
{ "A0FF4590BB6122EDEF6E3C542D727CC768697734", "6AE6D7EE46A871F8",
|
||||||
{ { "Alpha Test", "demo key", "alpha@example.net",
|
{ { "Alpha Test", "demo key", "alpha@example.net",
|
||||||
{ GPGME_PK_DSA, "2D727CC768697734", 1052065447,
|
{ GPGME_PK_DSA, "2D727CC768697734",
|
||||||
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } },
|
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } },
|
||||||
{ "Alice", "demo key", NULL,
|
{ "Alice", "demo key", NULL,
|
||||||
{ GPGME_PK_DSA, "2D727CC768697734", 1052065447,
|
{ GPGME_PK_DSA, "2D727CC768697734",
|
||||||
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } },
|
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } },
|
||||||
{ "Alfa Test", "demo key", "alfa@example.net",
|
{ "Alfa Test", "demo key", "alfa@example.net",
|
||||||
{ GPGME_PK_DSA, "2D727CC768697734", 1052065447,
|
{ GPGME_PK_DSA, "2D727CC768697734",
|
||||||
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } } } },
|
"Alpha Test", "demo key", "alpha@example.net", 19, 1 } } } },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
@ -399,12 +398,6 @@ main (int argc, char **argv)
|
|||||||
key->uids->signatures->keyid);
|
key->uids->signatures->keyid);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
if (keys[i].uid[0].sig.timestamp != key->uids->signatures->timestamp)
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Unexpected timestamp in first user ID sig: %li\n",
|
|
||||||
key->uids->signatures->timestamp);
|
|
||||||
exit (1);
|
|
||||||
}
|
|
||||||
if (strcmp (keys[i].uid[0].sig.name, key->uids->signatures->name))
|
if (strcmp (keys[i].uid[0].sig.name, key->uids->signatures->name))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Unexpected name in first user ID sig: %s\n",
|
fprintf (stderr, "Unexpected name in first user ID sig: %s\n",
|
||||||
@ -491,12 +484,6 @@ main (int argc, char **argv)
|
|||||||
key->uids->next->signatures->keyid);
|
key->uids->next->signatures->keyid);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
if (keys[i].uid[1].sig.timestamp != key->uids->next->signatures->timestamp)
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Unexpected timestamp in second user ID sig: %li\n",
|
|
||||||
key->uids->next->signatures->timestamp);
|
|
||||||
exit (1);
|
|
||||||
}
|
|
||||||
if (strcmp (keys[i].uid[1].sig.name, key->uids->next->signatures->name))
|
if (strcmp (keys[i].uid[1].sig.name, key->uids->next->signatures->name))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Unexpected name in second user ID sig: %s\n",
|
fprintf (stderr, "Unexpected name in second user ID sig: %s\n",
|
||||||
@ -586,12 +573,6 @@ main (int argc, char **argv)
|
|||||||
key->uids->next->next->signatures->keyid);
|
key->uids->next->next->signatures->keyid);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
if (keys[i].uid[2].sig.timestamp != key->uids->next->next->signatures->timestamp)
|
|
||||||
{
|
|
||||||
fprintf (stderr, "Unexpected timestamp in third user ID sig: %li\n",
|
|
||||||
key->uids->next->next->signatures->timestamp);
|
|
||||||
exit (1);
|
|
||||||
}
|
|
||||||
if (strcmp (keys[i].uid[2].sig.name, key->uids->next->next->signatures->name))
|
if (strcmp (keys[i].uid[2].sig.name, key->uids->next->next->signatures->name))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Unexpected name in third user ID sig: %s\n",
|
fprintf (stderr, "Unexpected name in third user ID sig: %s\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user