]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Process delta files, create rrdp_loader to centralize rrdp processing.
authorpcarana <pc.moreno2099@gmail.com>
Fri, 29 Nov 2019 21:54:33 +0000 (15:54 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 29 Nov 2019 21:54:33 +0000 (15:54 -0600)
commitbfad4397d4da6320de83ace3baedbc752aab2c8d
treeabd7e062bb749dc5a87935796a8a8399b7a5c33f
parent0c2e464aefa0e888edd23256e38a0027c85651d4
Process delta files, create rrdp_loader to centralize rrdp processing.

+Parse and process delta files, includes file deleting due to a withdraw as well as the parent dir deletion if the dir is empty.
+Consider that 'publish' elements have an optional 'hash' in some cases.
+Calculate the deltas necessary to process from a notification file, based on the current loaded serial and the last downloaded serial.
+Add handler function to get the last downloaded serial.
+The RRDP loader gets the notification file and takes the decission to process such file (no changes, serial update, session update, or new uri). Its code was at certificate.c, but was rellocated here.
+Remove SLIST from rrdp_objects, as well as some other properties that aren't necessary (lists at delta and at snapshot structs).
+Prepare 'deltas_head' to be referenced from distinct parts.
+Fix serial validation when parsing a 'son' object (e.g. validating a delta that was listed at the update notification file).
+No need to return parsed snapshot and delta, since they are processed asap and no further actions are required with the allocated structs.
15 files changed:
src/Makefile.am
src/object/certificate.c
src/object/tal.c
src/rrdp/db_rrdp.c
src/rrdp/db_rrdp.h
src/rrdp/rrdp_handler.c
src/rrdp/rrdp_handler.h
src/rrdp/rrdp_loader.c [new file with mode: 0644]
src/rrdp/rrdp_loader.h [new file with mode: 0644]
src/rrdp/rrdp_objects.c
src/rrdp/rrdp_objects.h
src/rrdp/rrdp_parser.c
src/rrdp/rrdp_parser.h
src/rtr/db/vrps.c
src/rtr/db/vrps.h