]> git.ipfire.org Git - thirdparty/FORT-validator.git/log
thirdparty/FORT-validator.git
7 years agoMore misc tweaks:
Alberto Leiva Popper [Fri, 18 Jan 2019 20:09:12 +0000 (14:09 -0600)] 
More misc tweaks:

- Validate more certificate extensions
- Ensure there is only one visible CRL and manifest per publication
  point.
- Validate ROA's max length more thoroughly.

7 years agoImprove of rsync.c code
dhfelix [Fri, 18 Jan 2019 18:46:42 +0000 (12:46 -0600)] 
Improve of rsync.c code

-add unit test for rsync.c
-TODO fix tal_tests

7 years agoImplement some postponed requirements
Alberto Leiva Popper [Tue, 15 Jan 2019 15:42:17 +0000 (09:42 -0600)] 
Implement some postponed requirements

At this point I'm filling in blanks and TODOs rather than focus on a
particular feature. Mainly, this commit adds

- Validate certificate extensions
- Improve the main loop so it stops on the TAL's first successful URI

7 years agoReview of rsync.c code
Alberto Leiva Popper [Fri, 21 Dec 2018 06:04:47 +0000 (00:04 -0600)] 
Review of rsync.c code

Still need to review the calling code and actually test it.

7 years agoMerge branch 'rsync'
Alberto Leiva Popper [Thu, 20 Dec 2018 19:10:20 +0000 (13:10 -0600)] 
Merge branch 'rsync'

7 years agoValidate signed object hashes
Alberto Leiva Popper [Thu, 20 Dec 2018 17:09:17 +0000 (11:09 -0600)] 
Validate signed object hashes

And address several other minor TODOs

7 years agoAdd validation of manifest hashes
Alberto Leiva Popper [Mon, 17 Dec 2018 23:26:42 +0000 (17:26 -0600)] 
Add validation of manifest hashes

It seems that the basic tree validation, at least as far as the
first iteration is concerned, is done.

Except I never managed to understand AS validation at all. It's
like there's nothing to do.

Of course, there's still a ways to go. I still have to add many
little ifs that the project needs to reach strict RFC compliance.
Also those 20-octet sequence manifest numbers. WTF.

7 years agoAdds:
Alberto Leiva Popper [Mon, 17 Dec 2018 19:01:35 +0000 (13:01 -0600)] 
Adds:

- Check that the TAL's public key matches the root cert's public key
- Validate EE certificates differently than CA certificates
- Reorder tree traversal. (I noticed that I was doing it wrong.)
- Polish many other validations by hunting TODOs

7 years agoAdd rsync command execution to download repositories
dhfelix [Fri, 14 Dec 2018 22:48:40 +0000 (16:48 -0600)] 
Add rsync command execution to download repositories

First version of the code, when executing the app, if a 4th arg is
detected, the app will not run rsync.

Maybe I need to replace the "system()" call with another function to
execute the "rsync command"

Also needs to read the "rsync command" from a user JSON configuration
file.

7 years agoRead the host address as a hostname
dhfelix [Fri, 14 Dec 2018 02:39:58 +0000 (20:39 -0600)] 
Read the host address as a hostname

Converts the hostname to its equivalent in IPv4 or IPv6

7 years agoRefactor: Send the validation state to thread local
Alberto Leiva Popper [Tue, 11 Dec 2018 17:18:31 +0000 (11:18 -0600)] 
Refactor: Send the validation state to thread local

Unclutters lots of argument lists.
Also delete the prefix*_contains functions. Weren't being used.

7 years agoAutomatically print offending files' names on errors
Alberto Leiva Popper [Tue, 11 Dec 2018 15:12:20 +0000 (09:12 -0600)] 
Automatically print offending files' names on errors

7 years agoAdds:
Alberto Leiva Popper [Sat, 8 Dec 2018 03:26:15 +0000 (21:26 -0600)] 
Adds:

- IP ranges
- Bunch of ROA validation
- Bunch of certificate validation

I clearly don't understand how EE certificates validate AS numbers.
They never seem to have the AS extension.
Back to reading...

