From ec2d4b560463fcdf1cafb878ae29aa553a348a41 Mon Sep 17 00:00:00 2001 From: Eric Hocking Date: Sun, 19 Mar 2017 10:04:50 -0400 Subject: [PATCH 1/3] adds EngineOptions --- ClamAV.Managed/EngineOptions.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ClamAV.Managed/EngineOptions.cs diff --git a/ClamAV.Managed/EngineOptions.cs b/ClamAV.Managed/EngineOptions.cs new file mode 100644 index 0000000..06266e3 --- /dev/null +++ b/ClamAV.Managed/EngineOptions.cs @@ -0,0 +1,25 @@ +/* + * ClamAV.Managed - Managed bindings for ClamAV + * Copyright (C) 2011, 2013-2014, 2016 Rupert Muchembled + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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. + */ + +using System; + +namespace ClamAV.Managed +{ + +} From db4dc6fcde421af1d5af8740b30b03c6e30e4d60 Mon Sep 17 00:00:00 2001 From: Eric Hocking Date: Sun, 19 Mar 2017 10:06:52 -0400 Subject: [PATCH 2/3] Adds the class --- ClamAV.Managed/EngineOptions.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ClamAV.Managed/EngineOptions.cs b/ClamAV.Managed/EngineOptions.cs index 06266e3..aedf21c 100644 --- a/ClamAV.Managed/EngineOptions.cs +++ b/ClamAV.Managed/EngineOptions.cs @@ -21,5 +21,16 @@ namespace ClamAV.Managed { + /// + /// Option flags for performing scans. + /// + [Flags] + public enum EngineOptions : uint + { + + + + + } } From 5578c8f98e678c490692804ea238830f2481a258 Mon Sep 17 00:00:00 2001 From: Eric Hocking Date: Sun, 19 Mar 2017 10:15:54 -0400 Subject: [PATCH 3/3] Adds the new engine_options from clamav.h --- ClamAV.Managed/EngineOptions.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ClamAV.Managed/EngineOptions.cs b/ClamAV.Managed/EngineOptions.cs index aedf21c..f7970b9 100644 --- a/ClamAV.Managed/EngineOptions.cs +++ b/ClamAV.Managed/EngineOptions.cs @@ -28,8 +28,17 @@ namespace ClamAV.Managed public enum EngineOptions : uint { - - + None = 0x0, + + DisableCache = 0x1, + + ForceToDisk = 0x2, + + DisablePEStats = 0x4, + + DisablePECerts = 0x8, + + PEDumpCerts = 0x10 }