From b05f3d64e419c1137a20eed5954a500560a1ff38 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 18 Mar 2022 23:10:20 -0400 Subject: nvdmirror/sync.go: update Sync documentation --- nvdmirror/sync.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nvdmirror/sync.go b/nvdmirror/sync.go index afdc260..c7a82c1 100644 --- a/nvdmirror/sync.go +++ b/nvdmirror/sync.go @@ -16,10 +16,17 @@ package nvdmirror // CVE feed and CPE match files in the destination directory. All // file sizes and hashes are checked concurrently. // -// 3. Fetch the contents of the changed CVE feeds, CPE match files, and -// the CPE dictionary. +// 3. Build a list of changed CVE feeds and CPE match files. // -// All HTTP requests are sent with the following headers: +// 4. Append the CPE dictionary, CISA KEVC URL, and the CWE list URL. +// +// 5. Fetch the contents of changed URLs. See note below about HTTP +// request headers. +// +// 6. Return an array of updated files. +// +// Note: All HTTP requests in steps #1 and #5 above are sent with the +// following headers: // // * if-modified-since: The last-modified header from the previous // successful response, if it was set. -- cgit v1.2.3