From acae138f0dbe4eaa540120ce0f24ffbf99be3452 Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Fri, 13 Dec 2024 15:29:34 -0500 Subject: [PATCH] Add copyright to new source files --- libclamav_rust/src/codesign.rs | 20 ++++++++++++++++++++ libclamav_rust/src/cvd.rs | 22 +++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/libclamav_rust/src/codesign.rs b/libclamav_rust/src/codesign.rs index 2e97746325..0667915dc5 100644 --- a/libclamav_rust/src/codesign.rs +++ b/libclamav_rust/src/codesign.rs @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2024 Cisco Systems, Inc. and/or its affiliates. All rights reserved. + * + * Authors: Micah Snyder + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + use std::{ ffi::CStr, fs::File, diff --git a/libclamav_rust/src/cvd.rs b/libclamav_rust/src/cvd.rs index c5df84ad5d..bd4f24a06c 100644 --- a/libclamav_rust/src/cvd.rs +++ b/libclamav_rust/src/cvd.rs @@ -1,4 +1,24 @@ -use std::{ +/* + * Copyright (C) 2024 Cisco Systems, Inc. and/or its affiliates. All rights reserved. + * + * Authors: Micah Snyder + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + + use std::{ ffi::{CStr, CString}, fs::File, io::{prelude::*, BufReader},