There has been an update to
https://www.ietf.org/rfcdiff?url2=draft-ietf-sidrops-https-tal-05
Which permits comments in the tal files. I proposed this at nanog yvr
as something which might help the arin tal hangup.
queue_add_tal(int fd, struct entityq *q, const char *file, size_t *eid)
{
+ static unsigned char buf[4096];
char *nfile;
+ ssize_t n, i;
+ int tfd;
+
+ if ((tfd = open(file, O_RDONLY)) == -1)
+ err(EXIT_FAILURE, "open: %s", file);
+ n = read(tfd, buf, sizeof(buf));
+ if (n == -1)
+ err(EXIT_FAILURE, "read: %s", file);
+ if (n == sizeof(buf))
+ errx(EXIT_FAILURE, "read: %s: file too big", file);
+ for (i = 0; i < n; i++)
A commented file might not fit in your buffer. I suggest you minimally
parse the file, discarding the comment lines. The remaining tal contents
will be small enough to pass to the other process.