]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Fix AIA validation, log all 'enomem', use tmp files at http downloads
authorpcarana <pc.moreno2099@gmail.com>
Fri, 24 Jul 2020 17:08:50 +0000 (12:08 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 24 Jul 2020 17:08:50 +0000 (12:08 -0500)
commit11231cc2121719c16a06c5d84ac99f35a3a230ad
treeaa94cba4f35802b1c789b712fd7b13a7851a7681
parent85478ff30ebc029abb0ded48de5b557f52a758e0
Fix AIA validation, log all 'enomem', use tmp files at http downloads

+The AIA validation flow didn't considered entirely the scenario where a TA child AIA extension didn't matched the actual location from where the TA was fetched (common case: when its downloaded from an HTTPS URI), so despite the TA actually existed it wasn't considered when the validator was working with local files.
+Replace all '-ENOMEM' return codes with the log function 'pr_enomem'.
+Use temporal files whenever an HTTPS file is being downloaded.
+Fix memory leak when working with local TA files.
+The message '{..} discarding any other validation results' is now sent to the operation log.
+Fix GCC 10 warning related to 'strncpy', use 'memcpy' instead.
src/config/string_array.c
src/crypto/base64.c
src/http/http.c
src/line_file.c
src/object/certificate.c
src/object/tal.c
src/rtr/primitive_reader.c
src/rtr/rtr.c
src/sorted_array.c
src/state.c
src/str_token.c