]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Add several values to uri_type
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 1 Mar 2024 21:25:54 +0000 (15:25 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 1 Mar 2024 22:07:31 +0000 (16:07 -0600)
commite41ddbb51804f4df68191913f896b0e62f671ac9
treee9c2633e1de0292aacae2643ef0412389b09413d
parentf73c06a3d6d09e432657530a674165f690b496e2
Add several values to uri_type

In the upcoming commits, the cache is going to need to start managing
the notifications differently from the other downloadables, including
snapshots and deltas.

The logic used to differentiate the different objects from each other
was getting convoluted, and had been naturally converging into the URI
object since the 1.6.0 refactors, IIRC.

So stop beating around the bush and commit to this design. Store the
type in the URI object, and add several values to the uri_type enum.
21 files changed:
src/cache/local_cache.c
src/cache/local_cache.h
src/common.c
src/file.c
src/file.h
src/http/http.c
src/http/http.h
src/init.c
src/json_util.c
src/json_util.h
src/object/certificate.c
src/object/manifest.c
src/object/tal.c
src/rrdp.c
src/types/uri.c
src/types/uri.h
test/cache/local_cache_test.c
test/crypto/hash_test.c
test/rrdp_test.c
test/tal_test.c
test/types/uri_test.c