Skip to content

Commit

Permalink
Add: get the references from the nvt structure and store it in the re…
Browse files Browse the repository at this point in the history
…dis cache
  • Loading branch information
jjnicola committed Nov 23, 2022
1 parent 2b822a0 commit 1e8b375
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rust/nvtcache/src/redisconnector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,15 @@ impl RedisCtx {
let required_ports = nvt.get_required_ports()?;
let dependencies = nvt.get_dependencies()?;
let tags = nvt.get_tag()?;
// TODO: add functions to get the refs
let xrefs = String::new();
let bids = String::new();
let cves = String::new();
//---------------------------------------
let category = nvt.get_category()?;
let family = nvt.get_family()?;

// Get the references
let xrefs;
let bids;
let cves;
(cves, bids, xrefs) = nvt.get_refs()?;

let mut key_name: String = "nvt:".to_owned();
key_name = key_name + oid.as_ref();
Cmd::new()
Expand Down

0 comments on commit 1e8b375

Please sign in to comment.