]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Add sequence BIO
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 8 May 2024 16:48:09 +0000 (10:48 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 8 May 2024 16:48:09 +0000 (10:48 -0600)
commit501a1481eacdbace7bd1d347ba6428f5175fc6f5
treedcb8dfa6feefaf893528879555bf3de176eea351
parentcd51c17e6b69a3d35f5b611846a4c69b92790b07
Add sequence BIO

It's a BIO that concatenates two other BIOs when reading.
Needed so the file parser can read the file header twice, without using
rewind(3).

(Which can't be used while piping, as it turns out.)

This allows printing a subfile from a delta or snapshot:

$ xmlstarlet sel -t -v "//_:publish[2]" delta.xml |
base64 --decode |
fort --mode=print
src/Makefile.am
src/asn1/asn1c/CRL.c
src/asn1/asn1c/CRL.h
src/asn1/asn1c/Certificate.c
src/asn1/asn1c/Certificate.h
src/asn1/asn1c/ROAIPAddressFamily.c
src/print_file.c
src/types/bio_seq.c [new file with mode: 0644]
src/types/bio_seq.h [new file with mode: 0644]