7 years agoMore certificate validation
Alberto Leiva Popper [Thu, 29 Nov 2018 21:52:13 +0000 (15:52 -0600)] 
More certificate validation

Includes an implementation of RFC 3779.

There's a lot of diff pollution due to another log.c refactor.
I can't seem to nail the right implementation of that thing.

7 years agoAdd actual certificate tree validation and other misc tweaks
Alberto Leiva Popper [Thu, 15 Nov 2018 20:11:47 +0000 (14:11 -0600)] 
Add actual certificate tree validation and other misc tweaks

The tweaks are

1. Unified error message printing. Probably not the final version.
2. Add validation state object, meant to be passed around everywhere.
   Prevents global variables.
3. Add a sketch of the CRL code. WIP.

7 years agoAdd jansson reference as json parser
dhfelix [Fri, 9 Nov 2018 22:12:02 +0000 (16:12 -0600)] 
Add jansson reference as json parser

7 years agoImplement address block parsing (rfc3779, section 2.1)
Alberto Leiva Popper [Wed, 7 Nov 2018 16:14:20 +0000 (10:14 -0600)] 
Implement address block parsing (rfc3779, section 2.1)

Also, move the signed code decoding to its own module to prevent
duplicate code elsewhere

7 years agoImplement a bunch of global logic
Alberto Leiva Popper [Fri, 2 Nov 2018 19:18:05 +0000 (13:18 -0600)] 
Implement a bunch of global logic

The code traverses my repository clone, apparently in a correct
(although recursive) manner.

Not many validations are performed yet.

7 years agoImplement about 40% of RFC 6486 (Manifests)
Alberto Leiva Popper [Thu, 27 Sep 2018 21:56:50 +0000 (16:56 -0500)] 
Implement about 40% of RFC 6486 (Manifests)

7 years agoImplement about 80% of RFC 6482 (ROAs)
Alberto Leiva Popper [Wed, 26 Sep 2018 18:49:45 +0000 (13:49 -0500)] 
Implement about 80% of RFC 6482 (ROAs)

7 years agoAbout 80% of RFC 6488
Alberto Leiva Popper [Fri, 21 Sep 2018 22:42:58 +0000 (17:42 -0500)] 
About 80% of RFC 6488

7 years agoImplement RFC 7730 (TALs)
Alberto Leiva Popper [Tue, 4 Sep 2018 21:17:34 +0000 (16:17 -0500)] 
Implement RFC 7730 (TALs)

7 years agoInitial commit
Alberto Leiva Popper [Tue, 4 Sep 2018 21:08:55 +0000 (16:08 -0500)] 
Initial commit

7 years agoAdd unit testing framework
Alberto Leiva Popper [Wed, 29 Aug 2018 22:23:03 +0000 (17:23 -0500)] 
Add unit testing framework

And fix some bugs as a side effect.

7 years agoImprove the autotools config
Alberto Leiva Popper [Thu, 23 Aug 2018 22:38:53 +0000 (17:38 -0500)] 
Improve the autotools config

The idea is to make it debian-packaging friendly.
It should work out of the box if appended a minimalistic debian
directory now.

7 years agoAdd the traditional autoconf/automake mess
Alberto Leiva Popper [Thu, 23 Aug 2018 02:19:04 +0000 (21:19 -0500)] 
Add the traditional autoconf/automake mess

7 years agoAdd string parsing to RTR
Alberto Leiva Popper [Thu, 23 Aug 2018 02:14:21 +0000 (21:14 -0500)] 
Add string parsing to RTR

Rob Austein, author of RFCs 6810 and 8210, clarified that string
length unit is octets. Dumping according (still untested) code.

7 years agoAdd RTR socket draft
Alberto Leiva Popper [Thu, 16 Aug 2018 16:41:12 +0000 (11:41 -0500)] 
Add RTR socket draft

7 years agoInitial commit
Alberto Leiva Popper [Thu, 16 Aug 2018 16:23:32 +0000 (11:23 -0500)] 
Initial commit