Skip to content

Commit

Permalink
Merge pull request #4 from job/skip_tal
Browse files Browse the repository at this point in the history
Skip over .tal files, those don't contain a timestamp anyway
  • Loading branch information
job authored Aug 13, 2024
2 parents fb3f3b6 + e600c4e commit b8147da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpkitouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ enum filetype {
TYPE_CER, /* Certificate */
TYPE_CRL, /* Certificate Revocation List */
TYPE_SOB, /* Signed Object */
TYPE_TAL, /* Trust Anchor Locator */
TYPE_UNKNOWN,
};

/*
* https://www.iana.org/assignments/rpki/rpki.xhtml
* .tal is not IANA registered, but added as convenience.
*/
const struct {
const char *ext;
Expand All @@ -58,6 +60,7 @@ const struct {
{ .ext = ".roa", .type = TYPE_SOB },
{ .ext = ".spl", .type = TYPE_SOB },
{ .ext = ".tak", .type = TYPE_SOB },
{ .ext = ".tal", .type = TYPE_TAL },
};

ASN1_OBJECT *sign_time_oid;
Expand Down Expand Up @@ -411,6 +414,8 @@ main(int argc, char *argv[])
case TYPE_SOB:
time = get_cms_signtime(fn);
break;
case TYPE_TAL:
continue;
default:
warnx("%s: unsupported file", fn);
rc = 1;
Expand Down

0 comments on commit b8147da

Please sign in to comment.