From d3a197a763100565a71f0d253c7358db7b8ffcaa Mon Sep 17 00:00:00 2001 From: Toni Peter Date: Wed, 15 Jan 2025 13:19:10 +0100 Subject: [PATCH] Revert "Use only the description functions during the feed update" This reverts commit c502fc8681c30d40a499b7d2dcd3c5e2236b3468. --- rust/src/feed/update/mod.rs | 3 +-- rust/src/nasl/builtin/mod.rs | 1 - rust/src/nasl/mod.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rust/src/feed/update/mod.rs b/rust/src/feed/update/mod.rs index 79475b763..4f3d91697 100644 --- a/rust/src/feed/update/mod.rs +++ b/rust/src/feed/update/mod.rs @@ -11,7 +11,6 @@ use futures::{stream, Stream, StreamExt}; use std::fs::File; use tracing::trace; -use crate::nasl::builtin::Description; use crate::nasl::interpreter::{CodeInterpreter, Interpreter}; use crate::nasl::nasl_std_functions; use crate::nasl::prelude::*; @@ -109,7 +108,7 @@ where dispatcher: storage, verifier, feed_version_set: false, - executor: Executor::single(Description), + executor: nasl_std_functions(), } } diff --git a/rust/src/nasl/builtin/mod.rs b/rust/src/nasl/builtin/mod.rs index 7563dac21..595e38b76 100644 --- a/rust/src/nasl/builtin/mod.rs +++ b/rust/src/nasl/builtin/mod.rs @@ -26,7 +26,6 @@ mod sys; #[cfg(test)] mod tests; -pub use description::Description; pub use error::BuiltinError; pub use host::HostError; pub use knowledge_base::KBError; diff --git a/rust/src/nasl/mod.rs b/rust/src/nasl/mod.rs index dc284bd88..d4f3876f9 100644 --- a/rust/src/nasl/mod.rs +++ b/rust/src/nasl/mod.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-2.0-or-later WITH x11vnc-openssl-exception -pub mod builtin; +mod builtin; pub mod interpreter; pub mod syntax; pub mod utils;