Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use explicit nvti timestamps #725

Merged
merged 4 commits into from
Sep 7, 2019
Merged

Commits on Sep 6, 2019

  1. Parse timestamps for incoming NVTs via OSP.

    Set the seconds since epoche in the nvti structure.
    janowagner committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    5703fe0 View commit details
    Browse the repository at this point in the history
  2. Use timestamps directly from nvti for db insert.

    Now that the timestamps are explicitly stored in the nvti
    as seconds since epoch, use them directly and don't parse
    the out of the tags sttring anymore.
    janowagner committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    36d63f9 View commit details
    Browse the repository at this point in the history
  3. Do not append timestamps into tags anymore.

    Since we store the timestamps now directly and
    also use the directly, we do need to append them
    to the tags string anymore.
    janowagner committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    f64eda4 View commit details
    Browse the repository at this point in the history
  4. Directly store the nvti tags string into the db.

    Since the timestamps do not appear anymore in the
    tags string, there is no need to parse them out of the
    tags string.
    Now the tags string can simply directly be inserted
    into the database as is.
    janowagner committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    578cdd5 View commit details
    Browse the repository at this point in the history