Skip to content

Commit

Permalink
add missing license headder
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Chandler authored and Kraemii committed Mar 12, 2024
1 parent 29e2939 commit 7df0e62
Show file tree
Hide file tree
Showing 39 changed files with 138 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rust/feed/src/transpile/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Replaces the function calls within a feed.
use std::error::Error;
Expand Down
4 changes: 4 additions & 0 deletions rust/infisto/src/base.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! The base module contains the basic building blocks for the file store.
use std::{
Expand Down
4 changes: 4 additions & 0 deletions rust/infisto/src/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Contains helper for encryption.
use chacha20::cipher::generic_array::GenericArray;
use chacha20::cipher::typenum::{U12, U32};
Expand Down
4 changes: 4 additions & 0 deletions rust/infisto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

Expand Down
4 changes: 4 additions & 0 deletions rust/infisto/src/serde.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Contains helper for serializing and deserializing structs.
use serde::{Deserialize, Serialize};

Expand Down
4 changes: 4 additions & 0 deletions rust/models/src/scanner.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use async_trait::async_trait;

use crate::{Scan, Status};
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-cryptographic/tests/helper/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::num::ParseIntError;

pub fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError> {
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-misc/tests/misc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

#[cfg(test)]
mod tests {
use chrono::Offset;
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-raw-ip/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

mod frame_forgery;
mod packet_forgery;
mod raw_ip_utils;
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-std/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

Expand Down
3 changes: 3 additions & 0 deletions rust/nasl-builtin-utils/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Defines the context used within the interpreter and utilized by the builtin functions
use nasl_syntax::{logger::NaslLogger, Loader, NaslValue, Statement};
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-utils/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Defines function error kinds
use std::{convert::Infallible, fmt::Display, io};

Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-builtin-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

#![doc = include_str!("../README.md")]
#![warn(missing_docs)]
pub mod context;
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::fs::canonicalize;

fn main() {
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/libgcrypt-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::{env, process::Command};

fn main() {
Expand Down
4 changes: 3 additions & 1 deletion rust/nasl-c-lib/libgcrypt-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@

// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/src/cryptographic/mac.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use super::gcrypt_get_error_string;

extern "C" {
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/src/cryptographic/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::ffi::CStr;

pub mod mac;
Expand Down
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

pub mod cryptographic;
4 changes: 4 additions & 0 deletions rust/nasl-c-lib/tests/helper/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::num::ParseIntError;
pub(crate) fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError> {
(0..s.len())
Expand Down
1 change: 1 addition & 0 deletions rust/nasl-syntax/src/cursor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2023 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! This module defines the Cursor as a basis for tokenizing
use std::str::Chars;

Expand Down
1 change: 1 addition & 0 deletions rust/nasl-syntax/src/logger.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2023 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Contains the logging abstraction for nasl-interpreter
use std::fmt::Display;
Expand Down
4 changes: 4 additions & 0 deletions rust/openvas/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::time::Duration;

#[derive(Debug, Clone)]
Expand Down
Empty file removed rust/openvas/src/ctl.rs
Empty file.
4 changes: 4 additions & 0 deletions rust/openvas/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::{fmt::Display, io};

pub enum OpenvasError {
Expand Down
4 changes: 4 additions & 0 deletions rust/openvas/src/openvas.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use async_trait::async_trait;
use models::{
scanner::{
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/crypt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::fmt::Display;

use async_trait::async_trait;
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/scheduling.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::fmt::Display;

use crate::storage::{Error as StorageError, FeedHash};
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/storage/file.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::{
ops::Deref,
path::{Path, PathBuf},
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/storage/inmemory.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::collections::HashSet;

use super::*;
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/storage/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

pub mod file;
pub mod inmemory;
pub mod redis;
Expand Down
4 changes: 4 additions & 0 deletions rust/openvasd/src/storage/redis.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::{path::PathBuf, sync::Arc};

use async_trait::async_trait;
Expand Down
1 change: 1 addition & 0 deletions rust/osp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2023 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

#![doc = include_str!("../README.md")]
#![warn(missing_docs)]
mod commands;
Expand Down
1 change: 1 addition & 0 deletions rust/osp/src/scanner.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2023 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

//!Contains the scanner implementation for ospd.
//!
//!The scanner is used in openvasd to control scans.
Expand Down
4 changes: 4 additions & 0 deletions rust/scannerctl/src/execute/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::path::PathBuf;

use clap::{arg, value_parser, Arg, Command};
Expand Down
4 changes: 4 additions & 0 deletions rust/scannerctl/src/feed/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

pub mod update;
use std::{io, path::PathBuf};

Expand Down
4 changes: 4 additions & 0 deletions rust/scannerctl/src/notusupdate/scanner.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::{
io,
path::{Path, PathBuf},
Expand Down
4 changes: 4 additions & 0 deletions rust/scannerctl/src/scanconfig.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::fmt::{Display, Formatter};
use std::{io::BufReader, path::PathBuf, sync::Arc};

Expand Down
4 changes: 4 additions & 0 deletions rust/scannerctl/src/syntax/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Greenbone AG
//
// SPDX-License-Identifier: GPL-2.0-or-later

use std::path::PathBuf;

use clap::{arg, value_parser, Arg, ArgAction, Command};
Expand Down

0 comments on commit 7df0e62

Please sign in to comment.