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

New NVT cross references data handling #317

Merged
merged 8 commits into from
May 16, 2019

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Apr 29, 2019

The unified handling of cross references (CVE, BID, XREF) allows

  • some simplifications
  • resolving the long-standing TODO about multiple references
  • an empowerment of script_xref to cover any sort of reference specification

Ultimately it allows to get rid of script_cve_id() and script_bugtraq_id() in favor
of using only script_xref().

This PR requires and corresponds with greenbone/gvm-libs#225

@janowagner janowagner requested a review from a team April 29, 2019 09:42
@janowagner janowagner added the work in progress This pull request should not be merged yet, more commits are expected label Apr 29, 2019
@janowagner janowagner force-pushed the new_xrefs branch 2 times, most recently from 307ad9b to ffb65c1 Compare May 5, 2019 11:38
@janowagner janowagner removed the work in progress This pull request should not be merged yet, more commits are expected label May 10, 2019
Call nvti_add_ref() directly instead of the plug_set_xref ().
Remove plug_set_xref(), its knowledge about syntax isn't need anymore.
Which means to not use nvti_add_cve() and nvti_add_bid().
This introduces the option to add bulk of comma-separated
cross-references.
Also documentation is added to this function to explains its
use.

This way, script_cve_id() and script_bugtraq_id() are redundant
and can easily be transformed into script_xref() calls.
@jjnicola jjnicola merged commit fd789e3 into greenbone:master May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants