| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,101 +0,0 @@ |
| 1 |
-// clamadoc.cpp : implementation of the CClamavDoc class |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
- |
|
| 23 |
-#include "stdafx.h" |
|
| 24 |
-#include "resource.h" |
|
| 25 |
-#include "clamav.h" |
|
| 26 |
- |
|
| 27 |
-#include "clamadoc.h" |
|
| 28 |
- |
|
| 29 |
-#ifdef _DEBUG |
|
| 30 |
-#undef THIS_FILE |
|
| 31 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 32 |
-#endif |
|
| 33 |
- |
|
| 34 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 35 |
-// CClamavDoc |
|
| 36 |
- |
|
| 37 |
-IMPLEMENT_DYNCREATE(CClamavDoc, CDocument) |
|
| 38 |
- |
|
| 39 |
-BEGIN_MESSAGE_MAP(CClamavDoc, CDocument) |
|
| 40 |
- |
|
| 41 |
- // NOTE - the ClassWizard will add and remove mapping macros here. |
|
| 42 |
- // DO NOT EDIT what you see in these blocks of generated code! |
|
| 43 |
- //}}AFX_MSG_MAP |
|
| 44 |
-END_MESSAGE_MAP() |
|
| 45 |
- |
|
| 46 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 47 |
-// CClamavDoc construction/destruction |
|
| 48 |
- |
|
| 49 |
-CClamavDoc::CClamavDoc() |
|
| 50 |
-{
|
|
| 51 |
- // TODO: add one-time construction code here |
|
| 52 |
- |
|
| 53 |
-} |
|
| 54 |
- |
|
| 55 |
-CClamavDoc::~CClamavDoc() |
|
| 56 |
-{
|
|
| 57 |
-} |
|
| 58 |
- |
|
| 59 |
-BOOL CClamavDoc::OnNewDocument() |
|
| 60 |
-{
|
|
| 61 |
- if (!CDocument::OnNewDocument()) |
|
| 62 |
- return FALSE; |
|
| 63 |
- |
|
| 64 |
- // TODO: add reinitialization code here |
|
| 65 |
- // (SDI documents will reuse this document) |
|
| 66 |
- |
|
| 67 |
- return TRUE; |
|
| 68 |
-} |
|
| 69 |
- |
|
| 70 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 71 |
-// CClamavDoc serialization |
|
| 72 |
- |
|
| 73 |
-void CClamavDoc::Serialize(CArchive& ar) |
|
| 74 |
-{
|
|
| 75 |
- if (ar.IsStoring()) |
|
| 76 |
- {
|
|
| 77 |
- // TODO: add storing code here |
|
| 78 |
- } |
|
| 79 |
- else |
|
| 80 |
- {
|
|
| 81 |
- // TODO: add loading code here |
|
| 82 |
- } |
|
| 83 |
-} |
|
| 84 |
- |
|
| 85 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 86 |
-// CClamavDoc diagnostics |
|
| 87 |
- |
|
| 88 |
-#ifdef _DEBUG |
|
| 89 |
-void CClamavDoc::AssertValid() const |
|
| 90 |
-{
|
|
| 91 |
- CDocument::AssertValid(); |
|
| 92 |
-} |
|
| 93 |
- |
|
| 94 |
-void CClamavDoc::Dump(CDumpContext& dc) const |
|
| 95 |
-{
|
|
| 96 |
- CDocument::Dump(dc); |
|
| 97 |
-} |
|
| 98 |
-#endif //_DEBUG |
|
| 99 |
- |
|
| 100 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 101 |
-// CClamavDoc commands |
| 102 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,62 +0,0 @@ |
| 1 |
-// clamadoc.h : interface of the CClamavDoc class |
|
| 2 |
-// |
|
| 3 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 4 |
- |
|
| 5 |
-/* |
|
| 6 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 7 |
- * |
|
| 8 |
- * This program is free software; you can redistribute it and/or modify |
|
| 9 |
- * it under the terms of the GNU General Public License as published by |
|
| 10 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 11 |
- * (at your option) any later version. |
|
| 12 |
- * |
|
| 13 |
- * This program is distributed in the hope that it will be useful, |
|
| 14 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 15 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 16 |
- * GNU General Public License for more details. |
|
| 17 |
- * |
|
| 18 |
- * You should have received a copy of the GNU General Public License |
|
| 19 |
- * along with this program; if not, write to the Free Software |
|
| 20 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 21 |
- * MA 02110-1301, USA. |
|
| 22 |
- */ |
|
| 23 |
-class CClamavDoc : public CDocument |
|
| 24 |
-{
|
|
| 25 |
-protected: // create from serialization only |
|
| 26 |
- CClamavDoc(); |
|
| 27 |
- DECLARE_DYNCREATE(CClamavDoc) |
|
| 28 |
- |
|
| 29 |
-// Attributes |
|
| 30 |
-public: |
|
| 31 |
- |
|
| 32 |
-// Operations |
|
| 33 |
-public: |
|
| 34 |
- |
|
| 35 |
-// Overrides |
|
| 36 |
- // ClassWizard generated virtual function overrides |
|
| 37 |
- //{{AFX_VIRTUAL(CClamavDoc)
|
|
| 38 |
- public: |
|
| 39 |
- virtual BOOL OnNewDocument(); |
|
| 40 |
- //}}AFX_VIRTUAL |
|
| 41 |
- |
|
| 42 |
-// Implementation |
|
| 43 |
-public: |
|
| 44 |
- virtual ~CClamavDoc(); |
|
| 45 |
- virtual void Serialize(CArchive& ar); // overridden for document i/o |
|
| 46 |
-#ifdef _DEBUG |
|
| 47 |
- virtual void AssertValid() const; |
|
| 48 |
- virtual void Dump(CDumpContext& dc) const; |
|
| 49 |
-#endif |
|
| 50 |
- |
|
| 51 |
-protected: |
|
| 52 |
- |
|
| 53 |
-// Generated message map functions |
|
| 54 |
-protected: |
|
| 55 |
- //{{AFX_MSG(CClamavDoc)
|
|
| 56 |
- // NOTE - the ClassWizard will add and remove member functions here. |
|
| 57 |
- // DO NOT EDIT what you see in these blocks of generated code ! |
|
| 58 |
- //}}AFX_MSG |
|
| 59 |
- DECLARE_MESSAGE_MAP() |
|
| 60 |
-}; |
|
| 61 |
- |
|
| 62 |
-///////////////////////////////////////////////////////////////////////////// |
| 63 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,277 +0,0 @@ |
| 1 |
-// clamav.cpp : Defines the class behaviors for the application. |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "resource.h" |
|
| 24 |
- |
|
| 25 |
-#include "clamav.h" |
|
| 26 |
- |
|
| 27 |
-#include "clamadoc.h" |
|
| 28 |
-#include "clamavw.h" |
|
| 29 |
- |
|
| 30 |
-#include <winsock.h> |
|
| 31 |
- |
|
| 32 |
-#ifdef _DEBUG |
|
| 33 |
-#undef THIS_FILE |
|
| 34 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 35 |
-#endif |
|
| 36 |
- |
|
| 37 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 38 |
-// CClamavApp |
|
| 39 |
- |
|
| 40 |
-BEGIN_MESSAGE_MAP(CClamavApp, CWinApp) |
|
| 41 |
- //{{AFX_MSG_MAP(CClamavApp)
|
|
| 42 |
- ON_COMMAND(ID_APP_ABOUT, OnAppAbout) |
|
| 43 |
- ON_COMMAND(ID_FILE_NEW, OnFileNew) |
|
| 44 |
- ON_COMMAND(ID_FILE_OPEN, OnFileOpen) |
|
| 45 |
- ON_COMMAND(ID_SET_OPTIONS, OnSetOptions) |
|
| 46 |
- //}}AFX_MSG_MAP |
|
| 47 |
- // Standard file based document commands |
|
| 48 |
- // ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) |
|
| 49 |
- ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) |
|
| 50 |
- // Standard print setup command |
|
| 51 |
- ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup) |
|
| 52 |
-END_MESSAGE_MAP() |
|
| 53 |
- |
|
| 54 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 55 |
-// CClamavApp construction |
|
| 56 |
- |
|
| 57 |
-CClamavApp::CClamavApp() |
|
| 58 |
-{
|
|
| 59 |
- // TODO: add construction code here, |
|
| 60 |
- // Place all significant initialization in InitInstance |
|
| 61 |
-} |
|
| 62 |
- |
|
| 63 |
-CClamavApp::~CClamavApp() |
|
| 64 |
-{
|
|
| 65 |
-} |
|
| 66 |
- |
|
| 67 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 68 |
-// The one and only CClamavApp object |
|
| 69 |
- |
|
| 70 |
-CClamavApp theApp; |
|
| 71 |
- |
|
| 72 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 73 |
-// CClamavApp initialization |
|
| 74 |
- |
|
| 75 |
-BOOL CClamavApp::InitInstance() |
|
| 76 |
-{
|
|
| 77 |
- // Standard initialization |
|
| 78 |
- // If you are not using these features and wish to reduce the size |
|
| 79 |
- // of your final executable, you should remove from the following |
|
| 80 |
- // the specific initialization routines you do not need. |
|
| 81 |
- |
|
| 82 |
- Enable3dControls(); |
|
| 83 |
- |
|
| 84 |
- LoadStdProfileSettings(); // Load standard INI file options (including MRU) |
|
| 85 |
- |
|
| 86 |
- // Register the application's document templates. Document templates |
|
| 87 |
- // serve as the connection between documents, frame windows and views. |
|
| 88 |
- |
|
| 89 |
- CSingleDocTemplate* pDocTemplate; |
|
| 90 |
- pDocTemplate = new CSingleDocTemplate( |
|
| 91 |
- IDR_MAINFRAME, |
|
| 92 |
- RUNTIME_CLASS(CClamavDoc), |
|
| 93 |
- RUNTIME_CLASS(CMainFrame), // main SDI frame window |
|
| 94 |
- RUNTIME_CLASS(CClamavView)); |
|
| 95 |
- AddDocTemplate(pDocTemplate); |
|
| 96 |
- |
|
| 97 |
- // Start up Winsock |
|
| 98 |
- WSAData wsaData; |
|
| 99 |
- |
|
| 100 |
- if(WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) {
|
|
| 101 |
- AfxMessageBox("WSAStartup() failed error code");
|
|
| 102 |
- return FALSE; |
|
| 103 |
- } |
|
| 104 |
- clamServer = NULL; |
|
| 105 |
- |
|
| 106 |
- if (m_lpCmdLine[0] != '\0') {
|
|
| 107 |
- // TODO: add command line processing here |
|
| 108 |
- // First argument is the server, second is the file to scan |
|
| 109 |
- // TODO: more rigourous argument checking |
|
| 110 |
- CString args = CString(m_lpCmdLine); |
|
| 111 |
- |
|
| 112 |
- int index = args.Find(' ');
|
|
| 113 |
- if(index == -1) |
|
| 114 |
- exit(1); |
|
| 115 |
- |
|
| 116 |
- CString server = args.Left(index); |
|
| 117 |
- const CString fileName = args.Mid(index + 1); |
|
| 118 |
- unsigned short port; |
|
| 119 |
- |
|
| 120 |
- index = server.Find(':');
|
|
| 121 |
- if(index != -1) {
|
|
| 122 |
- port = (unsigned short)atoi(server.Mid(index + 1)); |
|
| 123 |
- server = server.Left(index); |
|
| 124 |
- } else |
|
| 125 |
- port = DEFAULT_PORT; |
|
| 126 |
- |
|
| 127 |
- TRY {
|
|
| 128 |
- clamServer = new ClamServer(server, port); |
|
| 129 |
- } CATCH(CException, c) {
|
|
| 130 |
- AfxMessageBox("Can't establish a connection to " + server);
|
|
| 131 |
- c->Delete(); |
|
| 132 |
- exit(1); |
|
| 133 |
- } |
|
| 134 |
- END_CATCH |
|
| 135 |
- |
|
| 136 |
- CWinApp::OnFileNew(); |
|
| 137 |
- |
|
| 138 |
- // TODO: set quarantine directory |
|
| 139 |
- |
|
| 140 |
- exit(clamServer->Scan(fileName, 0, (CMainFrame *)AfxGetMainWnd(), m_pMainWnd, TRUE, NULL) == TRUE); |
|
| 141 |
- } else {
|
|
| 142 |
- // create a new (empty) document |
|
| 143 |
- OnFileNew(); |
|
| 144 |
- } |
|
| 145 |
- |
|
| 146 |
-#ifdef _DEBUG |
|
| 147 |
- afxTraceEnabled = TRUE; |
|
| 148 |
-#endif |
|
| 149 |
- |
|
| 150 |
- options = new COptions(); |
|
| 151 |
- recursive = TRUE; |
|
| 152 |
- |
|
| 153 |
- return TRUE; |
|
| 154 |
-} |
|
| 155 |
- |
|
| 156 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 157 |
-// CAboutDlg dialog used for App About |
|
| 158 |
- |
|
| 159 |
-class CAboutDlg : public CDialog |
|
| 160 |
-{
|
|
| 161 |
-public: |
|
| 162 |
- CAboutDlg(); |
|
| 163 |
- |
|
| 164 |
-// Dialog Data |
|
| 165 |
- //{{AFX_DATA(CAboutDlg)
|
|
| 166 |
- enum { IDD = IDD_ABOUTBOX };
|
|
| 167 |
- //}}AFX_DATA |
|
| 168 |
- |
|
| 169 |
-// Implementation |
|
| 170 |
-protected: |
|
| 171 |
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
| 172 |
- //{{AFX_MSG(CAboutDlg)
|
|
| 173 |
- // No message handlers |
|
| 174 |
- //}}AFX_MSG |
|
| 175 |
- DECLARE_MESSAGE_MAP() |
|
| 176 |
-}; |
|
| 177 |
- |
|
| 178 |
-CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) |
|
| 179 |
-{
|
|
| 180 |
- //{{AFX_DATA_INIT(CAboutDlg)
|
|
| 181 |
- //}}AFX_DATA_INIT |
|
| 182 |
-} |
|
| 183 |
- |
|
| 184 |
-void CAboutDlg::DoDataExchange(CDataExchange* pDX) |
|
| 185 |
-{
|
|
| 186 |
- CDialog::DoDataExchange(pDX); |
|
| 187 |
- //{{AFX_DATA_MAP(CAboutDlg)
|
|
| 188 |
- //}}AFX_DATA_MAP |
|
| 189 |
-} |
|
| 190 |
- |
|
| 191 |
-BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) |
|
| 192 |
- //{{AFX_MSG_MAP(CAboutDlg)
|
|
| 193 |
- // No message handlers |
|
| 194 |
- //}}AFX_MSG_MAP |
|
| 195 |
-END_MESSAGE_MAP() |
|
| 196 |
- |
|
| 197 |
-// App command to run the dialog |
|
| 198 |
-void CClamavApp::OnAppAbout() |
|
| 199 |
-{
|
|
| 200 |
- CAboutDlg aboutDlg; |
|
| 201 |
- aboutDlg.DoModal(); |
|
| 202 |
-} |
|
| 203 |
- |
|
| 204 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 205 |
-// CClamavApp commands |
|
| 206 |
- |
|
| 207 |
-int CClamavApp::ExitInstance() |
|
| 208 |
-{
|
|
| 209 |
- // TODO: Add your specialized code here and/or call the base class |
|
| 210 |
- if(clamServer) {
|
|
| 211 |
- delete clamServer; |
|
| 212 |
- clamServer = NULL; |
|
| 213 |
- } |
|
| 214 |
- if(options) {
|
|
| 215 |
- delete options; |
|
| 216 |
- options = NULL; |
|
| 217 |
- } |
|
| 218 |
- WSACleanup(); |
|
| 219 |
- |
|
| 220 |
- return CWinApp::ExitInstance(); |
|
| 221 |
-} |
|
| 222 |
- |
|
| 223 |
-void CClamavApp::OnFileNew() |
|
| 224 |
-{
|
|
| 225 |
- CWinApp::OnFileNew(); |
|
| 226 |
- |
|
| 227 |
- // TODO: Add your command handler code here |
|
| 228 |
- |
|
| 229 |
- // Open connection to a different server |
|
| 230 |
- if(clamServer) {
|
|
| 231 |
- delete clamServer; |
|
| 232 |
- clamServer = NULL; |
|
| 233 |
- } |
|
| 234 |
- TRY {
|
|
| 235 |
- clamServer = new ClamServer; |
|
| 236 |
- } CATCH(CException, c) {
|
|
| 237 |
- clamServer = NULL; |
|
| 238 |
- c->Delete(); |
|
| 239 |
- } |
|
| 240 |
- END_CATCH |
|
| 241 |
-} |
|
| 242 |
- |
|
| 243 |
-void CClamavApp::OnFileOpen() |
|
| 244 |
-{
|
|
| 245 |
- // TODO: Add your command handler code here |
|
| 246 |
- |
|
| 247 |
- CString newName; |
|
| 248 |
- if (!DoPromptFileName(newName, AFX_IDS_OPENFILE, |
|
| 249 |
- /*OFN_HIDEREADONLY |*/ OFN_FILEMUSTEXIST, TRUE, NULL)) |
|
| 250 |
- return; // open cancelled |
|
| 251 |
- |
|
| 252 |
- // OpenDocumentFile(newName); |
|
| 253 |
- this->Scan(newName); |
|
| 254 |
-} |
|
| 255 |
- |
|
| 256 |
-// TODO: More than one scan happen at once but the progress bar gets confused |
|
| 257 |
-// Need a new scanner class. Create a new instance everytime we scan something |
|
| 258 |
-// Pass clamServer as a parameter |
|
| 259 |
-// Scanner *s = new Scanner(clamServer, 0, (CMainFrame *)AfxGetMainWnd(), m_pMainWnd, recursive, options->m_quarantineDir); |
|
| 260 |
-// if(s->clean()) |
|
| 261 |
-// AfxMessageBox("No virus found in " + filename);
|
|
| 262 |
-// delete s; |
|
| 263 |
- |
|
| 264 |
-void CClamavApp::Scan(const CString& filename) |
|
| 265 |
-{
|
|
| 266 |
- if(clamServer == NULL) |
|
| 267 |
- AfxMessageBox("You must connect to a clamd server first");
|
|
| 268 |
- else if(clamServer->Scan(filename, 0, (CMainFrame *)AfxGetMainWnd(), m_pMainWnd, recursive, options->m_quarantineDir)) |
|
| 269 |
- AfxMessageBox("No virus found in " + filename);
|
|
| 270 |
-} |
|
| 271 |
- |
|
| 272 |
-void CClamavApp::OnSetOptions() |
|
| 273 |
-{
|
|
| 274 |
- // TODO: Add your command handler code here |
|
| 275 |
- if(options->DoModal() == IDOK) |
|
| 276 |
- recursive = options->m_recursive; |
|
| 277 |
-} |
| 280 | 3 |
deleted file mode 100644 |
| ... | ... |
@@ -1,74 +0,0 @@ |
| 1 |
-// clamav.h : main header file for the CLAMAV application |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#ifndef __AFXWIN_H__ |
|
| 23 |
- #error include 'stdafx.h' before including this file for PCH |
|
| 24 |
-#endif |
|
| 25 |
- |
|
| 26 |
- |
|
| 27 |
-#include "resource.h" // main symbols |
|
| 28 |
- |
|
| 29 |
-#include "mainfrm.h" |
|
| 30 |
- |
|
| 31 |
-#include "options.h" |
|
| 32 |
-#include "progress.h" |
|
| 33 |
-#include "clamserver.h" |
|
| 34 |
- |
|
| 35 |
-#define DEFAULT_PORT 3310 |
|
| 36 |
- |
|
| 37 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 38 |
-// CClamavApp: |
|
| 39 |
-// See clamav.cpp for the implementation of this class |
|
| 40 |
-// |
|
| 41 |
- |
|
| 42 |
-class CClamavApp : public CWinApp |
|
| 43 |
-{
|
|
| 44 |
-public: |
|
| 45 |
- CClamavApp(); |
|
| 46 |
- ~CClamavApp(); |
|
| 47 |
- void Scan(const CString& filename); |
|
| 48 |
- |
|
| 49 |
-// Overrides |
|
| 50 |
- // ClassWizard generated virtual function overrides |
|
| 51 |
- //{{AFX_VIRTUAL(CClamavApp)
|
|
| 52 |
- public: |
|
| 53 |
- virtual BOOL InitInstance(); |
|
| 54 |
- virtual int ExitInstance(); |
|
| 55 |
- //}}AFX_VIRTUAL |
|
| 56 |
- |
|
| 57 |
-// Implementation |
|
| 58 |
- |
|
| 59 |
- //{{AFX_MSG(CClamavApp)
|
|
| 60 |
- afx_msg void OnAppAbout(); |
|
| 61 |
- afx_msg void OnFileNew(); |
|
| 62 |
- afx_msg void OnFileOpen(); |
|
| 63 |
- afx_msg void OnSetOptions(); |
|
| 64 |
- //}}AFX_MSG |
|
| 65 |
- DECLARE_MESSAGE_MAP() |
|
| 66 |
- |
|
| 67 |
-private: |
|
| 68 |
- ClamServer *clamServer; |
|
| 69 |
- COptions *options; |
|
| 70 |
- BOOL recursive; // recursively scan folders? |
|
| 71 |
-}; |
|
| 72 |
- |
|
| 73 |
- |
|
| 74 |
-///////////////////////////////////////////////////////////////////////////// |
| 75 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,354 +0,0 @@ |
| 1 |
-//Microsoft Visual C++ generated resource script. |
|
| 2 |
-// |
|
| 3 |
-#include "resource.h" |
|
| 4 |
- |
|
| 5 |
-/* |
|
| 6 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 7 |
- * |
|
| 8 |
- * This program is free software; you can redistribute it and/or modify |
|
| 9 |
- * it under the terms of the GNU General Public License as published by |
|
| 10 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 11 |
- * (at your option) any later version. |
|
| 12 |
- * |
|
| 13 |
- * This program is distributed in the hope that it will be useful, |
|
| 14 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 15 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 16 |
- * GNU General Public License for more details. |
|
| 17 |
- * |
|
| 18 |
- * You should have received a copy of the GNU General Public License |
|
| 19 |
- * along with this program; if not, write to the Free Software |
|
| 20 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 21 |
- * MA 02110-1301, USA. |
|
| 22 |
- */ |
|
| 23 |
-#define APSTUDIO_READONLY_SYMBOLS |
|
| 24 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 25 |
-// |
|
| 26 |
-// Generated from the TEXTINCLUDE 2 resource. |
|
| 27 |
-// |
|
| 28 |
-#include "afxres.h" |
|
| 29 |
- |
|
| 30 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 31 |
-#undef APSTUDIO_READONLY_SYMBOLS |
|
| 32 |
- |
|
| 33 |
- |
|
| 34 |
-#ifdef APSTUDIO_INVOKED |
|
| 35 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 36 |
-// |
|
| 37 |
-// TEXTINCLUDE |
|
| 38 |
-// |
|
| 39 |
- |
|
| 40 |
-1 TEXTINCLUDE DISCARDABLE |
|
| 41 |
-BEGIN |
|
| 42 |
- "resource.h\0" |
|
| 43 |
-END |
|
| 44 |
- |
|
| 45 |
-2 TEXTINCLUDE DISCARDABLE |
|
| 46 |
-BEGIN |
|
| 47 |
- "#include ""afxres.h""\r\n" |
|
| 48 |
- "\0" |
|
| 49 |
-END |
|
| 50 |
- |
|
| 51 |
-3 TEXTINCLUDE DISCARDABLE |
|
| 52 |
-BEGIN |
|
| 53 |
- "#include ""res\\clamav.rc2"" // non-Microsoft Visual C++ edited resources\r\n" |
|
| 54 |
- "\r\n" |
|
| 55 |
- "#define _AFX_NO_SPLITTER_RESOURCES\r\n" |
|
| 56 |
- "#define _AFX_NO_OLE_RESOURCES\r\n" |
|
| 57 |
- "#define _AFX_NO_TRACKER_RESOURCES\r\n" |
|
| 58 |
- "#define _AFX_NO_PROPERTY_RESOURCES\r\n" |
|
| 59 |
- "#include ""afxres.rc"" \011// Standard components\r\n" |
|
| 60 |
- "#include ""afxprint.rc""\011// printing/print preview resources\r\n" |
|
| 61 |
- "\0" |
|
| 62 |
-END |
|
| 63 |
- |
|
| 64 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 65 |
-#endif // APSTUDIO_INVOKED |
|
| 66 |
- |
|
| 67 |
- |
|
| 68 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 69 |
-// |
|
| 70 |
-// Icon |
|
| 71 |
-// |
|
| 72 |
- |
|
| 73 |
-IDR_MAINFRAME ICON DISCARDABLE "res\\clamav.ico" |
|
| 74 |
- |
|
| 75 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 76 |
-// |
|
| 77 |
-// Bitmap |
|
| 78 |
-// |
|
| 79 |
- |
|
| 80 |
-IDR_MAINFRAME BITMAP MOVEABLE PURE "res\\toolbar.bmp" |
|
| 81 |
- |
|
| 82 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 83 |
-// |
|
| 84 |
-// Menu |
|
| 85 |
-// |
|
| 86 |
- |
|
| 87 |
-IDR_MAINFRAME MENU PRELOAD DISCARDABLE |
|
| 88 |
-BEGIN |
|
| 89 |
- POPUP "&File" |
|
| 90 |
- BEGIN |
|
| 91 |
- MENUITEM "&New Server\tCtrl+N", ID_FILE_NEW |
|
| 92 |
- MENUITEM "&Scan File...\tCtrl+S", ID_FILE_OPEN |
|
| 93 |
- MENUITEM "&Options...\tCtrl+O", ID_SET_OPTIONS |
|
| 94 |
- MENUITEM SEPARATOR |
|
| 95 |
- MENUITEM "E&xit", ID_APP_EXIT |
|
| 96 |
- END |
|
| 97 |
- POPUP "&Help" |
|
| 98 |
- BEGIN |
|
| 99 |
- MENUITEM "&About Clamav...", ID_APP_ABOUT |
|
| 100 |
- END |
|
| 101 |
-END |
|
| 102 |
- |
|
| 103 |
- |
|
| 104 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 105 |
-// |
|
| 106 |
-// Accelerator |
|
| 107 |
-// |
|
| 108 |
- |
|
| 109 |
-IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE |
|
| 110 |
-BEGIN |
|
| 111 |
- "N", ID_FILE_NEW, VIRTKEY, CONTROL |
|
| 112 |
- "O", ID_FILE_OPEN, VIRTKEY, CONTROL |
|
| 113 |
- "S", ID_FILE_SAVE, VIRTKEY, CONTROL |
|
| 114 |
- "P", ID_FILE_PRINT, VIRTKEY, CONTROL |
|
| 115 |
- "Z", ID_EDIT_UNDO, VIRTKEY, CONTROL |
|
| 116 |
- "X", ID_EDIT_CUT, VIRTKEY, CONTROL |
|
| 117 |
- "C", ID_EDIT_COPY, VIRTKEY, CONTROL |
|
| 118 |
- "V", ID_EDIT_PASTE, VIRTKEY, CONTROL |
|
| 119 |
- VK_BACK, ID_EDIT_UNDO, VIRTKEY, ALT |
|
| 120 |
- VK_DELETE, ID_EDIT_CUT, VIRTKEY, SHIFT |
|
| 121 |
- VK_INSERT, ID_EDIT_COPY, VIRTKEY, CONTROL |
|
| 122 |
- VK_INSERT, ID_EDIT_PASTE, VIRTKEY, SHIFT |
|
| 123 |
- VK_F6, ID_NEXT_PANE, VIRTKEY |
|
| 124 |
- VK_F6, ID_PREV_PANE, VIRTKEY, SHIFT |
|
| 125 |
- VK_F1, ID_CONTEXT_HELP, VIRTKEY, SHIFT |
|
| 126 |
- VK_F1, ID_HELP, VIRTKEY |
|
| 127 |
-END |
|
| 128 |
- |
|
| 129 |
- |
|
| 130 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 131 |
-// |
|
| 132 |
-// Dialog |
|
| 133 |
-// |
|
| 134 |
- |
|
| 135 |
-IDD_ABOUTBOX DIALOG DISCARDABLE 34, 22, 217, 55 |
|
| 136 |
-STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU |
|
| 137 |
-CAPTION "About clamav" |
|
| 138 |
-FONT 8, "MS Sans Serif" |
|
| 139 |
-BEGIN |
|
| 140 |
- ICON IDR_MAINFRAME,IDC_STATIC,11,17,18,20 |
|
| 141 |
- LTEXT "ClamAV Version 0.14",IDC_STATIC,40,10,76,8 |
|
| 142 |
- LTEXT "Copyright \251 2004 Nigel Horne",IDC_STATIC,40,25,102,8 |
|
| 143 |
- DEFPUSHBUTTON "OK",IDOK,176,6,32,14,WS_GROUP |
|
| 144 |
-END |
|
| 145 |
- |
|
| 146 |
-IDD_SERVERNAME DIALOG DISCARDABLE 0, 0, 187, 67 |
|
| 147 |
-STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
|
| 148 |
-CAPTION "ClamAV Server" |
|
| 149 |
-FONT 8, "MS Sans Serif" |
|
| 150 |
-BEGIN |
|
| 151 |
- DEFPUSHBUTTON "OK",IDOK,131,6,50,14 |
|
| 152 |
- PUSHBUTTON "Cancel",IDCANCEL,131,23,50,14 |
|
| 153 |
- LTEXT "Server",IDC_STATIC,6,8,27,11 |
|
| 154 |
- EDITTEXT IDC_SERVERNAME,46,7,72,14,ES_AUTOHSCROLL |
|
| 155 |
- LTEXT "Port",IDC_STATIC,6,33,20,11 |
|
| 156 |
- EDITTEXT IDC_SERVERPORT,46,32,54,13,ES_AUTOHSCROLL |
|
| 157 |
-END |
|
| 158 |
- |
|
| 159 |
-IDD_PROGRESS DIALOG DISCARDABLE 0, 0, 287, 81 |
|
| 160 |
-STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
|
| 161 |
-CAPTION "Scanning" |
|
| 162 |
-FONT 8, "MS Sans Serif" |
|
| 163 |
-BEGIN |
|
| 164 |
- DEFPUSHBUTTON "Stop",IDSTOP,117,56,50,14 |
|
| 165 |
- CONTROL "Filename",IDC_FileName,"Static",SS_LEFTNOWORDWRAP | |
|
| 166 |
- WS_GROUP,9,7,270,13 |
|
| 167 |
- CTEXT "0%",IDC_Percent,116,28,52,18 |
|
| 168 |
-END |
|
| 169 |
- |
|
| 170 |
-IDD_OPTIONS DIALOG DISCARDABLE 0, 0, 277, 90 |
|
| 171 |
-STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
|
| 172 |
-CAPTION "Options" |
|
| 173 |
-FONT 8, "MS Sans Serif" |
|
| 174 |
-BEGIN |
|
| 175 |
- DEFPUSHBUTTON "OK",IDOK,214,42,50,14 |
|
| 176 |
- PUSHBUTTON "Cancel",IDCANCEL,213,64,50,14 |
|
| 177 |
- CONTROL "Recursively Scan Folders",IDC_RECURSIVE,"Button", |
|
| 178 |
- BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_TABSTOP,6,9,93,10 |
|
| 179 |
- LTEXT "Quarantine Directory",IDC_STATIC,10,33,75,14 |
|
| 180 |
- EDITTEXT IDC_QUARANTINE,91,29,120,18,ES_AUTOHSCROLL |
|
| 181 |
-END |
|
| 182 |
- |
|
| 183 |
- |
|
| 184 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 185 |
-// |
|
| 186 |
-// Version |
|
| 187 |
-// |
|
| 188 |
- |
|
| 189 |
-VS_VERSION_INFO VERSIONINFO |
|
| 190 |
- FILEVERSION 1,0,0,1 |
|
| 191 |
- PRODUCTVERSION 1,0,0,1 |
|
| 192 |
- FILEFLAGSMASK 0x3fL |
|
| 193 |
-#ifdef _DEBUG |
|
| 194 |
- FILEFLAGS 0x1L |
|
| 195 |
-#else |
|
| 196 |
- FILEFLAGS 0x0L |
|
| 197 |
-#endif |
|
| 198 |
- FILEOS 0x4L |
|
| 199 |
- FILETYPE 0x1L |
|
| 200 |
- FILESUBTYPE 0x0L |
|
| 201 |
-BEGIN |
|
| 202 |
- BLOCK "StringFileInfo" |
|
| 203 |
- BEGIN |
|
| 204 |
- BLOCK "080904b0" |
|
| 205 |
- BEGIN |
|
| 206 |
- VALUE "CompanyName", "NJH Music\0" |
|
| 207 |
- VALUE "FileDescription", "CLAMAV MFC Application\0" |
|
| 208 |
- VALUE "FileVersion", "1, 0, 0, 1\0" |
|
| 209 |
- VALUE "InternalName", "CLAMAV\0" |
|
| 210 |
- VALUE "LegalCopyright", "Copyright \251 2004 Nigel Horne\0" |
|
| 211 |
- VALUE "OriginalFilename", "CLAMAV.EXE\0" |
|
| 212 |
- VALUE "ProductName", "CLAMAV Application\0" |
|
| 213 |
- VALUE "ProductVersion", "1, 0, 0, 1\0" |
|
| 214 |
- END |
|
| 215 |
- END |
|
| 216 |
- BLOCK "VarFileInfo" |
|
| 217 |
- BEGIN |
|
| 218 |
- VALUE "Translation", 0x809, 1200 |
|
| 219 |
- END |
|
| 220 |
-END |
|
| 221 |
- |
|
| 222 |
- |
|
| 223 |
- |
|
| 224 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 225 |
-// |
|
| 226 |
-// String Table |
|
| 227 |
-// |
|
| 228 |
- |
|
| 229 |
-STRINGTABLE PRELOAD DISCARDABLE |
|
| 230 |
-BEGIN |
|
| 231 |
- IDR_MAINFRAME "clamav\n\nClamav\n\n\nClamav.Document\nClamav Document" |
|
| 232 |
- IDD_OPTIONS "Set Options\nOptions" |
|
| 233 |
-END |
|
| 234 |
- |
|
| 235 |
-STRINGTABLE PRELOAD DISCARDABLE |
|
| 236 |
-BEGIN |
|
| 237 |
- AFX_IDS_APP_TITLE "clamav" |
|
| 238 |
- AFX_IDS_IDLEMESSAGE "To scan a file/folder drag 'n' drop it onto the program" |
|
| 239 |
- AFX_IDS_HELPMODEMESSAGE "Select an object on which to get Help" |
|
| 240 |
-END |
|
| 241 |
- |
|
| 242 |
-STRINGTABLE DISCARDABLE |
|
| 243 |
-BEGIN |
|
| 244 |
- ID_INDICATOR_EXT "EXT" |
|
| 245 |
- ID_INDICATOR_CAPS "CAP" |
|
| 246 |
- ID_INDICATOR_NUM "NUM" |
|
| 247 |
- ID_INDICATOR_SCRL "SCRL" |
|
| 248 |
- ID_INDICATOR_OVR "OVR" |
|
| 249 |
- ID_INDICATOR_REC "REC" |
|
| 250 |
-END |
|
| 251 |
- |
|
| 252 |
-STRINGTABLE DISCARDABLE |
|
| 253 |
-BEGIN |
|
| 254 |
- ID_FILE_NEW "Connect to a different server\nNew" |
|
| 255 |
- ID_FILE_OPEN "Scan File\nScan" |
|
| 256 |
- ID_FILE_CLOSE "Close the active document\nClose" |
|
| 257 |
- ID_FILE_SAVE "Save the active document\nSave" |
|
| 258 |
- ID_FILE_SAVE_AS "Save the active document with a new name\nSave As" |
|
| 259 |
- ID_FILE_PAGE_SETUP "Change the printing options\nPage Setup" |
|
| 260 |
- ID_FILE_PRINT_SETUP "Change the printer and printing options\nPrint Setup" |
|
| 261 |
- ID_FILE_PRINT "Print the active document\nPrint" |
|
| 262 |
- ID_FILE_PRINT_PREVIEW "Display full pages\nPrint Preview" |
|
| 263 |
-END |
|
| 264 |
- |
|
| 265 |
-STRINGTABLE DISCARDABLE |
|
| 266 |
-BEGIN |
|
| 267 |
- ID_APP_ABOUT "Display program information, version number and copyright\nAbout" |
|
| 268 |
- ID_APP_EXIT "Quit the application; prompts to save documents\nExit" |
|
| 269 |
- ID_HELP_INDEX "List Help topics\nHelp Index" |
|
| 270 |
- ID_HELP_USING "Display instructions about how to use help\nHelp" |
|
| 271 |
- ID_CONTEXT_HELP "Display help for clicked on buttons, menus and windows\nHelp" |
|
| 272 |
- ID_HELP "Display help for current task or command\nHelp" |
|
| 273 |
-END |
|
| 274 |
- |
|
| 275 |
-STRINGTABLE DISCARDABLE |
|
| 276 |
-BEGIN |
|
| 277 |
- ID_FILE_MRU_FILE1 "Open this document" |
|
| 278 |
- ID_FILE_MRU_FILE2 "Open this document" |
|
| 279 |
- ID_FILE_MRU_FILE3 "Open this document" |
|
| 280 |
- ID_FILE_MRU_FILE4 "Open this document" |
|
| 281 |
-END |
|
| 282 |
- |
|
| 283 |
-STRINGTABLE DISCARDABLE |
|
| 284 |
-BEGIN |
|
| 285 |
- ID_NEXT_PANE "Switch to the next window pane\nNext Pane" |
|
| 286 |
- ID_PREV_PANE "Switch back to the previous window pane\nPrevious Pane" |
|
| 287 |
-END |
|
| 288 |
- |
|
| 289 |
-STRINGTABLE DISCARDABLE |
|
| 290 |
-BEGIN |
|
| 291 |
- ID_WINDOW_SPLIT "Split the active window into panes\nSplit" |
|
| 292 |
-END |
|
| 293 |
- |
|
| 294 |
-STRINGTABLE DISCARDABLE |
|
| 295 |
-BEGIN |
|
| 296 |
- ID_EDIT_CLEAR "Erase the selection\nErase" |
|
| 297 |
- ID_EDIT_CLEAR_ALL "Erase everything\nErase All" |
|
| 298 |
- ID_EDIT_COPY "Copy the selection and put it on the Clipboard\nCopy" |
|
| 299 |
- ID_EDIT_CUT "Cut the selection and put it on the Clipboard\nCut" |
|
| 300 |
- ID_EDIT_FIND "Find the specified text\nFind" |
|
| 301 |
- ID_EDIT_PASTE "Insert Clipboard contents\nPaste" |
|
| 302 |
- ID_EDIT_REPEAT "Repeat the last action\nRepeat" |
|
| 303 |
- ID_EDIT_REPLACE "Replace specific text with different text\nReplace" |
|
| 304 |
- ID_EDIT_SELECT_ALL "Select the entire document\nSelect All" |
|
| 305 |
- ID_EDIT_UNDO "Undo the last action\nUndo" |
|
| 306 |
- ID_EDIT_REDO "Redo the previously undone action\nRedo" |
|
| 307 |
-END |
|
| 308 |
- |
|
| 309 |
-STRINGTABLE DISCARDABLE |
|
| 310 |
-BEGIN |
|
| 311 |
- ID_VIEW_TOOLBAR "Show or hide the toolbar\nToggle ToolBar" |
|
| 312 |
- ID_VIEW_STATUS_BAR "Show or hide the status bar\nToggle StatusBar" |
|
| 313 |
-END |
|
| 314 |
- |
|
| 315 |
-STRINGTABLE DISCARDABLE |
|
| 316 |
-BEGIN |
|
| 317 |
- AFX_IDS_SCSIZE "Change the window size" |
|
| 318 |
- AFX_IDS_SCMOVE "Change the window position" |
|
| 319 |
- AFX_IDS_SCMINIMIZE "Reduce the window to an icon" |
|
| 320 |
- AFX_IDS_SCMAXIMIZE "Enlarge the window to full size" |
|
| 321 |
- AFX_IDS_SCNEXTWINDOW "Switch to the next document window" |
|
| 322 |
- AFX_IDS_SCPREVWINDOW "Switch to the previous document window" |
|
| 323 |
- AFX_IDS_SCCLOSE "Close the active window and prompts to save the documents" |
|
| 324 |
-END |
|
| 325 |
- |
|
| 326 |
-STRINGTABLE DISCARDABLE |
|
| 327 |
-BEGIN |
|
| 328 |
- AFX_IDS_SCRESTORE "Restore the window to normal size" |
|
| 329 |
- AFX_IDS_SCTASKLIST "Activate Task List" |
|
| 330 |
-END |
|
| 331 |
- |
|
| 332 |
-STRINGTABLE DISCARDABLE |
|
| 333 |
-BEGIN |
|
| 334 |
- AFX_IDS_PREVIEW_CLOSE "Close print preview mode\nCancel Preview" |
|
| 335 |
-END |
|
| 336 |
- |
|
| 337 |
- |
|
| 338 |
-#ifndef APSTUDIO_INVOKED |
|
| 339 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 340 |
-// |
|
| 341 |
-// Generated from the TEXTINCLUDE 3 resource. |
|
| 342 |
-// |
|
| 343 |
-#include "res\clamav.rc2" // non-Microsoft Visual C++ edited resources |
|
| 344 |
- |
|
| 345 |
-#define _AFX_NO_SPLITTER_RESOURCES |
|
| 346 |
-#define _AFX_NO_OLE_RESOURCES |
|
| 347 |
-#define _AFX_NO_TRACKER_RESOURCES |
|
| 348 |
-#define _AFX_NO_PROPERTY_RESOURCES |
|
| 349 |
-#include "afxres.rc" // Standard components |
|
| 350 |
-#include "afxprint.rc" // printing/print preview resources |
|
| 351 |
- |
|
| 352 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 353 |
-#endif // not APSTUDIO_INVOKED |
|
| 354 |
- |
| 355 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,111 +0,0 @@ |
| 1 |
-// clamavw.cpp : implementation of the CClamavView class |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "clamav.h" |
|
| 24 |
- |
|
| 25 |
-#include "clamadoc.h" |
|
| 26 |
-#include "clamavw.h" |
|
| 27 |
- |
|
| 28 |
-#ifdef _DEBUG |
|
| 29 |
-#undef THIS_FILE |
|
| 30 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 31 |
-#endif |
|
| 32 |
- |
|
| 33 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 34 |
-// CClamavView |
|
| 35 |
- |
|
| 36 |
-IMPLEMENT_DYNCREATE(CClamavView, CView) |
|
| 37 |
- |
|
| 38 |
-BEGIN_MESSAGE_MAP(CClamavView, CView) |
|
| 39 |
- //{{AFX_MSG_MAP(CClamavView)
|
|
| 40 |
- //}}AFX_MSG_MAP |
|
| 41 |
- // Standard printing commands |
|
| 42 |
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) |
|
| 43 |
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) |
|
| 44 |
-END_MESSAGE_MAP() |
|
| 45 |
- |
|
| 46 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 47 |
-// CClamavView construction/destruction |
|
| 48 |
- |
|
| 49 |
-CClamavView::CClamavView() |
|
| 50 |
-{
|
|
| 51 |
- // TODO: add construction code here |
|
| 52 |
- |
|
| 53 |
-} |
|
| 54 |
- |
|
| 55 |
-CClamavView::~CClamavView() |
|
| 56 |
-{
|
|
| 57 |
-} |
|
| 58 |
- |
|
| 59 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 60 |
-// CClamavView drawing |
|
| 61 |
- |
|
| 62 |
-void CClamavView::OnDraw(CDC* pDC) |
|
| 63 |
-{
|
|
| 64 |
- CClamavDoc* pDoc = GetDocument(); |
|
| 65 |
- ASSERT_VALID(pDoc); |
|
| 66 |
- |
|
| 67 |
- // TODO: add draw code for native data here |
|
| 68 |
-} |
|
| 69 |
- |
|
| 70 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 71 |
-// CClamavView printing |
|
| 72 |
- |
|
| 73 |
-BOOL CClamavView::OnPreparePrinting(CPrintInfo* pInfo) |
|
| 74 |
-{
|
|
| 75 |
- // default preparation |
|
| 76 |
- return DoPreparePrinting(pInfo); |
|
| 77 |
-} |
|
| 78 |
- |
|
| 79 |
-void CClamavView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) |
|
| 80 |
-{
|
|
| 81 |
- // TODO: add extra initialization before printing |
|
| 82 |
-} |
|
| 83 |
- |
|
| 84 |
-void CClamavView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) |
|
| 85 |
-{
|
|
| 86 |
- // TODO: add cleanup after printing |
|
| 87 |
-} |
|
| 88 |
- |
|
| 89 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 90 |
-// CClamavView diagnostics |
|
| 91 |
- |
|
| 92 |
-#ifdef _DEBUG |
|
| 93 |
-void CClamavView::AssertValid() const |
|
| 94 |
-{
|
|
| 95 |
- CView::AssertValid(); |
|
| 96 |
-} |
|
| 97 |
- |
|
| 98 |
-void CClamavView::Dump(CDumpContext& dc) const |
|
| 99 |
-{
|
|
| 100 |
- CView::Dump(dc); |
|
| 101 |
-} |
|
| 102 |
- |
|
| 103 |
-CClamavDoc* CClamavView::GetDocument() // non-debug version is inline |
|
| 104 |
-{
|
|
| 105 |
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CClamavDoc))); |
|
| 106 |
- return (CClamavDoc*)m_pDocument; |
|
| 107 |
-} |
|
| 108 |
-#endif //_DEBUG |
|
| 109 |
- |
|
| 110 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 111 |
-// CClamavView message handlers |
| 112 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,69 +0,0 @@ |
| 1 |
-// clamavw.h : interface of the CClamavView class |
|
| 2 |
-// |
|
| 3 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 4 |
- |
|
| 5 |
-/* |
|
| 6 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 7 |
- * |
|
| 8 |
- * This program is free software; you can redistribute it and/or modify |
|
| 9 |
- * it under the terms of the GNU General Public License as published by |
|
| 10 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 11 |
- * (at your option) any later version. |
|
| 12 |
- * |
|
| 13 |
- * This program is distributed in the hope that it will be useful, |
|
| 14 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 15 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 16 |
- * GNU General Public License for more details. |
|
| 17 |
- * |
|
| 18 |
- * You should have received a copy of the GNU General Public License |
|
| 19 |
- * along with this program; if not, write to the Free Software |
|
| 20 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 21 |
- * MA 02110-1301, USA. |
|
| 22 |
- */ |
|
| 23 |
-class CClamavView : public CView |
|
| 24 |
-{
|
|
| 25 |
-protected: // create from serialization only |
|
| 26 |
- CClamavView(); |
|
| 27 |
- DECLARE_DYNCREATE(CClamavView) |
|
| 28 |
- |
|
| 29 |
-// Attributes |
|
| 30 |
-public: |
|
| 31 |
- CClamavDoc* GetDocument(); |
|
| 32 |
- |
|
| 33 |
-// Operations |
|
| 34 |
-public: |
|
| 35 |
- |
|
| 36 |
-// Overrides |
|
| 37 |
- // ClassWizard generated virtual function overrides |
|
| 38 |
- //{{AFX_VIRTUAL(CClamavView)
|
|
| 39 |
- public: |
|
| 40 |
- virtual void OnDraw(CDC* pDC); // overridden to draw this view |
|
| 41 |
- protected: |
|
| 42 |
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); |
|
| 43 |
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); |
|
| 44 |
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); |
|
| 45 |
- //}}AFX_VIRTUAL |
|
| 46 |
- |
|
| 47 |
-// Implementation |
|
| 48 |
-public: |
|
| 49 |
- virtual ~CClamavView(); |
|
| 50 |
-#ifdef _DEBUG |
|
| 51 |
- virtual void AssertValid() const; |
|
| 52 |
- virtual void Dump(CDumpContext& dc) const; |
|
| 53 |
-#endif |
|
| 54 |
- |
|
| 55 |
-protected: |
|
| 56 |
- |
|
| 57 |
-// Generated message map functions |
|
| 58 |
-protected: |
|
| 59 |
- //{{AFX_MSG(CClamavView)
|
|
| 60 |
- //}}AFX_MSG |
|
| 61 |
- DECLARE_MESSAGE_MAP() |
|
| 62 |
-}; |
|
| 63 |
- |
|
| 64 |
-#ifndef _DEBUG // debug version in clamavw.cpp |
|
| 65 |
-inline CClamavDoc* CClamavView::GetDocument() |
|
| 66 |
- { return (CClamavDoc*)m_pDocument; }
|
|
| 67 |
-#endif |
|
| 68 |
- |
|
| 69 |
-///////////////////////////////////////////////////////////////////////////// |
| 70 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,445 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- */ |
|
| 19 |
-#include "stdafx.h" |
|
| 20 |
- |
|
| 21 |
-#include "resource.h" |
|
| 22 |
-#include "clamav.h" |
|
| 23 |
- |
|
| 24 |
-#include "mainfrm.h" |
|
| 25 |
- |
|
| 26 |
-#include "clamserver.h" |
|
| 27 |
-#include "servername.h" |
|
| 28 |
- |
|
| 29 |
-#include <io.h> |
|
| 30 |
-#include <winsock.h> |
|
| 31 |
-#include <sys/stat.h> |
|
| 32 |
- |
|
| 33 |
-ClamServer::ClamServer(void) |
|
| 34 |
-{
|
|
| 35 |
- if(!InitInstance()) |
|
| 36 |
- THROW(new CException()); // FIXME: never freed |
|
| 37 |
- |
|
| 38 |
- progressBar = NULL; |
|
| 39 |
- stopping = FALSE; |
|
| 40 |
-} |
|
| 41 |
- |
|
| 42 |
-ClamServer::ClamServer(CString& serverName, unsigned short p) |
|
| 43 |
-{
|
|
| 44 |
- LPTSTR hostname = serverName.GetBuffer(64); |
|
| 45 |
- serverIP = inet_addr(hostname); |
|
| 46 |
- |
|
| 47 |
- if(serverIP == -1L) |
|
| 48 |
- THROW(CException()); |
|
| 49 |
- |
|
| 50 |
- port = p; |
|
| 51 |
- |
|
| 52 |
- const int sock = CreateConnection(); |
|
| 53 |
- |
|
| 54 |
- if(sock < 0) |
|
| 55 |
- THROW(CException()); |
|
| 56 |
- |
|
| 57 |
- progressBar = NULL; |
|
| 58 |
- stopping = FALSE; |
|
| 59 |
-} |
|
| 60 |
- |
|
| 61 |
-ClamServer::~ClamServer() |
|
| 62 |
-{
|
|
| 63 |
- if(progressBar) {
|
|
| 64 |
- delete progressBar; |
|
| 65 |
- progressBar = NULL; |
|
| 66 |
- } |
|
| 67 |
-} |
|
| 68 |
- |
|
| 69 |
-BOOL |
|
| 70 |
-ClamServer::InitInstance(void) |
|
| 71 |
-{
|
|
| 72 |
- ServerName serverName; |
|
| 73 |
- |
|
| 74 |
- if(serverName.DoModal() == IDCANCEL) |
|
| 75 |
- return FALSE; |
|
| 76 |
- |
|
| 77 |
- const char *hostname = serverName.m_serverName; |
|
| 78 |
- |
|
| 79 |
- serverIP = inet_addr(hostname); |
|
| 80 |
- |
|
| 81 |
- if(serverIP == -1L) {
|
|
| 82 |
- AfxMessageBox("Unknown host");
|
|
| 83 |
- return FALSE; |
|
| 84 |
- } |
|
| 85 |
- |
|
| 86 |
- port = (unsigned short)serverName.m_port; |
|
| 87 |
- const int sock = CreateConnection(); |
|
| 88 |
- |
|
| 89 |
- if(sock < 0) |
|
| 90 |
- return TRUE; |
|
| 91 |
- |
|
| 92 |
- return CheckConnection(sock); |
|
| 93 |
-} |
|
| 94 |
- |
|
| 95 |
-const BOOL |
|
| 96 |
-ClamServer::CheckConnection(int sock) |
|
| 97 |
-{
|
|
| 98 |
- if(send(sock, "PING\n", 5, 0) < 5) {
|
|
| 99 |
- closesocket(sock); |
|
| 100 |
- AfxMessageBox("Can't talk to clamdserver");
|
|
| 101 |
- return FALSE; |
|
| 102 |
- } |
|
| 103 |
- char ret[5]; |
|
| 104 |
- if(recv(sock, ret, sizeof(ret), 0) <= 4) {
|
|
| 105 |
- closesocket(sock); |
|
| 106 |
- AfxMessageBox("Can't receive from clamdserver");
|
|
| 107 |
- return FALSE; |
|
| 108 |
- } |
|
| 109 |
- closesocket(sock); |
|
| 110 |
- if(strncmp(ret, "PONG\n", 5) != 0) {
|
|
| 111 |
- AfxMessageBox("Is that server running clamd?");
|
|
| 112 |
- return FALSE; |
|
| 113 |
- } |
|
| 114 |
- |
|
| 115 |
- return TRUE; |
|
| 116 |
-} |
|
| 117 |
- |
|
| 118 |
-int |
|
| 119 |
-ClamServer::CreateConnection(void) |
|
| 120 |
-{
|
|
| 121 |
- const int sock = socket(AF_INET, SOCK_STREAM, 0); |
|
| 122 |
- if(sock < 0) {
|
|
| 123 |
- AfxMessageBox("Can't create socket");
|
|
| 124 |
- return FALSE; |
|
| 125 |
- } |
|
| 126 |
- |
|
| 127 |
- struct sockaddr_in server; |
|
| 128 |
- memset(&server, '\0', sizeof(struct sockaddr_in)); |
|
| 129 |
- server.sin_family = PF_INET; |
|
| 130 |
- server.sin_port = htons(port); |
|
| 131 |
- server.sin_addr.s_addr = serverIP; |
|
| 132 |
- |
|
| 133 |
- // TODO display a message about connecting to the server. Include cancel button |
|
| 134 |
- if(connect(sock, (struct sockaddr *)&server, sizeof(struct sockaddr)) < 0) {
|
|
| 135 |
- AfxMessageBox("Can't connect to clamdserver");
|
|
| 136 |
- return FALSE; |
|
| 137 |
- } |
|
| 138 |
- return sock; |
|
| 139 |
-} |
|
| 140 |
- |
|
| 141 |
-// TODO: on recursive pop up box with progress bar - to include cancel button |
|
| 142 |
-BOOL |
|
| 143 |
-ClamServer::Scan(const CString& filename, int level, CMainFrame *mainFrame, CWnd *parent, BOOL recursive, const CString& qDir) |
|
| 144 |
-{
|
|
| 145 |
- if(level == 0) |
|
| 146 |
- stopping = FALSE; |
|
| 147 |
- else if(stopping) {
|
|
| 148 |
- if(progressBar) {
|
|
| 149 |
- delete progressBar; |
|
| 150 |
- progressBar = NULL; |
|
| 151 |
- } |
|
| 152 |
- // mainFrame->ChangeStatusText("");
|
|
| 153 |
- return TRUE; |
|
| 154 |
- } |
|
| 155 |
- |
|
| 156 |
- // Don't scan folders "." and ".." |
|
| 157 |
- if(filename[filename.GetLength() - 1] == '.') |
|
| 158 |
- return TRUE; |
|
| 159 |
- |
|
| 160 |
- // I understand newer MFCs have 'PathIsDirectory' |
|
| 161 |
- |
|
| 162 |
- struct stat statb; |
|
| 163 |
- |
|
| 164 |
- if(stat(filename, &statb) < 0) {
|
|
| 165 |
- // It could be that we've been given a wild card match |
|
| 166 |
- |
|
| 167 |
- WIN32_FIND_DATA findData; |
|
| 168 |
- |
|
| 169 |
- HANDLE hFind = FindFirstFile(filename, &findData); |
|
| 170 |
- |
|
| 171 |
- if(hFind == INVALID_HANDLE_VALUE) {
|
|
| 172 |
- // No we haven't... |
|
| 173 |
- AfxMessageBox(CString("Can't stat ") + filename);
|
|
| 174 |
- return TRUE; |
|
| 175 |
- } |
|
| 176 |
- return this->ScanWildCard(filename, level, mainFrame, parent, recursive, qDir); |
|
| 177 |
- } |
|
| 178 |
- |
|
| 179 |
- if(progressBar && !stopping) {
|
|
| 180 |
- if(progressBar->IsStopPressed()) |
|
| 181 |
- stopping = TRUE; |
|
| 182 |
- progressBar->SetFilename(filename); |
|
| 183 |
- } |
|
| 184 |
- |
|
| 185 |
- // mainFrame->ChangeStatusText(filename); // statusBar.ShowProgress |
|
| 186 |
- // mainFrame->UpdateWindow(); |
|
| 187 |
- |
|
| 188 |
- if(statb.st_mode&S_IFDIR) {
|
|
| 189 |
- // Don't recurse unless we've been asked to |
|
| 190 |
- |
|
| 191 |
- if((!recursive) && (level > 0)) |
|
| 192 |
- return TRUE; |
|
| 193 |
- |
|
| 194 |
- if(progressBar == NULL) {
|
|
| 195 |
- // FIXME: not all return paths remove this, possible memory leak |
|
| 196 |
- progressBar = new CProgress(parent); |
|
| 197 |
- progressBar->Create(IDD_PROGRESS, parent); |
|
| 198 |
- } |
|
| 199 |
- |
|
| 200 |
- // Have been passed a folder. |
|
| 201 |
- return this->ScanFolder(filename, level, mainFrame, parent, recursive, qDir); |
|
| 202 |
- |
|
| 203 |
- } |
|
| 204 |
- |
|
| 205 |
- if(progressBar && (level == 0)) {
|
|
| 206 |
- delete progressBar; |
|
| 207 |
- progressBar = NULL; |
|
| 208 |
- } |
|
| 209 |
- |
|
| 210 |
- const int commandSocket = CreateConnection(); |
|
| 211 |
- |
|
| 212 |
- if(commandSocket < 0) |
|
| 213 |
- return TRUE; |
|
| 214 |
- |
|
| 215 |
- if(send(commandSocket, "STREAM\n", 7, 0) < 7) {
|
|
| 216 |
- closesocket(commandSocket); |
|
| 217 |
- AfxMessageBox("Send failed to clamd");
|
|
| 218 |
- return TRUE; |
|
| 219 |
- } |
|
| 220 |
- |
|
| 221 |
- char buf[64]; |
|
| 222 |
- int nbytes = ClamdRecv(commandSocket, buf, sizeof(buf) - 1); |
|
| 223 |
- |
|
| 224 |
- if(nbytes < 0) {
|
|
| 225 |
- closesocket(commandSocket); |
|
| 226 |
- AfxMessageBox("recv failed from clamd getting PORT");
|
|
| 227 |
- return TRUE; |
|
| 228 |
- } |
|
| 229 |
- buf[nbytes] = '\0'; |
|
| 230 |
- |
|
| 231 |
- unsigned short port; |
|
| 232 |
- |
|
| 233 |
- if(sscanf(buf, "PORT %hu\n", &port) != 1) {
|
|
| 234 |
- closesocket(commandSocket); |
|
| 235 |
- AfxMessageBox("Didn't get PORT information from clamd");
|
|
| 236 |
- |
|
| 237 |
- return TRUE; |
|
| 238 |
- } |
|
| 239 |
- |
|
| 240 |
- const int dataSocket = socket(AF_INET, SOCK_STREAM, 0); |
|
| 241 |
- |
|
| 242 |
- if(dataSocket < 0) {
|
|
| 243 |
- closesocket(commandSocket); |
|
| 244 |
- AfxMessageBox("Can't create dataSocket");
|
|
| 245 |
- return TRUE; |
|
| 246 |
- } |
|
| 247 |
- |
|
| 248 |
- shutdown(dataSocket, 0); |
|
| 249 |
- |
|
| 250 |
- struct sockaddr_in reply; |
|
| 251 |
- memset(&reply, '\0', sizeof(struct sockaddr_in)); |
|
| 252 |
- reply.sin_family = PF_INET; |
|
| 253 |
- reply.sin_port = htons(port); |
|
| 254 |
- reply.sin_addr.s_addr = serverIP; |
|
| 255 |
- |
|
| 256 |
- const int rc = connect(dataSocket, (struct sockaddr *)&reply, sizeof(struct sockaddr_in)); |
|
| 257 |
- if(rc < 0) {
|
|
| 258 |
- closesocket(commandSocket); |
|
| 259 |
- closesocket(dataSocket); |
|
| 260 |
- AfxMessageBox("Failed to connect to port given by clamd");
|
|
| 261 |
- return TRUE; |
|
| 262 |
- } |
|
| 263 |
- |
|
| 264 |
- CFile file; |
|
| 265 |
- |
|
| 266 |
- if(!file.Open(filename, CFile::modeRead|CFile::typeBinary|CFile::shareDenyNone)) {
|
|
| 267 |
- closesocket(commandSocket); |
|
| 268 |
- closesocket(dataSocket); |
|
| 269 |
- |
|
| 270 |
- AfxMessageBox(CString("Can't open ") + filename + " to scan: ");
|
|
| 271 |
- return TRUE; |
|
| 272 |
- } |
|
| 273 |
- |
|
| 274 |
- if(progressBar) |
|
| 275 |
- progressBar->SetPercent(0); |
|
| 276 |
- |
|
| 277 |
- char buffer[1500]; // TODO: send in MTU byte chunks |
|
| 278 |
- off_t bytesSent = (off_t)0; |
|
| 279 |
- |
|
| 280 |
- BOOL error = FALSE; |
|
| 281 |
- |
|
| 282 |
- while(((nbytes = file.Read(buffer, sizeof(buffer))) > 0) && !stopping) {
|
|
| 283 |
- // Every block see if someone wants to do something |
|
| 284 |
- MSG Msg; |
|
| 285 |
- |
|
| 286 |
- if(::PeekMessage(&Msg, NULL, WM_NULL, WM_USER - 1, PM_NOREMOVE)) {
|
|
| 287 |
- ::PeekMessage(&Msg, NULL, WM_NULL, WM_USER - 1, PM_REMOVE); |
|
| 288 |
- TranslateMessage(&Msg); |
|
| 289 |
- DispatchMessage(&Msg); |
|
| 290 |
- |
|
| 291 |
- if((progressBar && progressBar->IsStopPressed()) || |
|
| 292 |
- (Msg.message == WM_QUIT)) {
|
|
| 293 |
- error = TRUE; |
|
| 294 |
- break; |
|
| 295 |
- } |
|
| 296 |
- } |
|
| 297 |
- |
|
| 298 |
- char buf[81]; |
|
| 299 |
- if(ClamdRecv(commandSocket, buf, sizeof(buf) - 1, 0) > 0) {
|
|
| 300 |
- AfxMessageBox(buf); |
|
| 301 |
- error = TRUE; |
|
| 302 |
- break; |
|
| 303 |
- } |
|
| 304 |
- |
|
| 305 |
- if(send(dataSocket, buffer, nbytes, 0) != nbytes) {
|
|
| 306 |
- AfxMessageBox("Send error to clamd");
|
|
| 307 |
- error = TRUE; |
|
| 308 |
- break; |
|
| 309 |
- } |
|
| 310 |
- |
|
| 311 |
- if(progressBar) {
|
|
| 312 |
- bytesSent += nbytes; |
|
| 313 |
- |
|
| 314 |
- progressBar->SetPercent((int)(bytesSent * 100 / statb.st_size)); |
|
| 315 |
- } |
|
| 316 |
- } |
|
| 317 |
- |
|
| 318 |
- closesocket(dataSocket); |
|
| 319 |
- |
|
| 320 |
- file.Close(); |
|
| 321 |
- |
|
| 322 |
- if(error) {
|
|
| 323 |
- closesocket(commandSocket); |
|
| 324 |
- stopping = TRUE; |
|
| 325 |
- if(progressBar && (level == 0)) {
|
|
| 326 |
- delete progressBar; |
|
| 327 |
- progressBar = NULL; |
|
| 328 |
- } |
|
| 329 |
- return TRUE; |
|
| 330 |
- } |
|
| 331 |
- |
|
| 332 |
- nbytes = ClamdRecv(commandSocket, buffer, sizeof(buffer) - 1); |
|
| 333 |
- |
|
| 334 |
- closesocket(commandSocket); |
|
| 335 |
- |
|
| 336 |
- if(nbytes < 0) {
|
|
| 337 |
- AfxMessageBox("recv error getting status");
|
|
| 338 |
- return TRUE; |
|
| 339 |
- } else if(nbytes == 0) |
|
| 340 |
- return TRUE; |
|
| 341 |
- |
|
| 342 |
- buffer[nbytes] = '\0'; |
|
| 343 |
- |
|
| 344 |
- if(strstr(buffer, "ERROR") != NULL) {
|
|
| 345 |
- AfxMessageBox(filename + " " + buffer); |
|
| 346 |
- return TRUE; |
|
| 347 |
- } |
|
| 348 |
- |
|
| 349 |
- // TODO: if we're scanning down a directory tree |
|
| 350 |
- // don't display a popup box - update a dialog box |
|
| 351 |
- // which tells us how far we are |
|
| 352 |
- |
|
| 353 |
- if(strstr(buffer, "FOUND") == NULL) |
|
| 354 |
- return TRUE; |
|
| 355 |
- AfxMessageBox(filename + " " + buffer); |
|
| 356 |
- |
|
| 357 |
- mainFrame->ChangeStatusText(filename + " " + buffer); // statusBar.ShowProgress |
|
| 358 |
- |
|
| 359 |
- return FALSE; |
|
| 360 |
-} |
|
| 361 |
- |
|
| 362 |
-BOOL |
|
| 363 |
-ClamServer::ScanFolder(const CString& string, int level, CMainFrame *mainFrame, CWnd *parent, BOOL recursive, const CString& qDir) |
|
| 364 |
-{
|
|
| 365 |
- return ScanWildCard(string + "\\*.*", level, mainFrame, parent, recursive, qDir); |
|
| 366 |
-} |
|
| 367 |
- |
|
| 368 |
-BOOL |
|
| 369 |
-ClamServer::ScanWildCard(const CString& string, int level, CMainFrame *mainFrame, CWnd *parent, BOOL recursive, const CString& qDir) |
|
| 370 |
-{
|
|
| 371 |
- if(stopping) |
|
| 372 |
- return TRUE; |
|
| 373 |
- |
|
| 374 |
- WIN32_FIND_DATA findData; |
|
| 375 |
- |
|
| 376 |
- HANDLE hFind = FindFirstFile(string, &findData); |
|
| 377 |
- |
|
| 378 |
- if(hFind == INVALID_HANDLE_VALUE) |
|
| 379 |
- // No files in this folder |
|
| 380 |
- return TRUE; |
|
| 381 |
- |
|
| 382 |
- // Get to the filename stub - i.e. the file without the trailing \*.* |
|
| 383 |
- const int index = string.Find("\\*.*");
|
|
| 384 |
- |
|
| 385 |
- ASSERT(index >= 0); |
|
| 386 |
- |
|
| 387 |
- const CString stub = string.Left(index); |
|
| 388 |
- |
|
| 389 |
- BOOL rc = TRUE; |
|
| 390 |
- |
|
| 391 |
- do |
|
| 392 |
- //if(findData.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) |
|
| 393 |
- // Recurse into this folder/file only if recurse enabled |
|
| 394 |
- // if(!this->Scan(filename + "\\" + findData.cFileName)) |
|
| 395 |
- // break out as soon as one virus is found |
|
| 396 |
- // TODO: optionally report all found |
|
| 397 |
- // return FALSE; |
|
| 398 |
- if(!this->Scan(stub + "\\" + findData.cFileName, level + 1, mainFrame, parent, recursive, qDir)) |
|
| 399 |
- rc = FALSE; |
|
| 400 |
- |
|
| 401 |
- while(FindNextFile(hFind, &findData) && !stopping); |
|
| 402 |
- |
|
| 403 |
- if(progressBar && (level == 0)) {
|
|
| 404 |
- delete progressBar; |
|
| 405 |
- progressBar = NULL; |
|
| 406 |
- } |
|
| 407 |
- |
|
| 408 |
- return rc; |
|
| 409 |
-} |
|
| 410 |
- |
|
| 411 |
-/* |
|
| 412 |
- * Read from clamav - timeout if necessary |
|
| 413 |
- * timeout defaults to 30 seconds, -1 = wait forever, 0 = poll |
|
| 414 |
- * TODO: default time should be read from clamav.conf |
|
| 415 |
- */ |
|
| 416 |
-int |
|
| 417 |
-ClamServer::ClamdRecv(int sock, char *buf, size_t len, int timeout /* = 30 */) |
|
| 418 |
-{
|
|
| 419 |
- fd_set rfds; |
|
| 420 |
- struct timeval tv; |
|
| 421 |
- |
|
| 422 |
- if(timeout == -1) |
|
| 423 |
- return recv(sock, buf, len, 0); |
|
| 424 |
- |
|
| 425 |
- FD_ZERO(&rfds); |
|
| 426 |
- FD_SET(sock, &rfds); |
|
| 427 |
- |
|
| 428 |
- tv.tv_sec = timeout; // TODO: from clamav.conf |
|
| 429 |
- tv.tv_usec = 0; |
|
| 430 |
- |
|
| 431 |
- switch(select(sock + 1, &rfds, NULL, NULL, &tv)) {
|
|
| 432 |
- case -1: |
|
| 433 |
- AfxMessageBox("select failed");
|
|
| 434 |
- return -1; |
|
| 435 |
- case 0: |
|
| 436 |
- if(timeout != 0) |
|
| 437 |
- AfxMessageBox("Timeout waiting for data from clamd");
|
|
| 438 |
- return 0; |
|
| 439 |
- } |
|
| 440 |
- |
|
| 441 |
- return recv(sock, buf, len, 0); |
|
| 442 |
-} |
|
| 443 |
- |
|
| 444 |
-// void __cdecl __interrupt __far intFhandler(void) {
|
|
| 445 |
-// } |
| 446 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,52 +0,0 @@ |
| 1 |
-// Maintains connection to the clamd server |
|
| 2 |
- |
|
| 3 |
-/* |
|
| 4 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 5 |
- * |
|
| 6 |
- * This program is free software; you can redistribute it and/or modify |
|
| 7 |
- * it under the terms of the GNU General Public License as published by |
|
| 8 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 9 |
- * (at your option) any later version. |
|
| 10 |
- * |
|
| 11 |
- * This program is distributed in the hope that it will be useful, |
|
| 12 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 |
- * GNU General Public License for more details. |
|
| 15 |
- * |
|
| 16 |
- * You should have received a copy of the GNU General Public License |
|
| 17 |
- * along with this program; if not, write to the Free Software |
|
| 18 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 19 |
- * MA 02110-1301, USA. |
|
| 20 |
- */ |
|
| 21 |
-#ifndef _CLAMSERVER_H |
|
| 22 |
- |
|
| 23 |
-#include "mainfrm.h" |
|
| 24 |
- |
|
| 25 |
-class ClamServer {
|
|
| 26 |
- |
|
| 27 |
-public: |
|
| 28 |
- ClamServer(void); |
|
| 29 |
- ClamServer(CString& serverName, unsigned short port); |
|
| 30 |
- ~ClamServer(); |
|
| 31 |
- BOOL Scan(const CString& filename, int level, CMainFrame *mainFrame, |
|
| 32 |
- CWnd *parent, BOOL recursive, const CString& qDir); |
|
| 33 |
- // returns TRUE if the file is clean |
|
| 34 |
- |
|
| 35 |
-private: |
|
| 36 |
- BOOL InitInstance(void); |
|
| 37 |
- int CreateConnection(void); |
|
| 38 |
- const BOOL CheckConnection(int sock); |
|
| 39 |
- BOOL ClamServer::ScanFolder(const CString& string, int level, CMainFrame *mainFrame, |
|
| 40 |
- CWnd *parent, BOOL recursive, const CString& qDir); |
|
| 41 |
- BOOL ClamServer::ScanWildCard(const CString& string, int level, CMainFrame *mainFrame, |
|
| 42 |
- CWnd *parent, BOOL recursive, const CString& qDir); |
|
| 43 |
- int ClamServer::ClamdRecv(int sock, char *buf, size_t len, int timeout = 30); |
|
| 44 |
- |
|
| 45 |
- long serverIP; // IPv4 address of the clamdserver (only one for now) |
|
| 46 |
- unsigned short port; // host order |
|
| 47 |
- BOOL stopping; // true if the application has been asked to stop |
|
| 48 |
- CProgress *progressBar; |
|
| 49 |
-}; |
|
| 50 |
- |
|
| 51 |
-#define _CLAMSERVER_H |
|
| 52 |
-#endif _CLAMSERVER_H |
| 53 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,176 +0,0 @@ |
| 1 |
-// mainfrm.cpp : implementation of the CMainFrame class |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "mainfrm.h" |
|
| 24 |
-#include "resource.h" |
|
| 25 |
-#include "clamav.h" |
|
| 26 |
- |
|
| 27 |
-#ifdef _DEBUG |
|
| 28 |
-#undef THIS_FILE |
|
| 29 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 30 |
-#endif |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 34 |
-// CMainFrame |
|
| 35 |
- |
|
| 36 |
-IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) |
|
| 37 |
- |
|
| 38 |
-BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) |
|
| 39 |
- //{{AFX_MSG_MAP(CMainFrame)
|
|
| 40 |
- ON_WM_CREATE() |
|
| 41 |
- ON_WM_DROPFILES() |
|
| 42 |
- //}}AFX_MSG_MAP |
|
| 43 |
- // Global help commands |
|
| 44 |
- ON_COMMAND(ID_HELP_INDEX, CFrameWnd::OnHelpIndex) |
|
| 45 |
- ON_COMMAND(ID_HELP_USING, CFrameWnd::OnHelpUsing) |
|
| 46 |
- ON_COMMAND(ID_HELP, CFrameWnd::OnHelp) |
|
| 47 |
- ON_COMMAND(ID_CONTEXT_HELP, CFrameWnd::OnContextHelp) |
|
| 48 |
- ON_COMMAND(ID_DEFAULT_HELP, CFrameWnd::OnHelpIndex) |
|
| 49 |
-END_MESSAGE_MAP() |
|
| 50 |
- |
|
| 51 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 52 |
-// arrays of IDs used to initialize control bars |
|
| 53 |
- |
|
| 54 |
-// toolbar buttons - IDs are command buttons |
|
| 55 |
-static UINT BASED_CODE buttons[] = |
|
| 56 |
-{
|
|
| 57 |
- // same order as in the bitmap 'toolbar.bmp' |
|
| 58 |
- ID_FILE_NEW, |
|
| 59 |
- ID_FILE_OPEN, |
|
| 60 |
- ID_FILE_SAVE, |
|
| 61 |
- ID_SEPARATOR, |
|
| 62 |
- ID_EDIT_CUT, |
|
| 63 |
- ID_EDIT_COPY, |
|
| 64 |
- ID_EDIT_PASTE, |
|
| 65 |
- ID_SEPARATOR, |
|
| 66 |
- ID_FILE_PRINT, |
|
| 67 |
- ID_APP_ABOUT, |
|
| 68 |
- ID_CONTEXT_HELP, |
|
| 69 |
-}; |
|
| 70 |
- |
|
| 71 |
-static UINT BASED_CODE indicators[] = |
|
| 72 |
-{
|
|
| 73 |
- ID_SEPARATOR, // status line indicator |
|
| 74 |
- ID_INDICATOR_CAPS, |
|
| 75 |
- ID_INDICATOR_NUM, |
|
| 76 |
- ID_INDICATOR_SCRL, |
|
| 77 |
-}; |
|
| 78 |
- |
|
| 79 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 80 |
-// CMainFrame construction/destruction |
|
| 81 |
- |
|
| 82 |
-CMainFrame::CMainFrame() |
|
| 83 |
-{
|
|
| 84 |
- // TODO: add member initialization code here |
|
| 85 |
- |
|
| 86 |
-} |
|
| 87 |
- |
|
| 88 |
-CMainFrame::~CMainFrame() |
|
| 89 |
-{
|
|
| 90 |
-} |
|
| 91 |
- |
|
| 92 |
-int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) |
|
| 93 |
-{
|
|
| 94 |
- if (CFrameWnd::OnCreate(lpCreateStruct) == -1) |
|
| 95 |
- return -1; |
|
| 96 |
- |
|
| 97 |
- |
|
| 98 |
- if (!m_wndToolBar.Create(this) || |
|
| 99 |
- !m_wndToolBar.LoadBitmap(IDR_MAINFRAME) || |
|
| 100 |
- !m_wndToolBar.SetButtons(buttons, |
|
| 101 |
- sizeof(buttons)/sizeof(UINT))) |
|
| 102 |
- {
|
|
| 103 |
- TRACE0("Failed to create toolbar\n");
|
|
| 104 |
- return -1; // fail to create |
|
| 105 |
- } |
|
| 106 |
- |
|
| 107 |
- if (!m_wndStatusBar.Create(this) || |
|
| 108 |
- !m_wndStatusBar.SetIndicators(indicators, |
|
| 109 |
- sizeof(indicators)/sizeof(UINT))) |
|
| 110 |
- {
|
|
| 111 |
- TRACE0("Failed to create status bar\n");
|
|
| 112 |
- return -1; // fail to create |
|
| 113 |
- } |
|
| 114 |
- |
|
| 115 |
- m_wndToolBar.DestroyWindow(); |
|
| 116 |
-#if 0 |
|
| 117 |
- // TODO: Delete these three lines if you don't want the toolbar to |
|
| 118 |
- // be dockable |
|
| 119 |
- m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); |
|
| 120 |
- EnableDocking(CBRS_ALIGN_ANY); |
|
| 121 |
- DockControlBar(&m_wndToolBar); |
|
| 122 |
- |
|
| 123 |
- // TODO: Remove this if you don't want tool tips |
|
| 124 |
- m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | |
|
| 125 |
- CBRS_TOOLTIPS | CBRS_FLYBY); |
|
| 126 |
-#endif |
|
| 127 |
- DragAcceptFiles(TRUE); |
|
| 128 |
- |
|
| 129 |
- return 0; |
|
| 130 |
-} |
|
| 131 |
- |
|
| 132 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 133 |
-// CMainFrame diagnostics |
|
| 134 |
- |
|
| 135 |
-#ifdef _DEBUG |
|
| 136 |
-void CMainFrame::AssertValid() const |
|
| 137 |
-{
|
|
| 138 |
- CFrameWnd::AssertValid(); |
|
| 139 |
-} |
|
| 140 |
- |
|
| 141 |
-void CMainFrame::Dump(CDumpContext& dc) const |
|
| 142 |
-{
|
|
| 143 |
- CFrameWnd::Dump(dc); |
|
| 144 |
-} |
|
| 145 |
- |
|
| 146 |
-#endif //_DEBUG |
|
| 147 |
- |
|
| 148 |
-void |
|
| 149 |
-CMainFrame::ChangeStatusText(const CString &text) |
|
| 150 |
-{
|
|
| 151 |
- m_wndStatusBar.SetWindowText(text); |
|
| 152 |
-} |
|
| 153 |
- |
|
| 154 |
- |
|
| 155 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 156 |
-// CMainFrame message handlers |
|
| 157 |
- |
|
| 158 |
-void CMainFrame::OnDropFiles(HDROP hDropInfo) |
|
| 159 |
-{
|
|
| 160 |
- // TODO: Add your message handler code here and/or call default |
|
| 161 |
- |
|
| 162 |
- const int nFiles = ::DragQueryFile(hDropInfo, 0xFFFFFFFF, NULL, 0); |
|
| 163 |
- |
|
| 164 |
- for(int i = 0; i < nFiles; i++) {
|
|
| 165 |
- TCHAR filename[_MAX_PATH]; |
|
| 166 |
- |
|
| 167 |
- ::DragQueryFile(hDropInfo, i, filename, _MAX_PATH); |
|
| 168 |
- |
|
| 169 |
- extern CClamavApp theApp; |
|
| 170 |
- |
|
| 171 |
- theApp.Scan(filename); |
|
| 172 |
- } |
|
| 173 |
- |
|
| 174 |
- ::DragFinish(hDropInfo); |
|
| 175 |
-} |
|
| 176 |
- |
| 177 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,68 +0,0 @@ |
| 1 |
-// mainfrm.h : interface of the CMainFrame class |
|
| 2 |
-// |
|
| 3 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 4 |
- |
|
| 5 |
-/* |
|
| 6 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 7 |
- * |
|
| 8 |
- * This program is free software; you can redistribute it and/or modify |
|
| 9 |
- * it under the terms of the GNU General Public License as published by |
|
| 10 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 11 |
- * (at your option) any later version. |
|
| 12 |
- * |
|
| 13 |
- * This program is distributed in the hope that it will be useful, |
|
| 14 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 15 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 16 |
- * GNU General Public License for more details. |
|
| 17 |
- * |
|
| 18 |
- * You should have received a copy of the GNU General Public License |
|
| 19 |
- * along with this program; if not, write to the Free Software |
|
| 20 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 21 |
- * MA 02110-1301, USA. |
|
| 22 |
- */ |
|
| 23 |
-#ifndef _MAINFRM_H |
|
| 24 |
- |
|
| 25 |
-class CMainFrame : public CFrameWnd |
|
| 26 |
-{
|
|
| 27 |
-protected: // create from serialization only |
|
| 28 |
- CMainFrame(); |
|
| 29 |
- DECLARE_DYNCREATE(CMainFrame) |
|
| 30 |
- |
|
| 31 |
-// Attributes |
|
| 32 |
-public: |
|
| 33 |
- |
|
| 34 |
-// Operations |
|
| 35 |
-public: |
|
| 36 |
- void ChangeStatusText(const CString &text); |
|
| 37 |
- |
|
| 38 |
-// Overrides |
|
| 39 |
- // ClassWizard generated virtual function overrides |
|
| 40 |
- //{{AFX_VIRTUAL(CMainFrame)
|
|
| 41 |
- //}}AFX_VIRTUAL |
|
| 42 |
- |
|
| 43 |
-// Implementation |
|
| 44 |
-public: |
|
| 45 |
- virtual ~CMainFrame(); |
|
| 46 |
-#ifdef _DEBUG |
|
| 47 |
- virtual void AssertValid() const; |
|
| 48 |
- virtual void Dump(CDumpContext& dc) const; |
|
| 49 |
-#endif |
|
| 50 |
- |
|
| 51 |
-protected: // control bar embedded members |
|
| 52 |
- CStatusBar m_wndStatusBar; |
|
| 53 |
- CToolBar m_wndToolBar; |
|
| 54 |
- |
|
| 55 |
-// Generated message map functions |
|
| 56 |
-protected: |
|
| 57 |
- //{{AFX_MSG(CMainFrame)
|
|
| 58 |
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); |
|
| 59 |
- afx_msg void OnDropFiles(HDROP hDropInfo); |
|
| 60 |
- //}}AFX_MSG |
|
| 61 |
- DECLARE_MESSAGE_MAP() |
|
| 62 |
-}; |
|
| 63 |
- |
|
| 64 |
-#define _MAINFRM_H |
|
| 65 |
-#endif _MAINFRM_H |
|
| 66 |
- |
|
| 67 |
- |
|
| 68 |
-///////////////////////////////////////////////////////////////////////////// |
| 69 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,60 +0,0 @@ |
| 1 |
-// options.cpp : implementation file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "clamav.h" |
|
| 24 |
- |
|
| 25 |
-#ifdef _DEBUG |
|
| 26 |
-#undef THIS_FILE |
|
| 27 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 28 |
-#endif |
|
| 29 |
- |
|
| 30 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 31 |
-// COptions dialog |
|
| 32 |
- |
|
| 33 |
- |
|
| 34 |
-COptions::COptions(CWnd* pParent /*=NULL*/) |
|
| 35 |
- : CDialog(COptions::IDD, pParent) |
|
| 36 |
-{
|
|
| 37 |
- //{{AFX_DATA_INIT(COptions)
|
|
| 38 |
- m_recursive = TRUE; |
|
| 39 |
- m_quarantineDir = _T("");
|
|
| 40 |
- //}}AFX_DATA_INIT |
|
| 41 |
-} |
|
| 42 |
- |
|
| 43 |
-void COptions::DoDataExchange(CDataExchange* pDX) |
|
| 44 |
-{
|
|
| 45 |
- CDialog::DoDataExchange(pDX); |
|
| 46 |
- //{{AFX_DATA_MAP(COptions)
|
|
| 47 |
- DDX_Check(pDX, IDC_RECURSIVE, m_recursive); |
|
| 48 |
- DDX_Text(pDX, IDC_QUARANTINE, m_quarantineDir); |
|
| 49 |
- //}}AFX_DATA_MAP |
|
| 50 |
-} |
|
| 51 |
- |
|
| 52 |
- |
|
| 53 |
-BEGIN_MESSAGE_MAP(COptions, CDialog) |
|
| 54 |
- //{{AFX_MSG_MAP(COptions)
|
|
| 55 |
- //}}AFX_MSG_MAP |
|
| 56 |
-END_MESSAGE_MAP() |
|
| 57 |
- |
|
| 58 |
- |
|
| 59 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 60 |
-// COptions message handlers |
| 61 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,53 +0,0 @@ |
| 1 |
-// options.h : header file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 23 |
-// COptions dialog |
|
| 24 |
- |
|
| 25 |
-class COptions : public CDialog |
|
| 26 |
-{
|
|
| 27 |
-// Construction |
|
| 28 |
-public: |
|
| 29 |
- COptions(CWnd* pParent = NULL); // standard constructor |
|
| 30 |
- |
|
| 31 |
-// Dialog Data |
|
| 32 |
- //{{AFX_DATA(COptions)
|
|
| 33 |
- enum { IDD = IDD_OPTIONS };
|
|
| 34 |
- BOOL m_recursive; |
|
| 35 |
- CString m_quarantineDir; |
|
| 36 |
- //}}AFX_DATA |
|
| 37 |
- |
|
| 38 |
- |
|
| 39 |
-// Overrides |
|
| 40 |
- // ClassWizard generated virtual function overrides |
|
| 41 |
- //{{AFX_VIRTUAL(COptions)
|
|
| 42 |
- protected: |
|
| 43 |
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
| 44 |
- //}}AFX_VIRTUAL |
|
| 45 |
- |
|
| 46 |
-// Implementation |
|
| 47 |
-protected: |
|
| 48 |
- |
|
| 49 |
- // Generated message map functions |
|
| 50 |
- //{{AFX_MSG(COptions)
|
|
| 51 |
- //}}AFX_MSG |
|
| 52 |
- DECLARE_MESSAGE_MAP() |
|
| 53 |
-}; |
| 54 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,118 +0,0 @@ |
| 1 |
-// progress.cpp : implementation file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "clamav.h" |
|
| 24 |
- |
|
| 25 |
-#include "progress.h" |
|
| 26 |
- |
|
| 27 |
-#ifdef _DEBUG |
|
| 28 |
-#undef THIS_FILE |
|
| 29 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 30 |
-#endif |
|
| 31 |
- |
|
| 32 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 33 |
-// CProgress dialog |
|
| 34 |
- |
|
| 35 |
- |
|
| 36 |
-CProgress::CProgress(CWnd* pParent) |
|
| 37 |
- : CDialog(CProgress::IDD, pParent) |
|
| 38 |
-{
|
|
| 39 |
- //{{AFX_DATA_INIT(CProgress)
|
|
| 40 |
- m_filename = _T("bar");
|
|
| 41 |
- m_percent = _T("");
|
|
| 42 |
- //}}AFX_DATA_INIT |
|
| 43 |
- stopPressed = FALSE; |
|
| 44 |
-} |
|
| 45 |
- |
|
| 46 |
- |
|
| 47 |
-void CProgress::DoDataExchange(CDataExchange* pDX) |
|
| 48 |
-{
|
|
| 49 |
- CDialog::DoDataExchange(pDX); |
|
| 50 |
- //{{AFX_DATA_MAP(CProgress)
|
|
| 51 |
- DDX_Text(pDX, IDC_FileName, m_filename); |
|
| 52 |
- DDX_Text(pDX, IDC_Percent, m_percent); |
|
| 53 |
- //}}AFX_DATA_MAP |
|
| 54 |
-} |
|
| 55 |
- |
|
| 56 |
-void |
|
| 57 |
-CProgress::SetFilename(const CString& filename) |
|
| 58 |
-{
|
|
| 59 |
- if(stopPressed) |
|
| 60 |
- return; |
|
| 61 |
- |
|
| 62 |
- m_filename = _T(filename); |
|
| 63 |
- |
|
| 64 |
- CStatic *text = (CStatic *)GetDlgItem(IDC_FileName); |
|
| 65 |
- if(text) {
|
|
| 66 |
- text->SetWindowText(filename); |
|
| 67 |
- // text->UpdateWindow(); |
|
| 68 |
- percent = -1; // force a display when it changes |
|
| 69 |
- } else |
|
| 70 |
- AfxMessageBox("Can't find IDC_FileName");
|
|
| 71 |
-} |
|
| 72 |
- |
|
| 73 |
-void |
|
| 74 |
-CProgress::SetPercent(int p) |
|
| 75 |
-{
|
|
| 76 |
- if((p < 0) || (p > 100)) |
|
| 77 |
- return; |
|
| 78 |
- |
|
| 79 |
- if(p == percent) |
|
| 80 |
- return; |
|
| 81 |
- |
|
| 82 |
- char buf[5]; |
|
| 83 |
- sprintf(buf, "%d%%", p); |
|
| 84 |
- |
|
| 85 |
- CStatic *text = (CStatic *)GetDlgItem(IDC_Percent); |
|
| 86 |
- if(text) {
|
|
| 87 |
- text->SetWindowText(buf); |
|
| 88 |
- // text->UpdateWindow(); |
|
| 89 |
- percent = p; |
|
| 90 |
- } else |
|
| 91 |
- AfxMessageBox("Can't find IDC_Percent");
|
|
| 92 |
-} |
|
| 93 |
- |
|
| 94 |
-const BOOL |
|
| 95 |
-CProgress::IsStopPressed(void) |
|
| 96 |
-{
|
|
| 97 |
- return stopPressed; |
|
| 98 |
-} |
|
| 99 |
- |
|
| 100 |
-BEGIN_MESSAGE_MAP(CProgress, CDialog) |
|
| 101 |
- //{{AFX_MSG_MAP(CProgress)
|
|
| 102 |
- ON_BN_CLICKED(IDSTOP, OnStop) |
|
| 103 |
- //}}AFX_MSG_MAP |
|
| 104 |
-END_MESSAGE_MAP() |
|
| 105 |
- |
|
| 106 |
- |
|
| 107 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 108 |
-// CProgress message handlers |
|
| 109 |
- |
|
| 110 |
-void CProgress::OnStop() |
|
| 111 |
-{
|
|
| 112 |
- // TODO: Add your control notification handler code here |
|
| 113 |
- stopPressed = TRUE; |
|
| 114 |
- |
|
| 115 |
- CButton *stopButton = (CButton *)GetDlgItem(IDSTOP); |
|
| 116 |
- if(stopButton) |
|
| 117 |
- stopButton->EnableWindow(FALSE); |
|
| 118 |
-} |
| 119 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,67 +0,0 @@ |
| 1 |
-// progress.h : header file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 23 |
-// CProgress dialog |
|
| 24 |
- |
|
| 25 |
-#ifndef _PROGRESS_H |
|
| 26 |
- |
|
| 27 |
-class CProgress : public CDialog |
|
| 28 |
-{
|
|
| 29 |
-// Construction |
|
| 30 |
-public: |
|
| 31 |
- CProgress(CWnd* pParent = NULL); |
|
| 32 |
- |
|
| 33 |
- void SetFilename(const CString& filename); |
|
| 34 |
- const BOOL IsStopPressed(void); |
|
| 35 |
- void SetPercent(int percent); |
|
| 36 |
- |
|
| 37 |
-// Dialog Data |
|
| 38 |
- //{{AFX_DATA(CProgress)
|
|
| 39 |
- enum { IDD = IDD_PROGRESS };
|
|
| 40 |
- CString m_filename; |
|
| 41 |
- CString m_percent; |
|
| 42 |
- //}}AFX_DATA |
|
| 43 |
- |
|
| 44 |
- |
|
| 45 |
-// Overrides |
|
| 46 |
- // ClassWizard generated virtual function overrides |
|
| 47 |
- //{{AFX_VIRTUAL(CProgress)
|
|
| 48 |
- protected: |
|
| 49 |
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
| 50 |
- //}}AFX_VIRTUAL |
|
| 51 |
- |
|
| 52 |
-// Implementation |
|
| 53 |
-protected: |
|
| 54 |
- |
|
| 55 |
- // Generated message map functions |
|
| 56 |
- //{{AFX_MSG(CProgress)
|
|
| 57 |
- afx_msg void OnStop(); |
|
| 58 |
- //}}AFX_MSG |
|
| 59 |
- DECLARE_MESSAGE_MAP() |
|
| 60 |
- |
|
| 61 |
-private: |
|
| 62 |
- BOOL stopPressed; |
|
| 63 |
- int percent; |
|
| 64 |
-}; |
|
| 65 |
- |
|
| 66 |
-#define _PROGRESS_H |
|
| 67 |
-#endif _PROGRESS_H |
| 68 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,57 +0,0 @@ |
| 1 |
-This is a small Windows client for ClamAV that I hope will turn into |
|
| 2 |
-something bigger with time. |
|
| 3 |
- |
|
| 4 |
-Since it's so early I'm only releasing the Debug version (you'll need to |
|
| 5 |
-install the MFC Debug libary in \windows\system32 if you don't already |
|
| 6 |
-have it) and am yet to release the source code. |
|
| 7 |
- |
|
| 8 |
-You will need a clamd server machine where the clamd daemon is listening |
|
| 9 |
-on port 3310. When firing up the Windows client you will be asked to |
|
| 10 |
-enter in the hostname/IPv4 address of the clamd server. Once you have done |
|
| 11 |
-that simply drag 'n' drop files or folders on to the program, they will |
|
| 12 |
-then be scanned for viruses. |
|
| 13 |
- |
|
| 14 |
-I only have an old copy of Visual C/C++ (version 2), so I can only accept |
|
| 15 |
-patches compatible with that version. |
|
| 16 |
- |
|
| 17 |
-Nigel Horne njh@bandsman.co.uk |
|
| 18 |
- |
|
| 19 |
-29/01/04 |
|
| 20 |
- |
|
| 21 |
- |
|
| 22 |
-23/2/04 |
|
| 23 |
-Version 0.14 |
|
| 24 |
-Handles the ERROR status from clamd |
|
| 25 |
-10/2/04 |
|
| 26 |
-The file mfc30d.dll has been removed. Most Windows distributions will already |
|
| 27 |
-have it - if not please get it from http://www.clamav.net/w32/mfc30d.zip, |
|
| 28 |
-you will need it to run the clamAV windows client |
|
| 29 |
-10/2/04 |
|
| 30 |
-Version 0.13 |
|
| 31 |
-Recovers better from errors during scanning such as timeouts sending to clamd |
|
| 32 |
-9/2/04 |
|
| 33 |
-Version 0.12 |
|
| 34 |
-The port of the clamd server can now be specified. The default value is 3310. |
|
| 35 |
-When running from the CLI use the form server[:port] when specifying the |
|
| 36 |
-server. |
|
| 37 |
-5/2/04 |
|
| 38 |
-Version 0.11 |
|
| 39 |
-Now integrates with WinZip. To configure WinZip8.1 to use ClamAV as it's |
|
| 40 |
-antivirus: |
|
| 41 |
- Open options->configuration->program locations |
|
| 42 |
- In optional virus scanner, enter the full path of clamav.exe |
|
| 43 |
- In the parameters field enter the IP address of the clamd server |
|
| 44 |
-2/2/04 |
|
| 45 |
-Added a command line interface. This allows the client to be used either |
|
| 46 |
-in conjunction with download managers which often ask users to specify |
|
| 47 |
-a CLI to a AV system to scan files that have been downloaded. It also |
|
| 48 |
-allows a full system scan to be done either manually or via the Windows |
|
| 49 |
-scheduler, for example |
|
| 50 |
- clamav.exe 192.168.1.1 eicar.com |
|
| 51 |
- clamav.exe 192.168.1.1 c:\ |
| 54 | 3 |
deleted file mode 100644 |
| ... | ... |
@@ -1,13 +0,0 @@ |
| 1 |
-// |
|
| 2 |
-// CLAMAV.RC2 - resources Microsoft Visual C++ does not edit directly |
|
| 3 |
-// |
|
| 4 |
- |
|
| 5 |
-#ifdef APSTUDIO_INVOKED |
|
| 6 |
- #error this file is not editable by Microsoft Visual C++ |
|
| 7 |
-#endif //APSTUDIO_INVOKED |
|
| 8 |
- |
|
| 9 |
- |
|
| 10 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 11 |
-// Add manually edited resources here... |
|
| 12 |
- |
|
| 13 |
-///////////////////////////////////////////////////////////////////////////// |
| 16 | 3 |
deleted file mode 100644 |
| ... | ... |
@@ -1,47 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- */ |
|
| 19 |
-//{{NO_DEPENDENCIES}}
|
|
| 20 |
-// Microsoft Visual C++ generated include file. |
|
| 21 |
-// Used by clamav.rc |
|
| 22 |
-// |
|
| 23 |
-#define IDD_ABOUTBOX 100 |
|
| 24 |
-#define IDR_MAINFRAME 128 |
|
| 25 |
-#define IDD_SERVERNAME 130 |
|
| 26 |
-#define IDD_PROGRESS 131 |
|
| 27 |
-#define IDD_OPTIONS 132 |
|
| 28 |
-#define IDC_SERVERNAME 1000 |
|
| 29 |
-#define IDSTOP 1001 |
|
| 30 |
-#define IDC_FileName 1002 |
|
| 31 |
-#define IDC_Percent 1003 |
|
| 32 |
-#define IDC_RECURSIVE 1004 |
|
| 33 |
-#define IDC_QUARANTINE 1005 |
|
| 34 |
-#define IDC_SERVERPORT 1006 |
|
| 35 |
-#define ID_SET_OPTIONS 32771 |
|
| 36 |
- |
|
| 37 |
-// Next default values for new objects |
|
| 38 |
-// |
|
| 39 |
-#ifdef APSTUDIO_INVOKED |
|
| 40 |
-#ifndef APSTUDIO_READONLY_SYMBOLS |
|
| 41 |
-#define _APS_3D_CONTROLS 1 |
|
| 42 |
-#define _APS_NEXT_RESOURCE_VALUE 133 |
|
| 43 |
-#define _APS_NEXT_COMMAND_VALUE 32772 |
|
| 44 |
-#define _APS_NEXT_CONTROL_VALUE 1007 |
|
| 45 |
-#define _APS_NEXT_SYMED_VALUE 101 |
|
| 46 |
-#endif |
|
| 47 |
-#endif |
| 48 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-// servername.cpp : implementation file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "stdafx.h" |
|
| 23 |
-#include "clamav.h" |
|
| 24 |
-#include "servername.h" |
|
| 25 |
- |
|
| 26 |
-#ifdef _DEBUG |
|
| 27 |
-#undef THIS_FILE |
|
| 28 |
-static char BASED_CODE THIS_FILE[] = __FILE__; |
|
| 29 |
-#endif |
|
| 30 |
- |
|
| 31 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 32 |
-// ServerName dialog |
|
| 33 |
- |
|
| 34 |
- |
|
| 35 |
-ServerName::ServerName(CWnd* pParent /*=NULL*/) |
|
| 36 |
- : CDialog(ServerName::IDD, pParent) |
|
| 37 |
-{
|
|
| 38 |
- //{{AFX_DATA_INIT(ServerName)
|
|
| 39 |
- m_serverName = _T("");
|
|
| 40 |
- m_port = DEFAULT_PORT; |
|
| 41 |
- //}}AFX_DATA_INIT |
|
| 42 |
-} |
|
| 43 |
- |
|
| 44 |
- |
|
| 45 |
-void ServerName::DoDataExchange(CDataExchange* pDX) |
|
| 46 |
-{
|
|
| 47 |
- CDialog::DoDataExchange(pDX); |
|
| 48 |
- //{{AFX_DATA_MAP(ServerName)
|
|
| 49 |
- DDX_Text(pDX, IDC_SERVERNAME, m_serverName); |
|
| 50 |
- DDV_MaxChars(pDX, m_serverName, 20); |
|
| 51 |
- DDX_Text(pDX, IDC_SERVERPORT, m_port); |
|
| 52 |
- DDV_MinMaxUInt(pDX, m_port, 1, 65535); |
|
| 53 |
- //}}AFX_DATA_MAP |
|
| 54 |
-} |
|
| 55 |
- |
|
| 56 |
- |
|
| 57 |
-BEGIN_MESSAGE_MAP(ServerName, CDialog) |
|
| 58 |
- //{{AFX_MSG_MAP(ServerName)
|
|
| 59 |
- // NOTE: the ClassWizard will add message map macros here |
|
| 60 |
- //}}AFX_MSG_MAP |
|
| 61 |
-END_MESSAGE_MAP() |
|
| 62 |
- |
|
| 63 |
- |
|
| 64 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 65 |
-// ServerName message handlers |
| 66 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,56 +0,0 @@ |
| 1 |
-// servername.h : header file |
|
| 2 |
-// |
|
| 3 |
- |
|
| 4 |
-/* |
|
| 5 |
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk> |
|
| 6 |
- * |
|
| 7 |
- * This program is free software; you can redistribute it and/or modify |
|
| 8 |
- * it under the terms of the GNU General Public License as published by |
|
| 9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 10 |
- * (at your option) any later version. |
|
| 11 |
- * |
|
| 12 |
- * This program is distributed in the hope that it will be useful, |
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 15 |
- * GNU General Public License for more details. |
|
| 16 |
- * |
|
| 17 |
- * You should have received a copy of the GNU General Public License |
|
| 18 |
- * along with this program; if not, write to the Free Software |
|
| 19 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 20 |
- * MA 02110-1301, USA. |
|
| 21 |
- */ |
|
| 22 |
-#include "resource.h" // main symbols |
|
| 23 |
- |
|
| 24 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 25 |
-// ServerName dialog |
|
| 26 |
- |
|
| 27 |
-class ServerName : public CDialog |
|
| 28 |
-{
|
|
| 29 |
-// Construction |
|
| 30 |
-public: |
|
| 31 |
- ServerName(CWnd* pParent = NULL); // standard constructor |
|
| 32 |
- |
|
| 33 |
-// Dialog Data |
|
| 34 |
- //{{AFX_DATA(ServerName)
|
|
| 35 |
- enum { IDD = IDD_SERVERNAME };
|
|
| 36 |
- CString m_serverName; |
|
| 37 |
- UINT m_port; |
|
| 38 |
- //}}AFX_DATA |
|
| 39 |
- |
|
| 40 |
- |
|
| 41 |
-// Overrides |
|
| 42 |
- // ClassWizard generated virtual function overrides |
|
| 43 |
- //{{AFX_VIRTUAL(ServerName)
|
|
| 44 |
- protected: |
|
| 45 |
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
| 46 |
- //}}AFX_VIRTUAL |
|
| 47 |
- |
|
| 48 |
-// Implementation |
|
| 49 |
-protected: |
|
| 50 |
- |
|
| 51 |
- // Generated message map functions |
|
| 52 |
- //{{AFX_MSG(ServerName)
|
|
| 53 |
- // NOTE: the ClassWizard will add member functions here |
|
| 54 |
- //}}AFX_MSG |
|
| 55 |
- DECLARE_MESSAGE_MAP() |
|
| 56 |
-}; |
| 57 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,265 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="clamconf" |
|
| 6 |
- ProjectGUID="{0AA6E5C4-591E-4244-9E1C-FDEA4BBE39F9}"
|
|
| 7 |
- RootNamespace="clamconf" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="1" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..";"$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav"" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;CL_NOTHREADS" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- TreatWChar_tAsBuiltInType="false" |
|
| 52 |
- UsePrecompiledHeader="0" |
|
| 53 |
- WarningLevel="4" |
|
| 54 |
- Detect64BitPortabilityProblems="true" |
|
| 55 |
- DebugInformationFormat="4" |
|
| 56 |
- CompileAs="1" |
|
| 57 |
- /> |
|
| 58 |
- <Tool |
|
| 59 |
- Name="VCManagedResourceCompilerTool" |
|
| 60 |
- /> |
|
| 61 |
- <Tool |
|
| 62 |
- Name="VCResourceCompilerTool" |
|
| 63 |
- /> |
|
| 64 |
- <Tool |
|
| 65 |
- Name="VCPreLinkEventTool" |
|
| 66 |
- /> |
|
| 67 |
- <Tool |
|
| 68 |
- Name="VCLinkerTool" |
|
| 69 |
- UseUnicodeResponseFiles="false" |
|
| 70 |
- AdditionalOptions="/SAFESEH" |
|
| 71 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 72 |
- LinkIncremental="2" |
|
| 73 |
- GenerateDebugInformation="true" |
|
| 74 |
- SubSystem="1" |
|
| 75 |
- TargetMachine="1" |
|
| 76 |
- /> |
|
| 77 |
- <Tool |
|
| 78 |
- Name="VCALinkTool" |
|
| 79 |
- /> |
|
| 80 |
- <Tool |
|
| 81 |
- Name="VCManifestTool" |
|
| 82 |
- UseUnicodeResponseFiles="false" |
|
| 83 |
- UseFAT32Workaround="true" |
|
| 84 |
- /> |
|
| 85 |
- <Tool |
|
| 86 |
- Name="VCXDCMakeTool" |
|
| 87 |
- /> |
|
| 88 |
- <Tool |
|
| 89 |
- Name="VCBscMakeTool" |
|
| 90 |
- /> |
|
| 91 |
- <Tool |
|
| 92 |
- Name="VCFxCopTool" |
|
| 93 |
- /> |
|
| 94 |
- <Tool |
|
| 95 |
- Name="VCAppVerifierTool" |
|
| 96 |
- /> |
|
| 97 |
- <Tool |
|
| 98 |
- Name="VCWebDeploymentTool" |
|
| 99 |
- /> |
|
| 100 |
- <Tool |
|
| 101 |
- Name="VCPostBuildEventTool" |
|
| 102 |
- /> |
|
| 103 |
- </Configuration> |
|
| 104 |
- <Configuration |
|
| 105 |
- Name="Release|Win32" |
|
| 106 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 107 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 108 |
- ConfigurationType="1" |
|
| 109 |
- CharacterSet="0" |
|
| 110 |
- WholeProgramOptimization="1" |
|
| 111 |
- > |
|
| 112 |
- <Tool |
|
| 113 |
- Name="VCPreBuildEventTool" |
|
| 114 |
- /> |
|
| 115 |
- <Tool |
|
| 116 |
- Name="VCCustomBuildTool" |
|
| 117 |
- /> |
|
| 118 |
- <Tool |
|
| 119 |
- Name="VCXMLDataGeneratorTool" |
|
| 120 |
- /> |
|
| 121 |
- <Tool |
|
| 122 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 123 |
- /> |
|
| 124 |
- <Tool |
|
| 125 |
- Name="VCMIDLTool" |
|
| 126 |
- /> |
|
| 127 |
- <Tool |
|
| 128 |
- Name="VCCLCompilerTool" |
|
| 129 |
- UseUnicodeResponseFiles="false" |
|
| 130 |
- AdditionalIncludeDirectories=""$(ProjectDir)..";"$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav"" |
|
| 131 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;CL_NOTHREADS" |
|
| 132 |
- StringPooling="true" |
|
| 133 |
- ExceptionHandling="0" |
|
| 134 |
- RuntimeLibrary="2" |
|
| 135 |
- TreatWChar_tAsBuiltInType="false" |
|
| 136 |
- UsePrecompiledHeader="0" |
|
| 137 |
- WarningLevel="4" |
|
| 138 |
- Detect64BitPortabilityProblems="true" |
|
| 139 |
- DebugInformationFormat="3" |
|
| 140 |
- CompileAs="1" |
|
| 141 |
- /> |
|
| 142 |
- <Tool |
|
| 143 |
- Name="VCManagedResourceCompilerTool" |
|
| 144 |
- /> |
|
| 145 |
- <Tool |
|
| 146 |
- Name="VCResourceCompilerTool" |
|
| 147 |
- /> |
|
| 148 |
- <Tool |
|
| 149 |
- Name="VCPreLinkEventTool" |
|
| 150 |
- /> |
|
| 151 |
- <Tool |
|
| 152 |
- Name="VCLinkerTool" |
|
| 153 |
- UseUnicodeResponseFiles="false" |
|
| 154 |
- AdditionalOptions="/SAFESEH" |
|
| 155 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 156 |
- LinkIncremental="1" |
|
| 157 |
- GenerateDebugInformation="true" |
|
| 158 |
- SubSystem="1" |
|
| 159 |
- OptimizeReferences="2" |
|
| 160 |
- EnableCOMDATFolding="2" |
|
| 161 |
- TargetMachine="1" |
|
| 162 |
- /> |
|
| 163 |
- <Tool |
|
| 164 |
- Name="VCALinkTool" |
|
| 165 |
- /> |
|
| 166 |
- <Tool |
|
| 167 |
- Name="VCManifestTool" |
|
| 168 |
- UseUnicodeResponseFiles="false" |
|
| 169 |
- UseFAT32Workaround="true" |
|
| 170 |
- /> |
|
| 171 |
- <Tool |
|
| 172 |
- Name="VCXDCMakeTool" |
|
| 173 |
- /> |
|
| 174 |
- <Tool |
|
| 175 |
- Name="VCBscMakeTool" |
|
| 176 |
- /> |
|
| 177 |
- <Tool |
|
| 178 |
- Name="VCFxCopTool" |
|
| 179 |
- /> |
|
| 180 |
- <Tool |
|
| 181 |
- Name="VCAppVerifierTool" |
|
| 182 |
- /> |
|
| 183 |
- <Tool |
|
| 184 |
- Name="VCWebDeploymentTool" |
|
| 185 |
- /> |
|
| 186 |
- <Tool |
|
| 187 |
- Name="VCPostBuildEventTool" |
|
| 188 |
- /> |
|
| 189 |
- </Configuration> |
|
| 190 |
- </Configurations> |
|
| 191 |
- <References> |
|
| 192 |
- </References> |
|
| 193 |
- <Files> |
|
| 194 |
- <Filter |
|
| 195 |
- Name="Source Files" |
|
| 196 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 197 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 198 |
- > |
|
| 199 |
- <File |
|
| 200 |
- RelativePath="..\shared\cfgparser.c" |
|
| 201 |
- > |
|
| 202 |
- </File> |
|
| 203 |
- <File |
|
| 204 |
- RelativePath=".\clamconf.c" |
|
| 205 |
- > |
|
| 206 |
- <FileConfiguration |
|
| 207 |
- Name="Debug|Win32" |
|
| 208 |
- > |
|
| 209 |
- <Tool |
|
| 210 |
- Name="VCCLCompilerTool" |
|
| 211 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 212 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 213 |
- /> |
|
| 214 |
- </FileConfiguration> |
|
| 215 |
- <FileConfiguration |
|
| 216 |
- Name="Release|Win32" |
|
| 217 |
- > |
|
| 218 |
- <Tool |
|
| 219 |
- Name="VCCLCompilerTool" |
|
| 220 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 221 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 222 |
- /> |
|
| 223 |
- </FileConfiguration> |
|
| 224 |
- </File> |
|
| 225 |
- <File |
|
| 226 |
- RelativePath="..\shared\getopt.c" |
|
| 227 |
- > |
|
| 228 |
- </File> |
|
| 229 |
- <File |
|
| 230 |
- RelativePath="..\shared\misc.c" |
|
| 231 |
- > |
|
| 232 |
- </File> |
|
| 233 |
- </Filter> |
|
| 234 |
- <Filter |
|
| 235 |
- Name="Header Files" |
|
| 236 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 237 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 238 |
- > |
|
| 239 |
- <File |
|
| 240 |
- RelativePath=".\resource.h" |
|
| 241 |
- > |
|
| 242 |
- </File> |
|
| 243 |
- </Filter> |
|
| 244 |
- <Filter |
|
| 245 |
- Name="Resource Files" |
|
| 246 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 247 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 248 |
- > |
|
| 249 |
- <File |
|
| 250 |
- RelativePath=".\clamconf.rc" |
|
| 251 |
- > |
|
| 252 |
- </File> |
|
| 253 |
- <File |
|
| 254 |
- RelativePath=".\icon1.ico" |
|
| 255 |
- > |
|
| 256 |
- </File> |
|
| 257 |
- </Filter> |
|
| 258 |
- <File |
|
| 259 |
- RelativePath=".\ReadMe.txt" |
|
| 260 |
- > |
|
| 261 |
- </File> |
|
| 262 |
- </Files> |
|
| 263 |
- <Globals> |
|
| 264 |
- </Globals> |
|
| 265 |
-</VisualStudioProject> |
| 266 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(TargetPath)" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(TargetPath)" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// clamconf.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,15 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 10 |
-#include <stdio.h> |
|
| 11 |
-#include <tchar.h> |
|
| 12 |
- |
|
| 13 |
- |
|
| 14 |
- |
|
| 15 |
-// TODO: reference additional headers your program requires here |
| 16 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,381 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="clamd" |
|
| 6 |
- ProjectGUID="{F4366EC9-06FC-446B-B3EF-4D26C6860810}"
|
|
| 7 |
- RootNamespace="clamd" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="1" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_USE_32BIT_TIME_T" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- TreatWChar_tAsBuiltInType="false" |
|
| 52 |
- UsePrecompiledHeader="0" |
|
| 53 |
- WarningLevel="4" |
|
| 54 |
- Detect64BitPortabilityProblems="true" |
|
| 55 |
- DebugInformationFormat="4" |
|
| 56 |
- CompileAs="1" |
|
| 57 |
- /> |
|
| 58 |
- <Tool |
|
| 59 |
- Name="VCManagedResourceCompilerTool" |
|
| 60 |
- /> |
|
| 61 |
- <Tool |
|
| 62 |
- Name="VCResourceCompilerTool" |
|
| 63 |
- /> |
|
| 64 |
- <Tool |
|
| 65 |
- Name="VCPreLinkEventTool" |
|
| 66 |
- /> |
|
| 67 |
- <Tool |
|
| 68 |
- Name="VCLinkerTool" |
|
| 69 |
- UseUnicodeResponseFiles="false" |
|
| 70 |
- AdditionalOptions="/SAFESEH" |
|
| 71 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 72 |
- Version="0.92" |
|
| 73 |
- LinkIncremental="2" |
|
| 74 |
- GenerateManifest="true" |
|
| 75 |
- DelayLoadDLLs="" |
|
| 76 |
- GenerateDebugInformation="true" |
|
| 77 |
- SubSystem="1" |
|
| 78 |
- TargetMachine="1" |
|
| 79 |
- CLRThreadAttribute="0" |
|
| 80 |
- /> |
|
| 81 |
- <Tool |
|
| 82 |
- Name="VCALinkTool" |
|
| 83 |
- /> |
|
| 84 |
- <Tool |
|
| 85 |
- Name="VCManifestTool" |
|
| 86 |
- UseUnicodeResponseFiles="false" |
|
| 87 |
- UseFAT32Workaround="true" |
|
| 88 |
- /> |
|
| 89 |
- <Tool |
|
| 90 |
- Name="VCXDCMakeTool" |
|
| 91 |
- /> |
|
| 92 |
- <Tool |
|
| 93 |
- Name="VCBscMakeTool" |
|
| 94 |
- /> |
|
| 95 |
- <Tool |
|
| 96 |
- Name="VCFxCopTool" |
|
| 97 |
- /> |
|
| 98 |
- <Tool |
|
| 99 |
- Name="VCAppVerifierTool" |
|
| 100 |
- /> |
|
| 101 |
- <Tool |
|
| 102 |
- Name="VCWebDeploymentTool" |
|
| 103 |
- /> |
|
| 104 |
- <Tool |
|
| 105 |
- Name="VCPostBuildEventTool" |
|
| 106 |
- /> |
|
| 107 |
- </Configuration> |
|
| 108 |
- <Configuration |
|
| 109 |
- Name="Release|Win32" |
|
| 110 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 111 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 112 |
- ConfigurationType="1" |
|
| 113 |
- CharacterSet="0" |
|
| 114 |
- WholeProgramOptimization="1" |
|
| 115 |
- > |
|
| 116 |
- <Tool |
|
| 117 |
- Name="VCPreBuildEventTool" |
|
| 118 |
- /> |
|
| 119 |
- <Tool |
|
| 120 |
- Name="VCCustomBuildTool" |
|
| 121 |
- /> |
|
| 122 |
- <Tool |
|
| 123 |
- Name="VCXMLDataGeneratorTool" |
|
| 124 |
- /> |
|
| 125 |
- <Tool |
|
| 126 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 127 |
- /> |
|
| 128 |
- <Tool |
|
| 129 |
- Name="VCMIDLTool" |
|
| 130 |
- /> |
|
| 131 |
- <Tool |
|
| 132 |
- Name="VCCLCompilerTool" |
|
| 133 |
- UseUnicodeResponseFiles="false" |
|
| 134 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 135 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_USE_32BIT_TIME_T" |
|
| 136 |
- StringPooling="true" |
|
| 137 |
- ExceptionHandling="0" |
|
| 138 |
- RuntimeLibrary="2" |
|
| 139 |
- TreatWChar_tAsBuiltInType="false" |
|
| 140 |
- UsePrecompiledHeader="0" |
|
| 141 |
- WarningLevel="4" |
|
| 142 |
- Detect64BitPortabilityProblems="true" |
|
| 143 |
- DebugInformationFormat="3" |
|
| 144 |
- CompileAs="1" |
|
| 145 |
- /> |
|
| 146 |
- <Tool |
|
| 147 |
- Name="VCManagedResourceCompilerTool" |
|
| 148 |
- /> |
|
| 149 |
- <Tool |
|
| 150 |
- Name="VCResourceCompilerTool" |
|
| 151 |
- /> |
|
| 152 |
- <Tool |
|
| 153 |
- Name="VCPreLinkEventTool" |
|
| 154 |
- /> |
|
| 155 |
- <Tool |
|
| 156 |
- Name="VCLinkerTool" |
|
| 157 |
- UseUnicodeResponseFiles="false" |
|
| 158 |
- AdditionalOptions="/SAFESEH" |
|
| 159 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 160 |
- Version="0.92" |
|
| 161 |
- LinkIncremental="1" |
|
| 162 |
- GenerateManifest="true" |
|
| 163 |
- DelayLoadDLLs="" |
|
| 164 |
- GenerateDebugInformation="true" |
|
| 165 |
- SubSystem="1" |
|
| 166 |
- OptimizeReferences="2" |
|
| 167 |
- EnableCOMDATFolding="2" |
|
| 168 |
- TargetMachine="1" |
|
| 169 |
- CLRThreadAttribute="0" |
|
| 170 |
- /> |
|
| 171 |
- <Tool |
|
| 172 |
- Name="VCALinkTool" |
|
| 173 |
- /> |
|
| 174 |
- <Tool |
|
| 175 |
- Name="VCManifestTool" |
|
| 176 |
- UseUnicodeResponseFiles="false" |
|
| 177 |
- UseFAT32Workaround="true" |
|
| 178 |
- /> |
|
| 179 |
- <Tool |
|
| 180 |
- Name="VCXDCMakeTool" |
|
| 181 |
- /> |
|
| 182 |
- <Tool |
|
| 183 |
- Name="VCBscMakeTool" |
|
| 184 |
- /> |
|
| 185 |
- <Tool |
|
| 186 |
- Name="VCFxCopTool" |
|
| 187 |
- /> |
|
| 188 |
- <Tool |
|
| 189 |
- Name="VCAppVerifierTool" |
|
| 190 |
- /> |
|
| 191 |
- <Tool |
|
| 192 |
- Name="VCWebDeploymentTool" |
|
| 193 |
- /> |
|
| 194 |
- <Tool |
|
| 195 |
- Name="VCPostBuildEventTool" |
|
| 196 |
- /> |
|
| 197 |
- </Configuration> |
|
| 198 |
- </Configurations> |
|
| 199 |
- <References> |
|
| 200 |
- </References> |
|
| 201 |
- <Files> |
|
| 202 |
- <Filter |
|
| 203 |
- Name="Source Files" |
|
| 204 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 205 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 206 |
- > |
|
| 207 |
- <File |
|
| 208 |
- RelativePath="..\shared\cfgparser.c" |
|
| 209 |
- > |
|
| 210 |
- </File> |
|
| 211 |
- <File |
|
| 212 |
- RelativePath=".\clamd.c" |
|
| 213 |
- > |
|
| 214 |
- <FileConfiguration |
|
| 215 |
- Name="Debug|Win32" |
|
| 216 |
- > |
|
| 217 |
- <Tool |
|
| 218 |
- Name="VCCLCompilerTool" |
|
| 219 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 220 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 221 |
- /> |
|
| 222 |
- </FileConfiguration> |
|
| 223 |
- <FileConfiguration |
|
| 224 |
- Name="Release|Win32" |
|
| 225 |
- > |
|
| 226 |
- <Tool |
|
| 227 |
- Name="VCCLCompilerTool" |
|
| 228 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 229 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 230 |
- /> |
|
| 231 |
- </FileConfiguration> |
|
| 232 |
- </File> |
|
| 233 |
- <File |
|
| 234 |
- RelativePath=".\clamuko.c" |
|
| 235 |
- > |
|
| 236 |
- </File> |
|
| 237 |
- <File |
|
| 238 |
- RelativePath=".\dazukoio.c" |
|
| 239 |
- > |
|
| 240 |
- </File> |
|
| 241 |
- <File |
|
| 242 |
- RelativePath=".\dazukoio_compat12.c" |
|
| 243 |
- > |
|
| 244 |
- </File> |
|
| 245 |
- <File |
|
| 246 |
- RelativePath="..\shared\getopt.c" |
|
| 247 |
- > |
|
| 248 |
- </File> |
|
| 249 |
- <File |
|
| 250 |
- RelativePath=".\localserver.c" |
|
| 251 |
- > |
|
| 252 |
- </File> |
|
| 253 |
- <File |
|
| 254 |
- RelativePath="..\shared\misc.c" |
|
| 255 |
- > |
|
| 256 |
- </File> |
|
| 257 |
- <File |
|
| 258 |
- RelativePath="..\shared\network.c" |
|
| 259 |
- > |
|
| 260 |
- </File> |
|
| 261 |
- <File |
|
| 262 |
- RelativePath="..\shared\options.c" |
|
| 263 |
- > |
|
| 264 |
- </File> |
|
| 265 |
- <File |
|
| 266 |
- RelativePath=".\others.c" |
|
| 267 |
- > |
|
| 268 |
- </File> |
|
| 269 |
- <File |
|
| 270 |
- RelativePath="..\shared\output.c" |
|
| 271 |
- > |
|
| 272 |
- </File> |
|
| 273 |
- <File |
|
| 274 |
- RelativePath=".\scanner.c" |
|
| 275 |
- > |
|
| 276 |
- </File> |
|
| 277 |
- <File |
|
| 278 |
- RelativePath=".\server-th.c" |
|
| 279 |
- > |
|
| 280 |
- </File> |
|
| 281 |
- <File |
|
| 282 |
- RelativePath=".\session.c" |
|
| 283 |
- > |
|
| 284 |
- </File> |
|
| 285 |
- <File |
|
| 286 |
- RelativePath=".\tcpserver.c" |
|
| 287 |
- > |
|
| 288 |
- </File> |
|
| 289 |
- <File |
|
| 290 |
- RelativePath=".\thrmgr.c" |
|
| 291 |
- > |
|
| 292 |
- </File> |
|
| 293 |
- </Filter> |
|
| 294 |
- <Filter |
|
| 295 |
- Name="Header Files" |
|
| 296 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 297 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 298 |
- > |
|
| 299 |
- <File |
|
| 300 |
- RelativePath=".\clamuko.h" |
|
| 301 |
- > |
|
| 302 |
- </File> |
|
| 303 |
- <File |
|
| 304 |
- RelativePath=".\dazuko_xp.h" |
|
| 305 |
- > |
|
| 306 |
- </File> |
|
| 307 |
- <File |
|
| 308 |
- RelativePath=".\dazukoio.h" |
|
| 309 |
- > |
|
| 310 |
- </File> |
|
| 311 |
- <File |
|
| 312 |
- RelativePath=".\dazukoio_compat12.h" |
|
| 313 |
- > |
|
| 314 |
- </File> |
|
| 315 |
- <File |
|
| 316 |
- RelativePath=".\dazukoio_xp.h" |
|
| 317 |
- > |
|
| 318 |
- </File> |
|
| 319 |
- <File |
|
| 320 |
- RelativePath=".\localserver.h" |
|
| 321 |
- > |
|
| 322 |
- </File> |
|
| 323 |
- <File |
|
| 324 |
- RelativePath=".\others.h" |
|
| 325 |
- > |
|
| 326 |
- </File> |
|
| 327 |
- <File |
|
| 328 |
- RelativePath=".\resource.h" |
|
| 329 |
- > |
|
| 330 |
- </File> |
|
| 331 |
- <File |
|
| 332 |
- RelativePath=".\resource1.h" |
|
| 333 |
- > |
|
| 334 |
- </File> |
|
| 335 |
- <File |
|
| 336 |
- RelativePath=".\resource2.h" |
|
| 337 |
- > |
|
| 338 |
- </File> |
|
| 339 |
- <File |
|
| 340 |
- RelativePath=".\scanner.h" |
|
| 341 |
- > |
|
| 342 |
- </File> |
|
| 343 |
- <File |
|
| 344 |
- RelativePath=".\server.h" |
|
| 345 |
- > |
|
| 346 |
- </File> |
|
| 347 |
- <File |
|
| 348 |
- RelativePath=".\session.h" |
|
| 349 |
- > |
|
| 350 |
- </File> |
|
| 351 |
- <File |
|
| 352 |
- RelativePath=".\shared.h" |
|
| 353 |
- > |
|
| 354 |
- </File> |
|
| 355 |
- <File |
|
| 356 |
- RelativePath=".\tcpserver.h" |
|
| 357 |
- > |
|
| 358 |
- </File> |
|
| 359 |
- <File |
|
| 360 |
- RelativePath=".\thrmgr.h" |
|
| 361 |
- > |
|
| 362 |
- </File> |
|
| 363 |
- </Filter> |
|
| 364 |
- <Filter |
|
| 365 |
- Name="Resource Files" |
|
| 366 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 367 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 368 |
- > |
|
| 369 |
- <File |
|
| 370 |
- RelativePath="..\libclamav\eventlog.rc" |
|
| 371 |
- > |
|
| 372 |
- </File> |
|
| 373 |
- </Filter> |
|
| 374 |
- <File |
|
| 375 |
- RelativePath=".\ReadMe.txt" |
|
| 376 |
- > |
|
| 377 |
- </File> |
|
| 378 |
- </Files> |
|
| 379 |
- <Globals> |
|
| 380 |
- </Globals> |
|
| 381 |
-</VisualStudioProject> |
| 382 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(TargetPath)" |
|
| 13 |
- WorkingDirectory="C:\Program Files\clamAV" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="0" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(TargetPath)" |
|
| 41 |
- WorkingDirectory="C:\Program Files\clamAV" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="0" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// clamd.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,15 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 10 |
-#include <stdio.h> |
|
| 11 |
-#include <tchar.h> |
|
| 12 |
- |
|
| 13 |
- |
|
| 14 |
- |
|
| 15 |
-// TODO: reference additional headers your program requires here |
| 16 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,277 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="clamdscan" |
|
| 6 |
- ProjectGUID="{EC04092E-8906-4CED-AC2D-B72EC9A4CCD2}"
|
|
| 7 |
- RootNamespace="clamdscan" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="1" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\clamscan";"$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_USE_32BIT_TIME_T" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- TreatWChar_tAsBuiltInType="false" |
|
| 52 |
- UsePrecompiledHeader="0" |
|
| 53 |
- WarningLevel="4" |
|
| 54 |
- Detect64BitPortabilityProblems="true" |
|
| 55 |
- DebugInformationFormat="4" |
|
| 56 |
- CompileAs="1" |
|
| 57 |
- /> |
|
| 58 |
- <Tool |
|
| 59 |
- Name="VCManagedResourceCompilerTool" |
|
| 60 |
- /> |
|
| 61 |
- <Tool |
|
| 62 |
- Name="VCResourceCompilerTool" |
|
| 63 |
- /> |
|
| 64 |
- <Tool |
|
| 65 |
- Name="VCPreLinkEventTool" |
|
| 66 |
- /> |
|
| 67 |
- <Tool |
|
| 68 |
- Name="VCLinkerTool" |
|
| 69 |
- UseUnicodeResponseFiles="false" |
|
| 70 |
- AdditionalOptions="/SAFESEH" |
|
| 71 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 72 |
- Version="0.0.1" |
|
| 73 |
- LinkIncremental="2" |
|
| 74 |
- GenerateDebugInformation="true" |
|
| 75 |
- SubSystem="1" |
|
| 76 |
- TargetMachine="1" |
|
| 77 |
- CLRThreadAttribute="0" |
|
| 78 |
- /> |
|
| 79 |
- <Tool |
|
| 80 |
- Name="VCALinkTool" |
|
| 81 |
- /> |
|
| 82 |
- <Tool |
|
| 83 |
- Name="VCManifestTool" |
|
| 84 |
- UseUnicodeResponseFiles="false" |
|
| 85 |
- UseFAT32Workaround="true" |
|
| 86 |
- /> |
|
| 87 |
- <Tool |
|
| 88 |
- Name="VCXDCMakeTool" |
|
| 89 |
- /> |
|
| 90 |
- <Tool |
|
| 91 |
- Name="VCBscMakeTool" |
|
| 92 |
- /> |
|
| 93 |
- <Tool |
|
| 94 |
- Name="VCFxCopTool" |
|
| 95 |
- /> |
|
| 96 |
- <Tool |
|
| 97 |
- Name="VCAppVerifierTool" |
|
| 98 |
- /> |
|
| 99 |
- <Tool |
|
| 100 |
- Name="VCWebDeploymentTool" |
|
| 101 |
- /> |
|
| 102 |
- <Tool |
|
| 103 |
- Name="VCPostBuildEventTool" |
|
| 104 |
- /> |
|
| 105 |
- </Configuration> |
|
| 106 |
- <Configuration |
|
| 107 |
- Name="Release|Win32" |
|
| 108 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 109 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 110 |
- ConfigurationType="1" |
|
| 111 |
- CharacterSet="0" |
|
| 112 |
- WholeProgramOptimization="1" |
|
| 113 |
- > |
|
| 114 |
- <Tool |
|
| 115 |
- Name="VCPreBuildEventTool" |
|
| 116 |
- /> |
|
| 117 |
- <Tool |
|
| 118 |
- Name="VCCustomBuildTool" |
|
| 119 |
- /> |
|
| 120 |
- <Tool |
|
| 121 |
- Name="VCXMLDataGeneratorTool" |
|
| 122 |
- /> |
|
| 123 |
- <Tool |
|
| 124 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 125 |
- /> |
|
| 126 |
- <Tool |
|
| 127 |
- Name="VCMIDLTool" |
|
| 128 |
- /> |
|
| 129 |
- <Tool |
|
| 130 |
- Name="VCCLCompilerTool" |
|
| 131 |
- UseUnicodeResponseFiles="false" |
|
| 132 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\clamscan";"$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 133 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_USE_32BIT_TIME_T" |
|
| 134 |
- StringPooling="true" |
|
| 135 |
- ExceptionHandling="0" |
|
| 136 |
- RuntimeLibrary="2" |
|
| 137 |
- TreatWChar_tAsBuiltInType="false" |
|
| 138 |
- UsePrecompiledHeader="0" |
|
| 139 |
- WarningLevel="4" |
|
| 140 |
- Detect64BitPortabilityProblems="true" |
|
| 141 |
- DebugInformationFormat="3" |
|
| 142 |
- CompileAs="1" |
|
| 143 |
- /> |
|
| 144 |
- <Tool |
|
| 145 |
- Name="VCManagedResourceCompilerTool" |
|
| 146 |
- /> |
|
| 147 |
- <Tool |
|
| 148 |
- Name="VCResourceCompilerTool" |
|
| 149 |
- /> |
|
| 150 |
- <Tool |
|
| 151 |
- Name="VCPreLinkEventTool" |
|
| 152 |
- /> |
|
| 153 |
- <Tool |
|
| 154 |
- Name="VCLinkerTool" |
|
| 155 |
- UseUnicodeResponseFiles="false" |
|
| 156 |
- AdditionalOptions="/SAFESEH" |
|
| 157 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib" |
|
| 158 |
- Version="0.0.1" |
|
| 159 |
- LinkIncremental="1" |
|
| 160 |
- GenerateDebugInformation="true" |
|
| 161 |
- SubSystem="1" |
|
| 162 |
- OptimizeReferences="2" |
|
| 163 |
- EnableCOMDATFolding="2" |
|
| 164 |
- TargetMachine="1" |
|
| 165 |
- CLRThreadAttribute="0" |
|
| 166 |
- /> |
|
| 167 |
- <Tool |
|
| 168 |
- Name="VCALinkTool" |
|
| 169 |
- /> |
|
| 170 |
- <Tool |
|
| 171 |
- Name="VCManifestTool" |
|
| 172 |
- UseUnicodeResponseFiles="false" |
|
| 173 |
- UseFAT32Workaround="true" |
|
| 174 |
- /> |
|
| 175 |
- <Tool |
|
| 176 |
- Name="VCXDCMakeTool" |
|
| 177 |
- /> |
|
| 178 |
- <Tool |
|
| 179 |
- Name="VCBscMakeTool" |
|
| 180 |
- /> |
|
| 181 |
- <Tool |
|
| 182 |
- Name="VCFxCopTool" |
|
| 183 |
- /> |
|
| 184 |
- <Tool |
|
| 185 |
- Name="VCAppVerifierTool" |
|
| 186 |
- /> |
|
| 187 |
- <Tool |
|
| 188 |
- Name="VCWebDeploymentTool" |
|
| 189 |
- /> |
|
| 190 |
- <Tool |
|
| 191 |
- Name="VCPostBuildEventTool" |
|
| 192 |
- /> |
|
| 193 |
- </Configuration> |
|
| 194 |
- </Configurations> |
|
| 195 |
- <References> |
|
| 196 |
- </References> |
|
| 197 |
- <Files> |
|
| 198 |
- <Filter |
|
| 199 |
- Name="Source Files" |
|
| 200 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 201 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 202 |
- > |
|
| 203 |
- <File |
|
| 204 |
- RelativePath="..\shared\cfgparser.c" |
|
| 205 |
- > |
|
| 206 |
- </File> |
|
| 207 |
- <File |
|
| 208 |
- RelativePath=".\clamdscan.c" |
|
| 209 |
- > |
|
| 210 |
- <FileConfiguration |
|
| 211 |
- Name="Debug|Win32" |
|
| 212 |
- > |
|
| 213 |
- <Tool |
|
| 214 |
- Name="VCCLCompilerTool" |
|
| 215 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 216 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 217 |
- /> |
|
| 218 |
- </FileConfiguration> |
|
| 219 |
- <FileConfiguration |
|
| 220 |
- Name="Release|Win32" |
|
| 221 |
- > |
|
| 222 |
- <Tool |
|
| 223 |
- Name="VCCLCompilerTool" |
|
| 224 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 225 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 226 |
- /> |
|
| 227 |
- </FileConfiguration> |
|
| 228 |
- </File> |
|
| 229 |
- <File |
|
| 230 |
- RelativePath=".\client.c" |
|
| 231 |
- > |
|
| 232 |
- </File> |
|
| 233 |
- <File |
|
| 234 |
- RelativePath="..\shared\getopt.c" |
|
| 235 |
- > |
|
| 236 |
- </File> |
|
| 237 |
- <File |
|
| 238 |
- RelativePath="..\shared\misc.c" |
|
| 239 |
- > |
|
| 240 |
- </File> |
|
| 241 |
- <File |
|
| 242 |
- RelativePath="..\shared\options.c" |
|
| 243 |
- > |
|
| 244 |
- </File> |
|
| 245 |
- <File |
|
| 246 |
- RelativePath="..\shared\output.c" |
|
| 247 |
- > |
|
| 248 |
- </File> |
|
| 249 |
- </Filter> |
|
| 250 |
- <Filter |
|
| 251 |
- Name="Header Files" |
|
| 252 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 253 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 254 |
- > |
|
| 255 |
- <File |
|
| 256 |
- RelativePath=".\client.h" |
|
| 257 |
- > |
|
| 258 |
- </File> |
|
| 259 |
- <File |
|
| 260 |
- RelativePath=".\defaults.h" |
|
| 261 |
- > |
|
| 262 |
- </File> |
|
| 263 |
- </Filter> |
|
| 264 |
- <Filter |
|
| 265 |
- Name="Resource Files" |
|
| 266 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 267 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 268 |
- > |
|
| 269 |
- </Filter> |
|
| 270 |
- <File |
|
| 271 |
- RelativePath=".\ReadMe.txt" |
|
| 272 |
- > |
|
| 273 |
- </File> |
|
| 274 |
- </Files> |
|
| 275 |
- <Globals> |
|
| 276 |
- </Globals> |
|
| 277 |
-</VisualStudioProject> |
| 278 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(TargetPath)" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(TargetPath)" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// clamdscan.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,15 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 10 |
-#include <stdio.h> |
|
| 11 |
-#include <tchar.h> |
|
| 12 |
- |
|
| 13 |
- |
|
| 14 |
- |
|
| 15 |
-// TODO: reference additional headers your program requires here |
| 16 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,352 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="clamscan" |
|
| 6 |
- ProjectGUID="{D65C58D2-FA9B-4D48-BC87-E5B73500C40F}"
|
|
| 7 |
- RootNamespace="clamscan" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="1" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir)..";"$(ProjectDir)..\libclamav\regex"" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_DEBUG;_USE_32BIT_TIME_T" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- StructMemberAlignment="0" |
|
| 52 |
- DisableLanguageExtensions="false" |
|
| 53 |
- TreatWChar_tAsBuiltInType="false" |
|
| 54 |
- UsePrecompiledHeader="0" |
|
| 55 |
- WarningLevel="4" |
|
| 56 |
- Detect64BitPortabilityProblems="true" |
|
| 57 |
- DebugInformationFormat="4" |
|
| 58 |
- CompileAs="1" |
|
| 59 |
- /> |
|
| 60 |
- <Tool |
|
| 61 |
- Name="VCManagedResourceCompilerTool" |
|
| 62 |
- /> |
|
| 63 |
- <Tool |
|
| 64 |
- Name="VCResourceCompilerTool" |
|
| 65 |
- /> |
|
| 66 |
- <Tool |
|
| 67 |
- Name="VCPreLinkEventTool" |
|
| 68 |
- /> |
|
| 69 |
- <Tool |
|
| 70 |
- Name="VCLinkerTool" |
|
| 71 |
- UseUnicodeResponseFiles="false" |
|
| 72 |
- AdditionalOptions="/SAFESEH" |
|
| 73 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib " |
|
| 74 |
- OutputFile="$(OutDir)\$(ProjectName).exe" |
|
| 75 |
- Version="0.1" |
|
| 76 |
- LinkIncremental="2" |
|
| 77 |
- AdditionalLibraryDirectories="" |
|
| 78 |
- GenerateManifest="true" |
|
| 79 |
- DelayLoadDLLs="" |
|
| 80 |
- GenerateDebugInformation="true" |
|
| 81 |
- SubSystem="1" |
|
| 82 |
- TargetMachine="1" |
|
| 83 |
- CLRThreadAttribute="0" |
|
| 84 |
- /> |
|
| 85 |
- <Tool |
|
| 86 |
- Name="VCALinkTool" |
|
| 87 |
- /> |
|
| 88 |
- <Tool |
|
| 89 |
- Name="VCManifestTool" |
|
| 90 |
- UseUnicodeResponseFiles="false" |
|
| 91 |
- UseFAT32Workaround="true" |
|
| 92 |
- /> |
|
| 93 |
- <Tool |
|
| 94 |
- Name="VCXDCMakeTool" |
|
| 95 |
- /> |
|
| 96 |
- <Tool |
|
| 97 |
- Name="VCBscMakeTool" |
|
| 98 |
- /> |
|
| 99 |
- <Tool |
|
| 100 |
- Name="VCFxCopTool" |
|
| 101 |
- /> |
|
| 102 |
- <Tool |
|
| 103 |
- Name="VCAppVerifierTool" |
|
| 104 |
- /> |
|
| 105 |
- <Tool |
|
| 106 |
- Name="VCWebDeploymentTool" |
|
| 107 |
- /> |
|
| 108 |
- <Tool |
|
| 109 |
- Name="VCPostBuildEventTool" |
|
| 110 |
- /> |
|
| 111 |
- </Configuration> |
|
| 112 |
- <Configuration |
|
| 113 |
- Name="Release|Win32" |
|
| 114 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 115 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 116 |
- ConfigurationType="1" |
|
| 117 |
- CharacterSet="0" |
|
| 118 |
- WholeProgramOptimization="1" |
|
| 119 |
- > |
|
| 120 |
- <Tool |
|
| 121 |
- Name="VCPreBuildEventTool" |
|
| 122 |
- /> |
|
| 123 |
- <Tool |
|
| 124 |
- Name="VCCustomBuildTool" |
|
| 125 |
- /> |
|
| 126 |
- <Tool |
|
| 127 |
- Name="VCXMLDataGeneratorTool" |
|
| 128 |
- /> |
|
| 129 |
- <Tool |
|
| 130 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 131 |
- /> |
|
| 132 |
- <Tool |
|
| 133 |
- Name="VCMIDLTool" |
|
| 134 |
- /> |
|
| 135 |
- <Tool |
|
| 136 |
- Name="VCCLCompilerTool" |
|
| 137 |
- UseUnicodeResponseFiles="false" |
|
| 138 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir)..";"$(ProjectDir)..\libclamav\regex"" |
|
| 139 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_USE_32BIT_TIME_T" |
|
| 140 |
- StringPooling="true" |
|
| 141 |
- ExceptionHandling="0" |
|
| 142 |
- RuntimeLibrary="2" |
|
| 143 |
- StructMemberAlignment="3" |
|
| 144 |
- DisableLanguageExtensions="false" |
|
| 145 |
- TreatWChar_tAsBuiltInType="false" |
|
| 146 |
- UsePrecompiledHeader="0" |
|
| 147 |
- WarningLevel="4" |
|
| 148 |
- Detect64BitPortabilityProblems="true" |
|
| 149 |
- DebugInformationFormat="3" |
|
| 150 |
- CompileAs="1" |
|
| 151 |
- /> |
|
| 152 |
- <Tool |
|
| 153 |
- Name="VCManagedResourceCompilerTool" |
|
| 154 |
- /> |
|
| 155 |
- <Tool |
|
| 156 |
- Name="VCResourceCompilerTool" |
|
| 157 |
- /> |
|
| 158 |
- <Tool |
|
| 159 |
- Name="VCPreLinkEventTool" |
|
| 160 |
- /> |
|
| 161 |
- <Tool |
|
| 162 |
- Name="VCLinkerTool" |
|
| 163 |
- UseUnicodeResponseFiles="false" |
|
| 164 |
- AdditionalOptions="/SAFESEH" |
|
| 165 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" ws2_32.lib " |
|
| 166 |
- LinkIncremental="1" |
|
| 167 |
- GenerateDebugInformation="true" |
|
| 168 |
- SubSystem="1" |
|
| 169 |
- OptimizeReferences="2" |
|
| 170 |
- EnableCOMDATFolding="2" |
|
| 171 |
- TargetMachine="1" |
|
| 172 |
- CLRThreadAttribute="0" |
|
| 173 |
- /> |
|
| 174 |
- <Tool |
|
| 175 |
- Name="VCALinkTool" |
|
| 176 |
- /> |
|
| 177 |
- <Tool |
|
| 178 |
- Name="VCManifestTool" |
|
| 179 |
- UseUnicodeResponseFiles="false" |
|
| 180 |
- UseFAT32Workaround="true" |
|
| 181 |
- /> |
|
| 182 |
- <Tool |
|
| 183 |
- Name="VCXDCMakeTool" |
|
| 184 |
- /> |
|
| 185 |
- <Tool |
|
| 186 |
- Name="VCBscMakeTool" |
|
| 187 |
- /> |
|
| 188 |
- <Tool |
|
| 189 |
- Name="VCFxCopTool" |
|
| 190 |
- /> |
|
| 191 |
- <Tool |
|
| 192 |
- Name="VCAppVerifierTool" |
|
| 193 |
- /> |
|
| 194 |
- <Tool |
|
| 195 |
- Name="VCWebDeploymentTool" |
|
| 196 |
- /> |
|
| 197 |
- <Tool |
|
| 198 |
- Name="VCPostBuildEventTool" |
|
| 199 |
- /> |
|
| 200 |
- </Configuration> |
|
| 201 |
- </Configurations> |
|
| 202 |
- <References> |
|
| 203 |
- </References> |
|
| 204 |
- <Files> |
|
| 205 |
- <Filter |
|
| 206 |
- Name="Source Files" |
|
| 207 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 208 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 209 |
- > |
|
| 210 |
- <File |
|
| 211 |
- RelativePath="..\shared\cfgparser.c" |
|
| 212 |
- > |
|
| 213 |
- </File> |
|
| 214 |
- <File |
|
| 215 |
- RelativePath=".\clamscan.c" |
|
| 216 |
- > |
|
| 217 |
- <FileConfiguration |
|
| 218 |
- Name="Debug|Win32" |
|
| 219 |
- > |
|
| 220 |
- <Tool |
|
| 221 |
- Name="VCCLCompilerTool" |
|
| 222 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 223 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 224 |
- /> |
|
| 225 |
- </FileConfiguration> |
|
| 226 |
- <FileConfiguration |
|
| 227 |
- Name="Release|Win32" |
|
| 228 |
- > |
|
| 229 |
- <Tool |
|
| 230 |
- Name="VCCLCompilerTool" |
|
| 231 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 232 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 233 |
- /> |
|
| 234 |
- </FileConfiguration> |
|
| 235 |
- </File> |
|
| 236 |
- <File |
|
| 237 |
- RelativePath="..\shared\getopt.c" |
|
| 238 |
- > |
|
| 239 |
- </File> |
|
| 240 |
- <File |
|
| 241 |
- RelativePath=".\manager.c" |
|
| 242 |
- > |
|
| 243 |
- </File> |
|
| 244 |
- <File |
|
| 245 |
- RelativePath="..\shared\misc.c" |
|
| 246 |
- > |
|
| 247 |
- </File> |
|
| 248 |
- <File |
|
| 249 |
- RelativePath="..\shared\options.c" |
|
| 250 |
- > |
|
| 251 |
- </File> |
|
| 252 |
- <File |
|
| 253 |
- RelativePath=".\others.c" |
|
| 254 |
- > |
|
| 255 |
- </File> |
|
| 256 |
- <File |
|
| 257 |
- RelativePath="..\shared\output.c" |
|
| 258 |
- > |
|
| 259 |
- </File> |
|
| 260 |
- <File |
|
| 261 |
- RelativePath=".\treewalk.c" |
|
| 262 |
- > |
|
| 263 |
- </File> |
|
| 264 |
- </Filter> |
|
| 265 |
- <Filter |
|
| 266 |
- Name="Header Files" |
|
| 267 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 268 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 269 |
- > |
|
| 270 |
- <File |
|
| 271 |
- RelativePath="..\shared\cfgparser.h" |
|
| 272 |
- > |
|
| 273 |
- </File> |
|
| 274 |
- <File |
|
| 275 |
- RelativePath=".\clamscan_opt.h" |
|
| 276 |
- > |
|
| 277 |
- </File> |
|
| 278 |
- <File |
|
| 279 |
- RelativePath=".\defaults.h" |
|
| 280 |
- > |
|
| 281 |
- </File> |
|
| 282 |
- <File |
|
| 283 |
- RelativePath="..\shared\getopt.h" |
|
| 284 |
- > |
|
| 285 |
- </File> |
|
| 286 |
- <File |
|
| 287 |
- RelativePath=".\global.h" |
|
| 288 |
- > |
|
| 289 |
- </File> |
|
| 290 |
- <File |
|
| 291 |
- RelativePath=".\manager.h" |
|
| 292 |
- > |
|
| 293 |
- </File> |
|
| 294 |
- <File |
|
| 295 |
- RelativePath="..\shared\memory.h" |
|
| 296 |
- > |
|
| 297 |
- </File> |
|
| 298 |
- <File |
|
| 299 |
- RelativePath="..\shared\misc.h" |
|
| 300 |
- > |
|
| 301 |
- </File> |
|
| 302 |
- <File |
|
| 303 |
- RelativePath="..\shared\options.h" |
|
| 304 |
- > |
|
| 305 |
- </File> |
|
| 306 |
- <File |
|
| 307 |
- RelativePath=".\others.h" |
|
| 308 |
- > |
|
| 309 |
- </File> |
|
| 310 |
- <File |
|
| 311 |
- RelativePath="..\shared\output.h" |
|
| 312 |
- > |
|
| 313 |
- </File> |
|
| 314 |
- <File |
|
| 315 |
- RelativePath=".\resource.h" |
|
| 316 |
- > |
|
| 317 |
- </File> |
|
| 318 |
- <File |
|
| 319 |
- RelativePath=".\resource1.h" |
|
| 320 |
- > |
|
| 321 |
- </File> |
|
| 322 |
- <File |
|
| 323 |
- RelativePath=".\shared.h" |
|
| 324 |
- > |
|
| 325 |
- </File> |
|
| 326 |
- <File |
|
| 327 |
- RelativePath=".\treewalk.h" |
|
| 328 |
- > |
|
| 329 |
- </File> |
|
| 330 |
- </Filter> |
|
| 331 |
- <Filter |
|
| 332 |
- Name="Resource Files" |
|
| 333 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 334 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 335 |
- > |
|
| 336 |
- <File |
|
| 337 |
- RelativePath=".\clamdscan.rc" |
|
| 338 |
- > |
|
| 339 |
- </File> |
|
| 340 |
- <File |
|
| 341 |
- RelativePath=".\icon1.ico" |
|
| 342 |
- > |
|
| 343 |
- </File> |
|
| 344 |
- </Filter> |
|
| 345 |
- <File |
|
| 346 |
- RelativePath=".\ReadMe.txt" |
|
| 347 |
- > |
|
| 348 |
- </File> |
|
| 349 |
- </Files> |
|
| 350 |
- <Globals> |
|
| 351 |
- </Globals> |
|
| 352 |
-</VisualStudioProject> |
| 353 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(TargetPath)" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="--tempdir=d:\temp -r -i d:\clamav-test" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="0" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(TargetPath)" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="--tempdir=d:\temp -r -i d:\" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="0" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// clamscan.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,15 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 10 |
-#include <stdio.h> |
|
| 11 |
-#include <tchar.h> |
|
| 12 |
- |
|
| 13 |
- |
|
| 14 |
- |
|
| 15 |
-// TODO: reference additional headers your program requires here |
| 16 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,72 +0,0 @@ |
| 1 |
-// Microsoft Visual C++ generated resource script. |
|
| 2 |
-// |
|
| 3 |
-#include "resource.h" |
|
| 4 |
- |
|
| 5 |
-#define APSTUDIO_READONLY_SYMBOLS |
|
| 6 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 7 |
-// |
|
| 8 |
-// Generated from the TEXTINCLUDE 2 resource. |
|
| 9 |
-// |
|
| 10 |
-#include "afxres.h" |
|
| 11 |
- |
|
| 12 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 13 |
-#undef APSTUDIO_READONLY_SYMBOLS |
|
| 14 |
- |
|
| 15 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 16 |
-// English (U.K.) resources |
|
| 17 |
- |
|
| 18 |
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG) |
|
| 19 |
-#ifdef _WIN32 |
|
| 20 |
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK |
|
| 21 |
-#pragma code_page(1252) |
|
| 22 |
-#endif //_WIN32 |
|
| 23 |
- |
|
| 24 |
-#ifdef APSTUDIO_INVOKED |
|
| 25 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 26 |
-// |
|
| 27 |
-// TEXTINCLUDE |
|
| 28 |
-// |
|
| 29 |
- |
|
| 30 |
-1 TEXTINCLUDE |
|
| 31 |
-BEGIN |
|
| 32 |
- "resource.h\0" |
|
| 33 |
-END |
|
| 34 |
- |
|
| 35 |
-2 TEXTINCLUDE |
|
| 36 |
-BEGIN |
|
| 37 |
- "#include ""afxres.h""\r\n" |
|
| 38 |
- "\0" |
|
| 39 |
-END |
|
| 40 |
- |
|
| 41 |
-3 TEXTINCLUDE |
|
| 42 |
-BEGIN |
|
| 43 |
- "\r\n" |
|
| 44 |
- "\0" |
|
| 45 |
-END |
|
| 46 |
- |
|
| 47 |
-#endif // APSTUDIO_INVOKED |
|
| 48 |
- |
|
| 49 |
- |
|
| 50 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 51 |
-// |
|
| 52 |
-// Icon |
|
| 53 |
-// |
|
| 54 |
- |
|
| 55 |
-// Icon with lowest ID value placed first to ensure application icon |
|
| 56 |
-// remains consistent on all systems. |
|
| 57 |
-IDI_ICON1 ICON "icon1.ico" |
|
| 58 |
-#endif // English (U.K.) resources |
|
| 59 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 60 |
- |
|
| 61 |
- |
|
| 62 |
- |
|
| 63 |
-#ifndef APSTUDIO_INVOKED |
|
| 64 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 65 |
-// |
|
| 66 |
-// Generated from the TEXTINCLUDE 3 resource. |
|
| 67 |
-// |
|
| 68 |
- |
|
| 69 |
- |
|
| 70 |
-///////////////////////////////////////////////////////////////////////////// |
|
| 71 |
-#endif // not APSTUDIO_INVOKED |
|
| 72 |
- |
| 73 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,335 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="freshclam" |
|
| 6 |
- ProjectGUID="{EDA439D9-1896-444B-871D-C78D372AAC43}"
|
|
| 7 |
- RootNamespace="freshclam" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="1" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;CL_NOTHREADS;_USE_32BIT_TIME_T" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- UsePrecompiledHeader="0" |
|
| 52 |
- WarningLevel="4" |
|
| 53 |
- Detect64BitPortabilityProblems="true" |
|
| 54 |
- DebugInformationFormat="4" |
|
| 55 |
- CompileAs="1" |
|
| 56 |
- /> |
|
| 57 |
- <Tool |
|
| 58 |
- Name="VCManagedResourceCompilerTool" |
|
| 59 |
- /> |
|
| 60 |
- <Tool |
|
| 61 |
- Name="VCResourceCompilerTool" |
|
| 62 |
- /> |
|
| 63 |
- <Tool |
|
| 64 |
- Name="VCPreLinkEventTool" |
|
| 65 |
- /> |
|
| 66 |
- <Tool |
|
| 67 |
- Name="VCLinkerTool" |
|
| 68 |
- UseUnicodeResponseFiles="false" |
|
| 69 |
- AdditionalOptions="/SAFESEH" |
|
| 70 |
- AdditionalDependencies="dnsapi.lib ws2_32.lib "$(TargetDir)\libclamav.lib"" |
|
| 71 |
- Version="0.92" |
|
| 72 |
- LinkIncremental="2" |
|
| 73 |
- GenerateDebugInformation="true" |
|
| 74 |
- SubSystem="1" |
|
| 75 |
- TargetMachine="1" |
|
| 76 |
- CLRThreadAttribute="0" |
|
| 77 |
- /> |
|
| 78 |
- <Tool |
|
| 79 |
- Name="VCALinkTool" |
|
| 80 |
- /> |
|
| 81 |
- <Tool |
|
| 82 |
- Name="VCManifestTool" |
|
| 83 |
- UseUnicodeResponseFiles="false" |
|
| 84 |
- UseFAT32Workaround="true" |
|
| 85 |
- /> |
|
| 86 |
- <Tool |
|
| 87 |
- Name="VCXDCMakeTool" |
|
| 88 |
- /> |
|
| 89 |
- <Tool |
|
| 90 |
- Name="VCBscMakeTool" |
|
| 91 |
- /> |
|
| 92 |
- <Tool |
|
| 93 |
- Name="VCFxCopTool" |
|
| 94 |
- /> |
|
| 95 |
- <Tool |
|
| 96 |
- Name="VCAppVerifierTool" |
|
| 97 |
- /> |
|
| 98 |
- <Tool |
|
| 99 |
- Name="VCWebDeploymentTool" |
|
| 100 |
- /> |
|
| 101 |
- <Tool |
|
| 102 |
- Name="VCPostBuildEventTool" |
|
| 103 |
- /> |
|
| 104 |
- </Configuration> |
|
| 105 |
- <Configuration |
|
| 106 |
- Name="Release|Win32" |
|
| 107 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 108 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 109 |
- ConfigurationType="1" |
|
| 110 |
- CharacterSet="1" |
|
| 111 |
- WholeProgramOptimization="1" |
|
| 112 |
- > |
|
| 113 |
- <Tool |
|
| 114 |
- Name="VCPreBuildEventTool" |
|
| 115 |
- /> |
|
| 116 |
- <Tool |
|
| 117 |
- Name="VCCustomBuildTool" |
|
| 118 |
- /> |
|
| 119 |
- <Tool |
|
| 120 |
- Name="VCXMLDataGeneratorTool" |
|
| 121 |
- /> |
|
| 122 |
- <Tool |
|
| 123 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 124 |
- /> |
|
| 125 |
- <Tool |
|
| 126 |
- Name="VCMIDLTool" |
|
| 127 |
- /> |
|
| 128 |
- <Tool |
|
| 129 |
- Name="VCCLCompilerTool" |
|
| 130 |
- UseUnicodeResponseFiles="false" |
|
| 131 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 132 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;CL_NOTHREADS;_USE_32BIT_TIME_T" |
|
| 133 |
- StringPooling="true" |
|
| 134 |
- ExceptionHandling="0" |
|
| 135 |
- RuntimeLibrary="2" |
|
| 136 |
- UsePrecompiledHeader="0" |
|
| 137 |
- WarningLevel="4" |
|
| 138 |
- Detect64BitPortabilityProblems="true" |
|
| 139 |
- DebugInformationFormat="3" |
|
| 140 |
- CompileAs="1" |
|
| 141 |
- /> |
|
| 142 |
- <Tool |
|
| 143 |
- Name="VCManagedResourceCompilerTool" |
|
| 144 |
- /> |
|
| 145 |
- <Tool |
|
| 146 |
- Name="VCResourceCompilerTool" |
|
| 147 |
- /> |
|
| 148 |
- <Tool |
|
| 149 |
- Name="VCPreLinkEventTool" |
|
| 150 |
- /> |
|
| 151 |
- <Tool |
|
| 152 |
- Name="VCLinkerTool" |
|
| 153 |
- UseUnicodeResponseFiles="false" |
|
| 154 |
- AdditionalOptions="/SAFESEH" |
|
| 155 |
- AdditionalDependencies="dnsapi.lib ws2_32.lib "$(TargetDir)\libclamav.lib"" |
|
| 156 |
- Version="0.92" |
|
| 157 |
- LinkIncremental="1" |
|
| 158 |
- GenerateDebugInformation="true" |
|
| 159 |
- SubSystem="1" |
|
| 160 |
- OptimizeReferences="2" |
|
| 161 |
- EnableCOMDATFolding="2" |
|
| 162 |
- TargetMachine="1" |
|
| 163 |
- CLRThreadAttribute="0" |
|
| 164 |
- /> |
|
| 165 |
- <Tool |
|
| 166 |
- Name="VCALinkTool" |
|
| 167 |
- /> |
|
| 168 |
- <Tool |
|
| 169 |
- Name="VCManifestTool" |
|
| 170 |
- UseUnicodeResponseFiles="false" |
|
| 171 |
- UseFAT32Workaround="true" |
|
| 172 |
- /> |
|
| 173 |
- <Tool |
|
| 174 |
- Name="VCXDCMakeTool" |
|
| 175 |
- /> |
|
| 176 |
- <Tool |
|
| 177 |
- Name="VCBscMakeTool" |
|
| 178 |
- /> |
|
| 179 |
- <Tool |
|
| 180 |
- Name="VCFxCopTool" |
|
| 181 |
- /> |
|
| 182 |
- <Tool |
|
| 183 |
- Name="VCAppVerifierTool" |
|
| 184 |
- /> |
|
| 185 |
- <Tool |
|
| 186 |
- Name="VCWebDeploymentTool" |
|
| 187 |
- /> |
|
| 188 |
- <Tool |
|
| 189 |
- Name="VCPostBuildEventTool" |
|
| 190 |
- /> |
|
| 191 |
- </Configuration> |
|
| 192 |
- </Configurations> |
|
| 193 |
- <References> |
|
| 194 |
- </References> |
|
| 195 |
- <Files> |
|
| 196 |
- <Filter |
|
| 197 |
- Name="Source Files" |
|
| 198 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 199 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 200 |
- > |
|
| 201 |
- <File |
|
| 202 |
- RelativePath="..\shared\cdiff.c" |
|
| 203 |
- > |
|
| 204 |
- </File> |
|
| 205 |
- <File |
|
| 206 |
- RelativePath="..\shared\cfgparser.c" |
|
| 207 |
- > |
|
| 208 |
- </File> |
|
| 209 |
- <File |
|
| 210 |
- RelativePath=".\dns.c" |
|
| 211 |
- > |
|
| 212 |
- </File> |
|
| 213 |
- <File |
|
| 214 |
- RelativePath=".\execute.c" |
|
| 215 |
- > |
|
| 216 |
- </File> |
|
| 217 |
- <File |
|
| 218 |
- RelativePath=".\freshclam.c" |
|
| 219 |
- > |
|
| 220 |
- <FileConfiguration |
|
| 221 |
- Name="Debug|Win32" |
|
| 222 |
- > |
|
| 223 |
- <Tool |
|
| 224 |
- Name="VCCLCompilerTool" |
|
| 225 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 226 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 227 |
- /> |
|
| 228 |
- </FileConfiguration> |
|
| 229 |
- <FileConfiguration |
|
| 230 |
- Name="Release|Win32" |
|
| 231 |
- > |
|
| 232 |
- <Tool |
|
| 233 |
- Name="VCCLCompilerTool" |
|
| 234 |
- ObjectFile="$(IntDir)\$(InputName)1.obj" |
|
| 235 |
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" |
|
| 236 |
- /> |
|
| 237 |
- </FileConfiguration> |
|
| 238 |
- </File> |
|
| 239 |
- <File |
|
| 240 |
- RelativePath="..\shared\getopt.c" |
|
| 241 |
- > |
|
| 242 |
- </File> |
|
| 243 |
- <File |
|
| 244 |
- RelativePath=".\manager.c" |
|
| 245 |
- > |
|
| 246 |
- </File> |
|
| 247 |
- <File |
|
| 248 |
- RelativePath=".\mirman.c" |
|
| 249 |
- > |
|
| 250 |
- </File> |
|
| 251 |
- <File |
|
| 252 |
- RelativePath="..\shared\misc.c" |
|
| 253 |
- > |
|
| 254 |
- </File> |
|
| 255 |
- <File |
|
| 256 |
- RelativePath=".\nonblock.c" |
|
| 257 |
- > |
|
| 258 |
- </File> |
|
| 259 |
- <File |
|
| 260 |
- RelativePath=".\notify.c" |
|
| 261 |
- > |
|
| 262 |
- </File> |
|
| 263 |
- <File |
|
| 264 |
- RelativePath="..\shared\options.c" |
|
| 265 |
- > |
|
| 266 |
- </File> |
|
| 267 |
- <File |
|
| 268 |
- RelativePath="..\shared\output.c" |
|
| 269 |
- > |
|
| 270 |
- </File> |
|
| 271 |
- <File |
|
| 272 |
- RelativePath="..\shared\tar.c" |
|
| 273 |
- > |
|
| 274 |
- </File> |
|
| 275 |
- </Filter> |
|
| 276 |
- <Filter |
|
| 277 |
- Name="Header Files" |
|
| 278 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 279 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 280 |
- > |
|
| 281 |
- <File |
|
| 282 |
- RelativePath=".\dns.h" |
|
| 283 |
- > |
|
| 284 |
- </File> |
|
| 285 |
- <File |
|
| 286 |
- RelativePath=".\execute.h" |
|
| 287 |
- > |
|
| 288 |
- </File> |
|
| 289 |
- <File |
|
| 290 |
- RelativePath=".\manager.h" |
|
| 291 |
- > |
|
| 292 |
- </File> |
|
| 293 |
- <File |
|
| 294 |
- RelativePath=".\mirman.h" |
|
| 295 |
- > |
|
| 296 |
- </File> |
|
| 297 |
- <File |
|
| 298 |
- RelativePath=".\nonblock.h" |
|
| 299 |
- > |
|
| 300 |
- </File> |
|
| 301 |
- <File |
|
| 302 |
- RelativePath=".\notify.h" |
|
| 303 |
- > |
|
| 304 |
- </File> |
|
| 305 |
- <File |
|
| 306 |
- RelativePath=".\resource.h" |
|
| 307 |
- > |
|
| 308 |
- </File> |
|
| 309 |
- <File |
|
| 310 |
- RelativePath="..\shared\tar.h" |
|
| 311 |
- > |
|
| 312 |
- </File> |
|
| 313 |
- </Filter> |
|
| 314 |
- <Filter |
|
| 315 |
- Name="Resource Files" |
|
| 316 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 317 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 318 |
- > |
|
| 319 |
- <File |
|
| 320 |
- RelativePath=".\freshclam.rc" |
|
| 321 |
- > |
|
| 322 |
- </File> |
|
| 323 |
- <File |
|
| 324 |
- RelativePath="..\libclamav\clamAV.ico" |
|
| 325 |
- > |
|
| 326 |
- </File> |
|
| 327 |
- </Filter> |
|
| 328 |
- <File |
|
| 329 |
- RelativePath=".\ReadMe.txt" |
|
| 330 |
- > |
|
| 331 |
- </File> |
|
| 332 |
- </Files> |
|
| 333 |
- <Globals> |
|
| 334 |
- </Globals> |
|
| 335 |
-</VisualStudioProject> |
| 336 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(TargetPath)" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(TargetPath)" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 68 | 3 |
deleted file mode 100755 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-//{{NO_DEPENDENCIES}}
|
|
| 2 |
-// Microsoft Visual C++ generated include file. |
|
| 3 |
-// Used by freshclam.rc |
|
| 4 |
-// |
|
| 5 |
-#define IDI_ICON1 101 |
|
| 6 |
- |
|
| 7 |
-// Next default values for new objects |
|
| 8 |
-// |
|
| 9 |
-#ifdef APSTUDIO_INVOKED |
|
| 10 |
-#ifndef APSTUDIO_READONLY_SYMBOLS |
|
| 11 |
-#define _APS_NEXT_RESOURCE_VALUE 102 |
|
| 12 |
-#define _APS_NEXT_COMMAND_VALUE 40001 |
|
| 13 |
-#define _APS_NEXT_CONTROL_VALUE 1001 |
|
| 14 |
-#define _APS_NEXT_SYMED_VALUE 101 |
|
| 15 |
-#endif |
|
| 16 |
-#endif |
| 17 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// freshclam.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,15 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 10 |
-#include <stdio.h> |
|
| 11 |
-#include <tchar.h> |
|
| 12 |
- |
|
| 13 |
- |
|
| 14 |
- |
|
| 15 |
-// TODO: reference additional headers your program requires here |
| 16 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,391 +0,0 @@ |
| 1 |
-/* clamav-config.h. Generated from clamav-config.h.in by configure. */ |
|
| 2 |
-/* clamav-config.h.in. Generated from configure.in by autoheader. */ |
|
| 3 |
- |
|
| 4 |
-/* enable bind8 compatibility */ |
|
| 5 |
-/* #undef BIND_8_COMPAT */ |
|
| 6 |
- |
|
| 7 |
-/* Define if your snprintf is busted */ |
|
| 8 |
-#define BROKEN_SNPRINTF 1 /* Use the one in snprintf.h */ |
|
| 9 |
- |
|
| 10 |
-/* "build clamd" */ |
|
| 11 |
-#define BUILD_CLAMD 1 |
|
| 12 |
- |
|
| 13 |
-/* name of the clamav group */ |
|
| 14 |
-#define CLAMAVGROUP "clamav" |
|
| 15 |
- |
|
| 16 |
-/* name of the clamav user */ |
|
| 17 |
-#define CLAMAVUSER "clamav" |
|
| 18 |
- |
|
| 19 |
-/* enable clamuko */ |
|
| 20 |
-/* #undef CLAMUKO */ |
|
| 21 |
- |
|
| 22 |
-/* enable debugging */ |
|
| 23 |
-/* #undef CL_DEBUG */ |
|
| 24 |
- |
|
| 25 |
-/* enable experimental code */ |
|
| 26 |
-/*#undef CL_EXPERIMENTAL*/ |
|
| 27 |
- |
|
| 28 |
-/* thread safe */ |
|
| 29 |
-#define CL_THREAD_SAFE 1 |
|
| 30 |
- |
|
| 31 |
-/* where to look for the config file */ |
|
| 32 |
-/* Note: on Windows, the installer can change this! */ |
|
| 33 |
-#define CONFDIR "C:\\Program Files\\clamAV\\conf" |
|
| 34 |
- |
|
| 35 |
-/* os is aix */ |
|
| 36 |
-/* #undef C_AIX */ |
|
| 37 |
- |
|
| 38 |
-/* os is beos */ |
|
| 39 |
-/* #undef C_BEOS */ |
|
| 40 |
- |
|
| 41 |
-/* Increase thread stack size. */ |
|
| 42 |
-/* #undef C_BIGSTACK */ |
|
| 43 |
- |
|
| 44 |
-/* os is bsd flavor */ |
|
| 45 |
-/* #undef C_BSD */ |
|
| 46 |
- |
|
| 47 |
-/* os is cygwin */ |
|
| 48 |
-/* #undef C_CYGWIN 1 */ |
|
| 49 |
- |
|
| 50 |
-/* os is darwin */ |
|
| 51 |
-/* #undef C_DARWIN */ |
|
| 52 |
- |
|
| 53 |
-/* os is hpux */ |
|
| 54 |
-/* #undef C_HPUX */ |
|
| 55 |
- |
|
| 56 |
-/* os is interix */ |
|
| 57 |
-/* #undef C_INTERIX */ |
|
| 58 |
- |
|
| 59 |
-/* os is irix */ |
|
| 60 |
-/* #undef C_IRIX */ |
|
| 61 |
- |
|
| 62 |
-/* target is linux */ |
|
| 63 |
-/* #undef C_LINUX */ |
|
| 64 |
- |
|
| 65 |
-/* os is OS/2 */ |
|
| 66 |
-/* #undef C_OS2 */ |
|
| 67 |
- |
|
| 68 |
-/* os is QNX 6.x.x */ |
|
| 69 |
-/* #undef C_QNX6 */ |
|
| 70 |
- |
|
| 71 |
-/* os is solaris */ |
|
| 72 |
-/* #undef C_SOLARIS */ |
|
| 73 |
- |
|
| 74 |
-/* os is windows */ |
|
| 75 |
-#ifdef _MSC_VER |
|
| 76 |
-#define C_WINDOWS 1 |
|
| 77 |
-#endif |
|
| 78 |
- |
|
| 79 |
-/* Path to virus database directory. */ |
|
| 80 |
-/* Note: on Windows, the installer can change this! */ |
|
| 81 |
-#define DATADIR "C:\\Program Files\\clamAV\\data" |
|
| 82 |
- |
|
| 83 |
-/* Name of the main database */ |
|
| 84 |
-#define DB1NAME "main.cvd" |
|
| 85 |
- |
|
| 86 |
-/* Name of the daily database */ |
|
| 87 |
-#define DB2NAME "daily.cvd" |
|
| 88 |
- |
|
| 89 |
-/* "default FD_SETSIZE value" */ |
|
| 90 |
-#define DEFAULT_FD_SETSIZE 64 |
|
| 91 |
- |
|
| 92 |
-/* link with libclamunrar (non-GPL, see COPYING.unrar) */ |
|
| 93 |
-#define ENABLE_UNRAR 1 |
|
| 94 |
- |
|
| 95 |
-/* file i/o buffer size */ |
|
| 96 |
-#define FILEBUFF 8192 |
|
| 97 |
- |
|
| 98 |
-/* enable workaround for broken DNS servers */ |
|
| 99 |
-/* #undef FRESHCLAM_DNS_FIX */ |
|
| 100 |
- |
|
| 101 |
-/* use "Cache-Control: no-cache" in freshclam */ |
|
| 102 |
-/* #undef FRESHCLAM_NO_CACHE */ |
|
| 103 |
- |
|
| 104 |
-/* access rights in msghdr */ |
|
| 105 |
-/* #undef HAVE_ACCRIGHTS_IN_MSGHDR */ |
|
| 106 |
- |
|
| 107 |
-/* attrib aligned */ |
|
| 108 |
-#define HAVE_ATTRIB_ALIGNED 1 |
|
| 109 |
- |
|
| 110 |
-/* attrib packed */ |
|
| 111 |
-/* #define HAVE_ATTRIB_PACKED 1 */ |
|
| 112 |
- |
|
| 113 |
-/* have bzip2 */ |
|
| 114 |
-/* #define HAVE_BZLIB_H 1 */ |
|
| 115 |
- |
|
| 116 |
-/* ancillary data style fd pass */ |
|
| 117 |
-/* #undef HAVE_CONTROL_IN_MSGHDR 1 */ |
|
| 118 |
- |
|
| 119 |
-#define NO_STRTOK_R |
|
| 120 |
- |
|
| 121 |
-/* Define to 1 if you have the `ctime_r' function. */ |
|
| 122 |
-#define HAVE_CTIME_R 1 |
|
| 123 |
- |
|
| 124 |
-/* ctime_r takes 2 arguments */ |
|
| 125 |
-#define HAVE_CTIME_R_2 1 |
|
| 126 |
- |
|
| 127 |
-/* ctime_r takes 3 arguments */ |
|
| 128 |
-/* #undef HAVE_CTIME_R_3 */ |
|
| 129 |
- |
|
| 130 |
-/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
| 131 |
-#define HAVE_DLFCN_H 1 |
|
| 132 |
- |
|
| 133 |
-/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ |
|
| 134 |
-/* #define HAVE_FSEEKO 1 */ |
|
| 135 |
- |
|
| 136 |
-/* gethostbyname_r takes 3 arguments */ |
|
| 137 |
-/* #undef HAVE_GETHOSTBYNAME_R_3 */ |
|
| 138 |
- |
|
| 139 |
-/* gethostbyname_r takes 5 arguments */ |
|
| 140 |
-/* #undef HAVE_GETHOSTBYNAME_R_5 */ |
|
| 141 |
- |
|
| 142 |
-/* gethostbyname_r takes 6 arguments */ |
|
| 143 |
-/* #undef HAVE_GETHOSTBYNAME_R_6 */ |
|
| 144 |
- |
|
| 145 |
-/* Define to 1 if you have the `getpagesize' function. */ |
|
| 146 |
-/* #define HAVE_GETPAGESIZE 1 */ |
|
| 147 |
- |
|
| 148 |
-/* have gmp installed */ |
|
| 149 |
-/* #define HAVE_GMP 1 */ |
|
| 150 |
- |
|
| 151 |
-/* hardware acceleration */ |
|
| 152 |
-/* #undef HAVE_HWACCEL */ |
|
| 153 |
- |
|
| 154 |
-/* Define to 1 if you have the `inet_ntop' function. */ |
|
| 155 |
-#define HAVE_INET_NTOP 1 |
|
| 156 |
- |
|
| 157 |
-/* Define to 1 if you have the `initgroups' function. */ |
|
| 158 |
-/* #define HAVE_INITGROUPS 1 */ |
|
| 159 |
- |
|
| 160 |
-/* Define to 1 if you have the <inttypes.h> header file. */ |
|
| 161 |
-/* #define HAVE_INTTYPES_H 1 */ |
|
| 162 |
- |
|
| 163 |
-/* in_addr_t is defined */ |
|
| 164 |
-/* #undef HAVE_IN_ADDR_T 1 */ |
|
| 165 |
- |
|
| 166 |
-/* in_port_t is defined */ |
|
| 167 |
-/* #define HAVE_IN_PORT_T 1 */ |
|
| 168 |
- |
|
| 169 |
-/* Define to 1 if you have the <libmilter/mfapi.h> header file. */ |
|
| 170 |
-/* #undef HAVE_LIBMILTER_MFAPI_H */ |
|
| 171 |
- |
|
| 172 |
-/* Define to 1 if you have the <limits.h> header file. */ |
|
| 173 |
-#define HAVE_LIMITS_H 1 |
|
| 174 |
- |
|
| 175 |
-/* Define to 1 if you have the <malloc.h> header file. */ |
|
| 176 |
-#define HAVE_MALLOC_H 1 |
|
| 177 |
- |
|
| 178 |
-/* Define to 1 if you have the `memcpy' function. */ |
|
| 179 |
-#define HAVE_MEMCPY 1 |
|
| 180 |
- |
|
| 181 |
-/* Define to 1 if you have the <memory.h> header file. */ |
|
| 182 |
-#define HAVE_MEMORY_H 1 |
|
| 183 |
- |
|
| 184 |
-/* Define to 1 if you have a working `mmap' system call. */ |
|
| 185 |
-#define HAVE_MMAP 1 |
|
| 186 |
- |
|
| 187 |
-/* Define to 1 if you have the <ndir.h> header file. */ |
|
| 188 |
-/* #undef HAVE_NDIR_H */ |
|
| 189 |
- |
|
| 190 |
-/* Define to 1 if you have the `poll' function. */ |
|
| 191 |
-/* #define HAVE_POLL 1 */ |
|
| 192 |
- |
|
| 193 |
-/* Define to 1 if you have the <poll.h> header file. */ |
|
| 194 |
-/* #define HAVE_POLL_H 1 */ |
|
| 195 |
- |
|
| 196 |
-/* "pragma pack" */ |
|
| 197 |
-#define HAVE_PRAGMA_PACK 1 |
|
| 198 |
- |
|
| 199 |
-/* readdir_r takes 2 arguments */ |
|
| 200 |
-/* #undef HAVE_READDIR_R_2 1 |
|
| 201 |
- |
|
| 202 |
-/* readdir_r takes 3 arguments */ |
|
| 203 |
-#define HAVE_READDIR_R_3 1 |
|
| 204 |
- |
|
| 205 |
-/* Define to 1 if you have the `recvmsg' function. */ |
|
| 206 |
-/* #undef HAVE_RECVMSG */ |
|
| 207 |
- |
|
| 208 |
-/* Define to 1 if you have the <regex.h> header file. */ |
|
| 209 |
-#define HAVE_REGEX_H 1 |
|
| 210 |
- |
|
| 211 |
-/* have resolv.h */ |
|
| 212 |
-/* #undef HAVE_RESOLV_H */ |
|
| 213 |
- |
|
| 214 |
-/* Define signed right shift implementation */ |
|
| 215 |
-#define HAVE_SAR 1 |
|
| 216 |
- |
|
| 217 |
-/* Define to 1 if you have the `sendmsg' function. */ |
|
| 218 |
-/* #undef HAVE_SENDMSG */ |
|
| 219 |
- |
|
| 220 |
-/* Define to 1 if you have the `setgroups' function. */ |
|
| 221 |
-/* #define HAVE_SETGROUPS 1 */ |
|
| 222 |
- |
|
| 223 |
-/* Define to 1 if you have the `setsid' function. */ |
|
| 224 |
-/* #define HAVE_SETSID 1 */ |
|
| 225 |
- |
|
| 226 |
-/* Define to 1 if you have the `snprintf' function. */ |
|
| 227 |
-#define HAVE_SNPRINTF 1 |
|
| 228 |
- |
|
| 229 |
-/* Define to 1 if you have the <stdint.h> header file. */ |
|
| 230 |
-/*#define HAVE_STDINT_H 1/* |
|
| 231 |
- |
|
| 232 |
-/* Define to 1 if you have the <stdlib.h> header file. */ |
|
| 233 |
-#define HAVE_STDLIB_H 1 |
|
| 234 |
- |
|
| 235 |
-/* Define to 1 if you have the `strerror_r' function. */ |
|
| 236 |
-/* #define HAVE_STRERROR_R 1 */ |
|
| 237 |
- |
|
| 238 |
-/* Define to 1 if you have the <strings.h> header file. */ |
|
| 239 |
-/* #define HAVE_STRINGS_H 1 */ |
|
| 240 |
- |
|
| 241 |
-/* Define to 1 if you have the <string.h> header file. */ |
|
| 242 |
-#define HAVE_STRING_H 1 |
|
| 243 |
- |
|
| 244 |
-/* Define to 1 if you have the `strlcat' function. */ |
|
| 245 |
-#define HAVE_STRLCAT 1 |
|
| 246 |
- |
|
| 247 |
-/* Define to 1 if you have the `strlcpy' function. */ |
|
| 248 |
-#define HAVE_STRLCPY 1 |
|
| 249 |
- |
|
| 250 |
-/* Define to 1 if you have the <sys/filio.h> header file. */ |
|
| 251 |
-/* #undef HAVE_SYS_FILIO_H */ |
|
| 252 |
- |
|
| 253 |
-/* Define to 1 if you have the <sys/inttypes.h> header file. */ |
|
| 254 |
-/* #undef HAVE_SYS_INTTYPES_H */ |
|
| 255 |
- |
|
| 256 |
-/* Define to 1 if you have the <sys/int_types.h> header file. */ |
|
| 257 |
-/* #undef HAVE_SYS_INT_TYPES_H */ |
|
| 258 |
- |
|
| 259 |
-/* Define to 1 if you have the <sys/mman.h> header file. */ |
|
| 260 |
-/*#define HAVE_SYS_MMAN_H 1*/ |
|
| 261 |
- |
|
| 262 |
-/* Define to 1 if you have the <sys/param.h> header file. */ |
|
| 263 |
-/* #undef HAVE_SYS_PARAM_H */ |
|
| 264 |
- |
|
| 265 |
-/* "have <sys/select.h>" */ |
|
| 266 |
-/* #undef HAVE_SYS_SELECT_H */ |
|
| 267 |
- |
|
| 268 |
-/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
| 269 |
-#define HAVE_SYS_STAT_H 1 |
|
| 270 |
- |
|
| 271 |
-/* Define to 1 if you have the <sys/types.h> header file. */ |
|
| 272 |
-#define HAVE_SYS_TYPES_H 1 |
|
| 273 |
- |
|
| 274 |
-/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
| 275 |
-/* #define HAVE_SYS_UIO_H 1 */ |
|
| 276 |
- |
|
| 277 |
-/* Define to 1 if you have the <tcpd.h> header file. */ |
|
| 278 |
-/* #undef HAVE_TCPD_H */ |
|
| 279 |
- |
|
| 280 |
-/* Define to 1 if you have the <termios.h> header file. */ |
|
| 281 |
-/* #define HAVE_TERMIOS_H 1 */ |
|
| 282 |
- |
|
| 283 |
-/* Define to 1 if you have the <unistd.h> header file. */ |
|
| 284 |
-/* #define HAVE_UNISTD_H 1 */ |
|
| 285 |
- |
|
| 286 |
-/* Define to 1 if you have the `vsnprintf' function. */ |
|
| 287 |
-/* #define HAVE_VSNPRINTF 1 */ |
|
| 288 |
- |
|
| 289 |
-/* zlib installed */ |
|
| 290 |
-#define HAVE_ZLIB_H 1 |
|
| 291 |
- |
|
| 292 |
-/* Early Linux doesn't set cmsg fields */ |
|
| 293 |
-/* #undef INCOMPLETE_CMSG */ |
|
| 294 |
- |
|
| 295 |
-/* bzip funtions do not have bz2 prefix */ |
|
| 296 |
-/* #undef NOBZ2PREFIX */ |
|
| 297 |
- |
|
| 298 |
-/* "no fd_set" */ |
|
| 299 |
-/* #undef NO_FD_SET */ |
|
| 300 |
- |
|
| 301 |
-/* Name of package */ |
|
| 302 |
-#define PACKAGE "clamav" |
|
| 303 |
- |
|
| 304 |
-/* Define to the address where bug reports for this package should be sent. */ |
|
| 305 |
-#define PACKAGE_BUGREPORT "bugs@clamav.net" |
|
| 306 |
- |
|
| 307 |
-/* Define to the full name of this package. */ |
|
| 308 |
-#define PACKAGE_NAME "" |
|
| 309 |
- |
|
| 310 |
-/* Define to the full name and version of this package. */ |
|
| 311 |
-#define PACKAGE_STRING "" |
|
| 312 |
- |
|
| 313 |
-/* Define to the one symbol short name of this package. */ |
|
| 314 |
-#define PACKAGE_TARNAME "" |
|
| 315 |
- |
|
| 316 |
-/* Define to the version of this package. */ |
|
| 317 |
-#define PACKAGE_VERSION "" |
|
| 318 |
- |
|
| 319 |
-/* scan buffer size */ |
|
| 320 |
-#define SCANBUFF 131072 |
|
| 321 |
- |
|
| 322 |
-/* location of Sendmail binary */ |
|
| 323 |
-/* #undef SENDMAIL_BIN */ |
|
| 324 |
- |
|
| 325 |
-/* major version of Sendmail */ |
|
| 326 |
-/* #undef SENDMAIL_VERSION_A */ |
|
| 327 |
- |
|
| 328 |
-/* minor version of Sendmail */ |
|
| 329 |
-/* #undef SENDMAIL_VERSION_B */ |
|
| 330 |
- |
|
| 331 |
-/* subversion of Sendmail */ |
|
| 332 |
-/* #undef SENDMAIL_VERSION_C */ |
|
| 333 |
- |
|
| 334 |
-/* Define to 1 if the `setpgrp' function takes no argument. */ |
|
| 335 |
-#define SETPGRP_VOID 1 |
|
| 336 |
- |
|
| 337 |
-/* The number of bytes in type int */ |
|
| 338 |
-#define SIZEOF_INT 4 |
|
| 339 |
- |
|
| 340 |
-/* The number of bytes in type long */ |
|
| 341 |
-#define SIZEOF_LONG 4 |
|
| 342 |
- |
|
| 343 |
-/* The number of bytes in type long long */ |
|
| 344 |
-#define SIZEOF_LONG_LONG 8 |
|
| 345 |
- |
|
| 346 |
-/* The number of bytes in type short */ |
|
| 347 |
-#define SIZEOF_SHORT 2 |
|
| 348 |
- |
|
| 349 |
-/* Define to 1 if you have the ANSI C header files. */ |
|
| 350 |
-#define STDC_HEADERS 1 |
|
| 351 |
- |
|
| 352 |
-/* use syslog */ |
|
| 353 |
-#define USE_SYSLOG 1 |
|
| 354 |
- |
|
| 355 |
-/* Version number of package */ |
|
| 356 |
-#define VERSION "devel-20071024" |
|
| 357 |
-/*#define VERSION "0.92RC2"*/ |
|
| 358 |
- |
|
| 359 |
-/* tcpwrappers support */ |
|
| 360 |
-/* #undef WITH_TCPWRAP */ |
|
| 361 |
- |
|
| 362 |
-/* endianess */ |
|
| 363 |
-#define WORDS_BIGENDIAN 0 |
|
| 364 |
- |
|
| 365 |
-/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ |
|
| 366 |
-/* #undef _LARGEFILE_SOURCE */ |
|
| 367 |
- |
|
| 368 |
-/* POSIX compatibility */ |
|
| 369 |
-/* #undef _POSIX_PII_SOCKET */ |
|
| 370 |
- |
|
| 371 |
-/* thread safe */ |
|
| 372 |
-#define _REENTRANT 1 |
|
| 373 |
- |
|
| 374 |
-/* Define to empty if `const' does not conform to ANSI C. */ |
|
| 375 |
-/* #undef const */ |
|
| 376 |
- |
|
| 377 |
-/* Define to `__inline__' or `__inline' if that's what the C compiler |
|
| 378 |
- calls it, or to nothing if 'inline' is not supported under any name. */ |
|
| 379 |
-#ifndef __cplusplus |
|
| 380 |
-/* #undef inline */ |
|
| 381 |
-#endif |
|
| 382 |
- |
|
| 383 |
-/* Define to `long' if <sys/types.h> does not define. */ |
|
| 384 |
-/* #undef off_t */ |
|
| 385 |
- |
|
| 386 |
-/* Define to "int" if <sys/socket.h> does not define. */ |
|
| 387 |
-typedef int socklen_t; |
|
| 388 |
- |
|
| 389 |
-#ifdef C_WINDOWS |
|
| 390 |
-#include "compat.h" |
|
| 391 |
-#endif |
| 392 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,508 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2006 Nigel Horne <njh@bandsman.co.uk> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- * |
|
| 19 |
- * Unix/Linux compatibility for Windows |
|
| 20 |
- * Inspired by glib and the cygwin source code |
|
| 21 |
- * Tested under Microsoft Visual Studio 2005 |
|
| 22 |
- */ |
|
| 23 |
-#include <windows.h> |
|
| 24 |
- |
|
| 25 |
-#if HAVE_CONFIG_H |
|
| 26 |
-#include "clamav-config.h" |
|
| 27 |
-#endif |
|
| 28 |
- |
|
| 29 |
-#include <errno.h> |
|
| 30 |
-#include <string.h> |
|
| 31 |
- |
|
| 32 |
-#include "clamav.h" |
|
| 33 |
-#include "others.h" |
|
| 34 |
- |
|
| 35 |
-#ifndef CL_DEBUG |
|
| 36 |
-#define NDEBUG /* map CLAMAV debug onto standard */ |
|
| 37 |
-#endif |
|
| 38 |
- |
|
| 39 |
-#include <stdlib.h> |
|
| 40 |
-#include <direct.h> |
|
| 41 |
-#include <io.h> |
|
| 42 |
-#include <pthread.h> |
|
| 43 |
- |
|
| 44 |
-#ifdef USE_SYSLOG |
|
| 45 |
-#include <strsafe.h> |
|
| 46 |
-#include "syslog.h" |
|
| 47 |
-#endif |
|
| 48 |
- |
|
| 49 |
-static const char *basename(const char *file_name); |
|
| 50 |
- |
|
| 51 |
-/* Offset between 1/1/1601 and 1/1/1970 in 100 nanosec units */ |
|
| 52 |
-#define _W32_FT_OFFSET (116444736000000000ULL) |
|
| 53 |
- |
|
| 54 |
-/* |
|
| 55 |
- * Patches for 64 bit support in opendir by |
|
| 56 |
- * Mark Pizzolato clamav-win32@subscriptions.pizzolato.net |
|
| 57 |
- */ |
|
| 58 |
-DIR * |
|
| 59 |
-opendir(const char *dirname) |
|
| 60 |
-{
|
|
| 61 |
- DIR *ret = cli_calloc(1, sizeof(DIR)); |
|
| 62 |
- char mask[_MAX_PATH + 3]; |
|
| 63 |
- size_t i, j; |
|
| 64 |
- |
|
| 65 |
- if(ret == NULL) |
|
| 66 |
- return NULL; |
|
| 67 |
- |
|
| 68 |
- /* struct _WIN32_FIND_DATAA is what a LPWIN32_FIND_DATA points to */ |
|
| 69 |
- ret->find_file_data = cli_calloc(1, sizeof(struct _WIN32_FIND_DATAA)); |
|
| 70 |
- |
|
| 71 |
- if(ret->find_file_data == NULL) {
|
|
| 72 |
- free(ret); |
|
| 73 |
- return NULL; |
|
| 74 |
- } |
|
| 75 |
- ret->dir_name = cli_strdup(dirname); |
|
| 76 |
- |
|
| 77 |
- if(ret->dir_name == NULL) {
|
|
| 78 |
- free(ret->find_file_data); |
|
| 79 |
- free(ret); |
|
| 80 |
- return NULL; |
|
| 81 |
- } |
|
| 82 |
- |
|
| 83 |
- j = strlen(dirname); |
|
| 84 |
- for(i = 0; i < j; i++) |
|
| 85 |
- if(ret->dir_name[i] == '/') |
|
| 86 |
- ret->dir_name[i] = '\\'; |
|
| 87 |
- |
|
| 88 |
- if(j && dirname[j - 1] == '\\') |
|
| 89 |
- ret->dir_name[--j] = '\0'; |
|
| 90 |
- |
|
| 91 |
- sprintf(mask, "%s\\*", ret->dir_name); |
|
| 92 |
- |
|
| 93 |
- ret->find_file_handle = FindFirstFile(mask, |
|
| 94 |
- (LPWIN32_FIND_DATA)ret->find_file_data); |
|
| 95 |
- |
|
| 96 |
- if(ret->find_file_handle == INVALID_HANDLE_VALUE) {
|
|
| 97 |
- free(ret->find_file_data); |
|
| 98 |
- free(ret->dir_name); |
|
| 99 |
- free(ret); |
|
| 100 |
- |
|
| 101 |
- cli_warnmsg("Can't opendir(%s)\n", dirname);
|
|
| 102 |
- return NULL; |
|
| 103 |
- } |
|
| 104 |
- |
|
| 105 |
- ret->just_opened = TRUE; |
|
| 106 |
- |
|
| 107 |
- return ret; |
|
| 108 |
-} |
|
| 109 |
- |
|
| 110 |
-struct dirent * |
|
| 111 |
-readdir(DIR *dir) |
|
| 112 |
-{
|
|
| 113 |
- /* NOTE: not thread safe */ |
|
| 114 |
- static struct dirent result; |
|
| 115 |
- |
|
| 116 |
- if(dir == NULL) |
|
| 117 |
- return NULL; |
|
| 118 |
- |
|
| 119 |
- if(dir->just_opened) |
|
| 120 |
- dir->just_opened = FALSE; |
|
| 121 |
- else if(!FindNextFile((HANDLE)dir->find_file_handle, (LPWIN32_FIND_DATA)dir->find_file_data)) |
|
| 122 |
- switch(GetLastError ()) {
|
|
| 123 |
- case ERROR_NO_MORE_FILES: |
|
| 124 |
- return NULL; |
|
| 125 |
- default: |
|
| 126 |
- errno = EIO; |
|
| 127 |
- return NULL; |
|
| 128 |
- } |
|
| 129 |
- |
|
| 130 |
- strcpy(result.d_name, basename(((LPWIN32_FIND_DATA)dir->find_file_data)->cFileName)); |
|
| 131 |
- |
|
| 132 |
- return &result; |
|
| 133 |
-} |
|
| 134 |
- |
|
| 135 |
-int |
|
| 136 |
-readdir_r(DIR *dir, struct dirent *dirent, struct dirent **output) |
|
| 137 |
-{
|
|
| 138 |
- if(dir == NULL) |
|
| 139 |
- return -1; |
|
| 140 |
- if(dirent == NULL) |
|
| 141 |
- return -1; |
|
| 142 |
- if(output == NULL) |
|
| 143 |
- return -1; |
|
| 144 |
- |
|
| 145 |
- if(dir->just_opened) |
|
| 146 |
- dir->just_opened = FALSE; |
|
| 147 |
- else if(!FindNextFile((HANDLE)dir->find_file_handle, (LPWIN32_FIND_DATA)dir->find_file_data)) |
|
| 148 |
- switch(GetLastError()) {
|
|
| 149 |
- case ERROR_NO_MORE_FILES: |
|
| 150 |
- *output = NULL; |
|
| 151 |
- return -1; |
|
| 152 |
- default: |
|
| 153 |
- errno = EIO; |
|
| 154 |
- *output = NULL; |
|
| 155 |
- return -1; |
|
| 156 |
- } |
|
| 157 |
- |
|
| 158 |
- strcpy(dirent->d_name, basename(((LPWIN32_FIND_DATA)dir->find_file_data)->cFileName)); |
|
| 159 |
- *output = dirent; |
|
| 160 |
- |
|
| 161 |
- return 0; |
|
| 162 |
-} |
|
| 163 |
- |
|
| 164 |
-void |
|
| 165 |
-rewinddir(DIR *dir) |
|
| 166 |
-{
|
|
| 167 |
- char mask[_MAX_PATH + 3]; |
|
| 168 |
- |
|
| 169 |
- if(dir == NULL) |
|
| 170 |
- return; |
|
| 171 |
- |
|
| 172 |
- if(!FindClose((HANDLE)dir->find_file_handle)) |
|
| 173 |
- cli_warnmsg("rewinddir(): FindClose() failed\n");
|
|
| 174 |
- |
|
| 175 |
- sprintf(mask, "%s\\*", dir->dir_name); |
|
| 176 |
- |
|
| 177 |
- dir->find_file_handle = FindFirstFile (mask, |
|
| 178 |
- (LPWIN32_FIND_DATA)dir->find_file_data); |
|
| 179 |
- |
|
| 180 |
- if(dir->find_file_handle == INVALID_HANDLE_VALUE) {
|
|
| 181 |
- errno = EIO; |
|
| 182 |
- return; |
|
| 183 |
- } |
|
| 184 |
- dir->just_opened = TRUE; |
|
| 185 |
-} |
|
| 186 |
- |
|
| 187 |
-int |
|
| 188 |
-closedir(DIR *dir) |
|
| 189 |
-{
|
|
| 190 |
- if(dir == NULL) |
|
| 191 |
- return -1; |
|
| 192 |
- |
|
| 193 |
- if(!FindClose((HANDLE)dir->find_file_handle)) {
|
|
| 194 |
- errno = EIO; |
|
| 195 |
- return -1; |
|
| 196 |
- } |
|
| 197 |
- |
|
| 198 |
- free(dir->dir_name); |
|
| 199 |
- free(dir->find_file_data); |
|
| 200 |
- free(dir); |
|
| 201 |
- |
|
| 202 |
- return 0; |
|
| 203 |
-} |
|
| 204 |
- |
|
| 205 |
-static const char * |
|
| 206 |
-basename(const char *file_name) |
|
| 207 |
-{
|
|
| 208 |
- const char *base; |
|
| 209 |
- |
|
| 210 |
- if(file_name == NULL) |
|
| 211 |
- return NULL; |
|
| 212 |
- |
|
| 213 |
- base = strrchr(file_name, '\\'); |
|
| 214 |
- |
|
| 215 |
- if(base) |
|
| 216 |
- return base + 1; |
|
| 217 |
- |
|
| 218 |
- if(isalpha(file_name[0] & 0xFF) && (file_name[1] == ':')) |
|
| 219 |
- return (const char *)(file_name + 2); |
|
| 220 |
- |
|
| 221 |
- return file_name; |
|
| 222 |
-} |
|
| 223 |
- |
|
| 224 |
-/* From the cygwin source code */ |
|
| 225 |
-int |
|
| 226 |
-gettimeofday(struct timeval *tp, void *tz) |
|
| 227 |
-{
|
|
| 228 |
- if(tp) {
|
|
| 229 |
- union {
|
|
| 230 |
- unsigned long long ns100; /*time since 1 Jan 1601 in 100ns units */ |
|
| 231 |
- FILETIME ft; |
|
| 232 |
- } _now; |
|
| 233 |
- |
|
| 234 |
- GetSystemTimeAsFileTime(&_now.ft); |
|
| 235 |
- tp->tv_usec = (long)((_now.ns100 / 10ULL) % 1000000ULL ); |
|
| 236 |
- tp->tv_sec = (long)((_now.ns100 - _W32_FT_OFFSET) / 10000000ULL); |
|
| 237 |
- } |
|
| 238 |
- /* |
|
| 239 |
- * Always return 0 as per Open Group Base Specifications Issue 6. |
|
| 240 |
- * Do not set errno on error. |
|
| 241 |
- */ |
|
| 242 |
- return 0; |
|
| 243 |
-} |
|
| 244 |
- |
|
| 245 |
-/* TODO */ |
|
| 246 |
-int |
|
| 247 |
-geteuid(void) |
|
| 248 |
-{
|
|
| 249 |
- return 0; |
|
| 250 |
-} |
|
| 251 |
- |
|
| 252 |
-int |
|
| 253 |
-getuid(void) |
|
| 254 |
-{
|
|
| 255 |
- return 0; |
|
| 256 |
-} |
|
| 257 |
- |
|
| 258 |
-int |
|
| 259 |
-getgid(void) |
|
| 260 |
-{
|
|
| 261 |
- return 0; |
|
| 262 |
-} |
|
| 263 |
- |
|
| 264 |
-/* |
|
| 265 |
- * mmap patches for more than one map area by |
|
| 266 |
- * Mark Pizzolato clamav-win32@subscriptions.pizzolato.net |
|
| 267 |
- */ |
|
| 268 |
-static pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER; |
|
| 269 |
- |
|
| 270 |
-static struct mmap_context {
|
|
| 271 |
- struct mmap_context *link; |
|
| 272 |
- HANDLE h; |
|
| 273 |
- LPVOID view; |
|
| 274 |
- size_t length; |
|
| 275 |
-} *mmaps = NULL; |
|
| 276 |
- |
|
| 277 |
-caddr_t |
|
| 278 |
-mmap(caddr_t address, size_t length, int protection, int flags, int fd, off_t offset) |
|
| 279 |
-{
|
|
| 280 |
- LPVOID addr; |
|
| 281 |
- HANDLE h; |
|
| 282 |
- struct mmap_context *ctx; |
|
| 283 |
- |
|
| 284 |
- if(flags != MAP_PRIVATE) {
|
|
| 285 |
- cli_errmsg("mmap: only MAP_PRIVATE is supported\n");
|
|
| 286 |
- return MAP_FAILED; |
|
| 287 |
- } |
|
| 288 |
- if(protection != PROT_READ) {
|
|
| 289 |
- cli_errmsg("mmap: only PROT_READ is supported\n");
|
|
| 290 |
- return MAP_FAILED; |
|
| 291 |
- } |
|
| 292 |
- if(address != NULL) {
|
|
| 293 |
- cli_errmsg("mmap: only NULL map address is supported\n");
|
|
| 294 |
- return MAP_FAILED; |
|
| 295 |
- } |
|
| 296 |
- h = CreateFileMapping((HANDLE)_get_osfhandle(fd), NULL, PAGE_READONLY, 0, 0, NULL); |
|
| 297 |
- |
|
| 298 |
- if(h == NULL) {
|
|
| 299 |
- cli_errmsg("mmap: CreateFileMapping failed - error %d\n",
|
|
| 300 |
- GetLastError()); |
|
| 301 |
- return MAP_FAILED; |
|
| 302 |
- } |
|
| 303 |
- if(GetLastError() == ERROR_ALREADY_EXISTS) {
|
|
| 304 |
- cli_errmsg("mmap: ERROR_ALREADY_EXISTS\n");
|
|
| 305 |
- CloseHandle(h); |
|
| 306 |
- return MAP_FAILED; |
|
| 307 |
- } |
|
| 308 |
- addr = MapViewOfFile(h, FILE_MAP_READ, |
|
| 309 |
- (DWORD)0, ((DWORD)offset & 0xFFFFFFFF), |
|
| 310 |
- length); |
|
| 311 |
- |
|
| 312 |
- if(addr == NULL) {
|
|
| 313 |
- cli_errmsg("mmap failed - error %d\n", GetLastError());
|
|
| 314 |
- CloseHandle(h); |
|
| 315 |
- return MAP_FAILED; |
|
| 316 |
- } |
|
| 317 |
- pthread_mutex_lock(&mmap_mutex); |
|
| 318 |
- ctx = cli_malloc(sizeof(*ctx)); |
|
| 319 |
- if(NULL == ctx) {
|
|
| 320 |
- pthread_mutex_unlock(&mmap_mutex); |
|
| 321 |
- cli_errmsg("mmap: can't create context block\n");
|
|
| 322 |
- UnmapViewOfFile(addr); |
|
| 323 |
- CloseHandle(h); |
|
| 324 |
- return MAP_FAILED; |
|
| 325 |
- } |
|
| 326 |
- ctx->h = h; |
|
| 327 |
- ctx->view = addr; |
|
| 328 |
- ctx->length = length; |
|
| 329 |
- ctx->link = mmaps; |
|
| 330 |
- mmaps = ctx; |
|
| 331 |
- pthread_mutex_unlock(&mmap_mutex); |
|
| 332 |
- return (caddr_t)addr; |
|
| 333 |
-} |
|
| 334 |
- |
|
| 335 |
-int |
|
| 336 |
-munmap(caddr_t addr, size_t length) |
|
| 337 |
-{
|
|
| 338 |
- struct mmap_context *ctx = mmaps, *lctx = NULL; |
|
| 339 |
- |
|
| 340 |
- pthread_mutex_lock(&mmap_mutex); |
|
| 341 |
- |
|
| 342 |
- for(; ctx && (ctx->view != addr); ctx = ctx->link) |
|
| 343 |
- lctx = ctx; |
|
| 344 |
- |
|
| 345 |
- if(ctx == NULL) {
|
|
| 346 |
- pthread_mutex_unlock(&mmap_mutex); |
|
| 347 |
- cli_warnmsg("munmap with no corresponding mmap\n");
|
|
| 348 |
- return -1; |
|
| 349 |
- } |
|
| 350 |
- |
|
| 351 |
- if(ctx->length != length) {
|
|
| 352 |
- pthread_mutex_unlock(&mmap_mutex); |
|
| 353 |
- cli_warnmsg("munmap with incorrect length specified (%u != %u) - partial munmap unsupported\n",
|
|
| 354 |
- length, ctx->length); |
|
| 355 |
- return -1; |
|
| 356 |
- } |
|
| 357 |
- |
|
| 358 |
- if(lctx == NULL) |
|
| 359 |
- mmaps = ctx->link; |
|
| 360 |
- else |
|
| 361 |
- lctx->link = ctx->link; |
|
| 362 |
- |
|
| 363 |
- pthread_mutex_unlock(&mmap_mutex); |
|
| 364 |
- |
|
| 365 |
- UnmapViewOfFile(ctx->view); |
|
| 366 |
- CloseHandle(ctx->h); |
|
| 367 |
- free(ctx); |
|
| 368 |
- |
|
| 369 |
- return 0; |
|
| 370 |
-} |
|
| 371 |
- |
|
| 372 |
-int |
|
| 373 |
-chown(const char *filename, short uid, short gid) |
|
| 374 |
-{
|
|
| 375 |
- return 0; |
|
| 376 |
-} |
|
| 377 |
- |
|
| 378 |
-#ifdef USE_SYSLOG |
|
| 379 |
-/* |
|
| 380 |
- * Put into the Windows Event Log |
|
| 381 |
- * Right Click My Computer->Manage->Event Viewer->Application |
|
| 382 |
- * See http://cybertiggyr.com/gene/wel/src/insert-log.c for inspiration |
|
| 383 |
- * http://msdn2.microsoft.com/en-gb/library/aa363634(VS.85).aspx |
|
| 384 |
- * and http://msdn2.microsoft.com/en-us/library/aa363680(VS.85).aspx |
|
| 385 |
- * |
|
| 386 |
- * FIXME: Not thread safe, but see shared/output.c, which ensures this code is |
|
| 387 |
- * single threaded - therefore don't call this code directly |
|
| 388 |
- */ |
|
| 389 |
-static HANDLE logg_handle; |
|
| 390 |
-static int initlog(const char *source); |
|
| 391 |
- |
|
| 392 |
-void |
|
| 393 |
-openlog(const char *name, int options, int facility) |
|
| 394 |
-{
|
|
| 395 |
- if(logg_handle != NULL) |
|
| 396 |
- closelog(); |
|
| 397 |
- else |
|
| 398 |
- (void)initlog(name); |
|
| 399 |
- |
|
| 400 |
- logg_handle = RegisterEventSource(NULL, name); |
|
| 401 |
- |
|
| 402 |
- if(logg_handle == NULL) |
|
| 403 |
- cli_warnmsg("openlog: Can't register source %s - error %d\n", name, GetLastError());
|
|
| 404 |
-} |
|
| 405 |
- |
|
| 406 |
-void |
|
| 407 |
-closelog(void) |
|
| 408 |
-{
|
|
| 409 |
- if(logg_handle != NULL) |
|
| 410 |
- DeregisterEventSource(logg_handle); |
|
| 411 |
-} |
|
| 412 |
- |
|
| 413 |
-void |
|
| 414 |
-syslog(int level, const char *format, ...) |
|
| 415 |
-{
|
|
| 416 |
- if(logg_handle == NULL) |
|
| 417 |
- openlog("Clam AntiVirus", 0, LOG_LOCAL6);
|
|
| 418 |
- |
|
| 419 |
- if(logg_handle != NULL) {
|
|
| 420 |
- va_list args; |
|
| 421 |
- char buff[512]; |
|
| 422 |
- char *ptr; |
|
| 423 |
- |
|
| 424 |
- va_start(args, format); |
|
| 425 |
- (void)vsnprintf(buff, sizeof(buff), format, args); |
|
| 426 |
- va_end(args); |
|
| 427 |
- |
|
| 428 |
- ptr = buff; |
|
| 429 |
- |
|
| 430 |
- /* |
|
| 431 |
- * Category = 0, eventId = CLAMAV_EVENTMSG, SID = NULL, 1 string |
|
| 432 |
- */ |
|
| 433 |
- if(!ReportEventA(logg_handle, (WORD)level, 0, CLAMAV_EVENTMSG, NULL, 1, 0, (LPCSTR *)&ptr, NULL)) |
|
| 434 |
- cli_warnmsg("syslog: ReportEventA(%d, %d, 0, %d, NULL, 1, 0, %s, NULL) failed: %d\n",
|
|
| 435 |
- logg_handle, level, CLAMAV_EVENTMSG, buff, GetLastError()); |
|
| 436 |
- } |
|
| 437 |
-} |
|
| 438 |
- |
|
| 439 |
-static int |
|
| 440 |
-initlog(const char *source) |
|
| 441 |
-{
|
|
| 442 |
- /*DWORD dwCategoryNum = 1; /* The number of categories for the event source. */ |
|
| 443 |
- HKEY hk; |
|
| 444 |
- DWORD dwData, /*dwDisp,*/ len; |
|
| 445 |
- char path[MAX_PATH]; |
|
| 446 |
- |
|
| 447 |
- /* Create the event source as a subkey of the log. */ |
|
| 448 |
- (void)snprintf(path, sizeof(path), |
|
| 449 |
- "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\%s", |
|
| 450 |
- source); |
|
| 451 |
- |
|
| 452 |
- if(RegCreateKey(HKEY_LOCAL_MACHINE, path, &hk) != 0) {
|
|
| 453 |
- cli_warnmsg("Could not create the registry key\n");
|
|
| 454 |
- /*return 0;*/ |
|
| 455 |
- } |
|
| 456 |
- |
|
| 457 |
- /* Set the name of the message file. */ |
|
| 458 |
- GetModuleFileName(NULL, path, sizeof(path)); |
|
| 459 |
- path[sizeof(path) - 1] = '\0'; |
|
| 460 |
- len = (DWORD)(strlen(path) + 1); |
|
| 461 |
- |
|
| 462 |
- if(RegSetValueEx(hk, "EventMessageFile", 0, REG_EXPAND_SZ, (LPBYTE)path, len)) {
|
|
| 463 |
- cli_warnmsg("Could not set the event message file\n");
|
|
| 464 |
- RegCloseKey(hk); |
|
| 465 |
- return 0; |
|
| 466 |
- } |
|
| 467 |
- |
|
| 468 |
- /* Set the supported event types. */ |
|
| 469 |
- dwData = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE | EVENTLOG_INFORMATION_TYPE; |
|
| 470 |
- |
|
| 471 |
- if(RegSetValueEx(hk, "TypesSupported", 0, REG_DWORD, (LPBYTE)&dwData, sizeof(DWORD))) {
|
|
| 472 |
- cli_warnmsg("Could not set the supported types\n");
|
|
| 473 |
- RegCloseKey(hk); |
|
| 474 |
- return 0; |
|
| 475 |
- } |
|
| 476 |
- |
|
| 477 |
-#if 0 |
|
| 478 |
- /* Set the category message file and number of categories. */ |
|
| 479 |
- if(RegSetValueEx(hk, "CategoryMessageFile", 0, REG_EXPAND_SZ, |
|
| 480 |
- (LPBYTE)path, len)) {
|
|
| 481 |
- cli_warnmsg("Could not set the category message file\n");
|
|
| 482 |
- RegCloseKey(hk); |
|
| 483 |
- return 0; |
|
| 484 |
- } |
|
| 485 |
- |
|
| 486 |
- if(RegSetValueEx(hk, "CategoryCount", 0, REG_DWORD, (LPBYTE)&dwCategoryNum, sizeof(DWORD))) {
|
|
| 487 |
- cli_warnmsg("Could not set the category count\n");
|
|
| 488 |
- RegCloseKey(hk); |
|
| 489 |
- return 0; |
|
| 490 |
- } |
|
| 491 |
-#endif |
|
| 492 |
- |
|
| 493 |
- RegCloseKey(hk); |
|
| 494 |
- return 1; |
|
| 495 |
-} |
|
| 496 |
-#endif |
|
| 497 |
- |
|
| 498 |
-int |
|
| 499 |
-snprintf(char *str, size_t size, const char *format, ...) |
|
| 500 |
-{
|
|
| 501 |
- int ret; |
|
| 502 |
- |
|
| 503 |
- va_list args; |
|
| 504 |
- va_start(args, format); |
|
| 505 |
- ret = _vsnprintf_s(str, size, _TRUNCATE, format, args); |
|
| 506 |
- va_end(args); |
|
| 507 |
- return ret; |
|
| 508 |
-} |
|
| 509 | 1 |
\ No newline at end of file |
| 510 | 2 |
deleted file mode 100644 |
| ... | ... |
@@ -1,134 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2006 Nigel Horne <njh@bandsman.co.uk> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- * |
|
| 19 |
- * Unix/Linux compatibility for Windows |
|
| 20 |
- * Inspired by glib and the cygwin source code |
|
| 21 |
- * Tested under Microsoft Visual Studio 2005 |
|
| 22 |
- */ |
|
| 23 |
-#ifndef CLAMAV_COMPAT_H |
|
| 24 |
- |
|
| 25 |
-#define CLAMAV_COMPAT_H |
|
| 26 |
- |
|
| 27 |
-#ifdef C_WINDOWS |
|
| 28 |
- |
|
| 29 |
-#pragma warning(disable: 4996) /* turn off warnings about depracated code */ |
|
| 30 |
- |
|
| 31 |
-#ifndef _USE_32BIT_TIME_T |
|
| 32 |
-#define _USE_32BIT_TIME_T |
|
| 33 |
-#endif |
|
| 34 |
- |
|
| 35 |
-/*#include "snprintf.h"*/ |
|
| 36 |
- |
|
| 37 |
-#define inline /* it's too different in MSVC to bother */ |
|
| 38 |
- |
|
| 39 |
-typedef int ssize_t; |
|
| 40 |
-typedef int mode_t; |
|
| 41 |
-typedef char * caddr_t; |
|
| 42 |
-typedef long off_t; |
|
| 43 |
- |
|
| 44 |
-#define X_OK 0 |
|
| 45 |
-#define W_OK 2 |
|
| 46 |
-#define R_OK 4 |
|
| 47 |
- |
|
| 48 |
-#define PROT_READ 1 |
|
| 49 |
-#define MAP_PRIVATE 1 |
|
| 50 |
-#define MAP_FAILED (caddr_t)-1 |
|
| 51 |
- |
|
| 52 |
-caddr_t mmap(caddr_t address, size_t length, int protection, int flags, int fd, off_t offset); |
|
| 53 |
-int munmap(caddr_t addr, size_t length); |
|
| 54 |
- |
|
| 55 |
-#define strcasecmp(s1, s2) _stricmp(s1, s2) |
|
| 56 |
-#define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) |
|
| 57 |
- |
|
| 58 |
-#define chdir(d) _chdir(d) |
|
| 59 |
-#define umask(n) _umask(n) |
|
| 60 |
- |
|
| 61 |
-#ifndef S_IRWXU |
|
| 62 |
-#define S_IRWXU (_S_IREAD|_S_IWRITE|_S_IEXEC) |
|
| 63 |
-#endif |
|
| 64 |
- |
|
| 65 |
-#define S_IWUSR S_IWRITE |
|
| 66 |
-#define S_IRUSR S_IREAD |
|
| 67 |
-#define S_ISLNK(f) 0 |
|
| 68 |
-#define S_ISDIR(f) (((f)&S_IFMT) == S_IFDIR) |
|
| 69 |
-#define S_ISREG(f) (((f)&S_IFMT) == S_IFREG) |
|
| 70 |
- |
|
| 71 |
-#define fsync(fd) _commit(fd) |
|
| 72 |
-#define lstat(file, buf) stat(file, buf) |
|
| 73 |
- |
|
| 74 |
-#define _CRT_SECURE_NO_DEPRECATE 1 |
|
| 75 |
- |
|
| 76 |
-#ifndef _WINSOCKAPI_ /* timeval is in winsock.h */ |
|
| 77 |
-struct timeval {
|
|
| 78 |
- long tv_sec; |
|
| 79 |
- long tv_usec; |
|
| 80 |
-}; |
|
| 81 |
-#endif /* _WINSOCKAPI_ */ |
|
| 82 |
- |
|
| 83 |
-/* Maximum filenames under various systems - njh */ |
|
| 84 |
-#ifndef NAME_MAX /* e.g. Linux */ |
|
| 85 |
-# ifdef MAXNAMELEN /* e.g. Solaris */ |
|
| 86 |
-# define NAME_MAX MAXNAMELEN |
|
| 87 |
-# else |
|
| 88 |
-# ifdef FILENAME_MAX /* e.g. SCO */ |
|
| 89 |
-# define NAME_MAX FILENAME_MAX |
|
| 90 |
-# else |
|
| 91 |
-# define NAME_MAX 256 |
|
| 92 |
-# endif |
|
| 93 |
-# endif |
|
| 94 |
-#endif |
|
| 95 |
- |
|
| 96 |
-struct DIR {
|
|
| 97 |
- char *dir_name; |
|
| 98 |
- int just_opened; |
|
| 99 |
- void *find_file_handle; |
|
| 100 |
- void *find_file_data; /* LPWIN32_FIND_DATA */ |
|
| 101 |
-}; |
|
| 102 |
-typedef struct DIR DIR; |
|
| 103 |
-struct dirent {
|
|
| 104 |
- char d_name[NAME_MAX + 1]; |
|
| 105 |
-}; |
|
| 106 |
- |
|
| 107 |
-DIR *opendir(const char *dirname); |
|
| 108 |
-struct dirent *readdir(DIR *dir); |
|
| 109 |
-int readdir_r(DIR *dir, struct dirent *dirent, struct dirent **output); |
|
| 110 |
-void rewinddir(DIR *dir); |
|
| 111 |
-int closedir(DIR *dir); |
|
| 112 |
-int gettimeofday(struct timeval* tp, void* tz); |
|
| 113 |
- |
|
| 114 |
-#define alarm(seconds) |
|
| 115 |
-#define sleep(seconds) Sleep(seconds * 1000) |
|
| 116 |
-#define pause(); |
|
| 117 |
- |
|
| 118 |
-extern const char *libclamav_dll; |
|
| 119 |
- |
|
| 120 |
-#ifdef _DEBUG |
|
| 121 |
- |
|
| 122 |
-/* http://msdn2.microsoft.com/en-us/library/e5ewb1h3(VS.80).asp */ |
|
| 123 |
-#define _CRTDBG_MAP_ALLOC |
|
| 124 |
-#include <stdlib.h> |
|
| 125 |
-#include <crtdbg.h> |
|
| 126 |
- |
|
| 127 |
-/* breaks mspack/qtmd.c :-( */ |
|
| 128 |
-/* #define free(p) { _free_dbg(p, _NORMAL_BLOCK); } */
|
|
| 129 |
- |
|
| 130 |
-#endif |
|
| 131 |
- |
|
| 132 |
-#endif /* C_WINDOWS */ |
|
| 133 |
- |
|
| 134 |
-#endif /* CLAMAV_COMPAT_H */ |
| 135 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,84 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2007 aCaB <acab@clamav.net> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- */ |
|
| 19 |
-#ifdef _MSC_VER |
|
| 20 |
-#include <winsock.h> |
|
| 21 |
-#endif |
|
| 22 |
- |
|
| 23 |
-#if HAVE_CONFIG_H |
|
| 24 |
-#include "clamav-config.h" |
|
| 25 |
-#endif |
|
| 26 |
- |
|
| 27 |
-#ifndef C_WINDOWS |
|
| 28 |
-#error You seem to lack the OS, the environment or the tools to build this file. |
|
| 29 |
-#endif |
|
| 30 |
- |
|
| 31 |
-#include <windows.h> |
|
| 32 |
-#include <winreg.h> |
|
| 33 |
-#include "clamav.h" |
|
| 34 |
-#include "others.h" |
|
| 35 |
- |
|
| 36 |
-#undef CONFDIR |
|
| 37 |
- |
|
| 38 |
-#ifdef LATER |
|
| 39 |
-/* These are exported in the .def file */ |
|
| 40 |
-static char _CONFDIR[MAX_PATH]; |
|
| 41 |
-static char _CONFFRESHCLAM[MAX_PATH]; |
|
| 42 |
-static char _CONFCLAMD[MAX_PATH]; |
|
| 43 |
- |
|
| 44 |
-char *CONFDIR =_CONFDIR; |
|
| 45 |
-char *CONFFRESHCLAM =_CONFFRESHCLAM; |
|
| 46 |
-char *CONFCLAMD =_CONFCLAMD; |
|
| 47 |
-#else |
|
| 48 |
-const char *CONFDIR = NULL; |
|
| 49 |
-const char *CONFFRESHCLAM = NULL; |
|
| 50 |
-const char *CONFCLAMD = NULL; |
|
| 51 |
-#endif |
|
| 52 |
- |
|
| 53 |
-#ifdef _MANAGED |
|
| 54 |
-#pragma managed(push, off) |
|
| 55 |
-#endif |
|
| 56 |
-#include <winerror.h> |
|
| 57 |
-BOOL APIENTRY DllMain(HMODULE m, DWORD wassup, LPVOID r) |
|
| 58 |
-{
|
|
| 59 |
-#ifdef LATER |
|
| 60 |
- HKEY key; |
|
| 61 |
- unsigned int cs=0; |
|
| 62 |
- if (wassup!=DLL_PROCESS_ATTACH) return TRUE; |
|
| 63 |
- |
|
| 64 |
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\ClamAV", 0, KEY_QUERY_VALUE, &key) || RegQueryValueExA(key, "confdir", 0, 0, NULL, &cs)) {
|
|
| 65 |
- strcpy(CONFDIR, COPYDIR); |
|
| 66 |
- strcpy(CONFFRESHCLAM, COPYDIR"\\freshclam.conf"); |
|
| 67 |
- strcpy(CONFCLAMD, COPYDIR"\\clamd.conf"); |
|
| 68 |
- return TRUE; |
|
| 69 |
- } |
|
| 70 |
- if (!cs || cs>=MAX_PATH || RegQueryValueExA(key, "confdir", 0, 0, CONFDIR, &cs)) {
|
|
| 71 |
- cli_errmsg("Unable to load libclamav: check your registry settings");
|
|
| 72 |
- return FALSE; |
|
| 73 |
- RegCloseKey(key); |
|
| 74 |
- } |
|
| 75 |
- RegCloseKey(key); |
|
| 76 |
- _snprintf(CONFFRESHCLAM, MAX_PATH, "%s\\freshclam.conf", CONFDIR); |
|
| 77 |
- _snprintf(CONFCLAMD, MAX_PATH, "%s\\clamd.conf", CONFDIR); |
|
| 78 |
-#endif |
|
| 79 |
- return TRUE; |
|
| 80 |
-} |
|
| 81 |
- |
|
| 82 |
-#ifdef _MANAGED |
|
| 83 |
-#pragma managed(pop) |
|
| 84 |
-#endif |
| 7 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,81 +0,0 @@ |
| 1 |
-LIBRARY libClamAV |
|
| 2 |
-VERSION 0.92.1 |
|
| 3 |
-EXPORTS cl_scandesc @1 |
|
| 4 |
-EXPORTS cl_scanfile @2 |
|
| 5 |
-EXPORTS cl_load @3 |
|
| 6 |
-EXPORTS cl_build @4 |
|
| 7 |
-EXPORTS cl_dup @5 |
|
| 8 |
-EXPORTS cl_free @6 |
|
| 9 |
-EXPORTS cl_cvdhead @7 |
|
| 10 |
-EXPORTS cl_cvdparse @8 |
|
| 11 |
-EXPORTS cl_cvdverify @9 |
|
| 12 |
-EXPORTS cl_cvdfree @10 |
|
| 13 |
-EXPORTS cl_statinidir @11 |
|
| 14 |
-EXPORTS cl_statchkdir @12 |
|
| 15 |
-EXPORTS cl_statfree @13 |
|
| 16 |
-EXPORTS cl_debug @14 |
|
| 17 |
-EXPORTS cl_retflevel @15 |
|
| 18 |
-EXPORTS cl_settempdir @1000 NONAME |
|
| 19 |
-EXPORTS cl_retver @1001 NONAME |
|
| 20 |
-EXPORTS cl_strerror @1002 NONAME |
|
| 21 |
-EXPORTS cl_retdbdir @1003 NONAME |
|
| 22 |
-EXPORTS cli_rmdirs @1004 NONAME |
|
| 23 |
-EXPORTS cli_strtok @1005 NONAME |
|
| 24 |
-EXPORTS cli_gentemp @1006 NONAME |
|
| 25 |
-EXPORTS cli_strbcasestr @1007 NONAME |
|
| 26 |
-EXPORTS cli_strrcpy @1008 NONAME |
|
| 27 |
-EXPORTS cli_errmsg @1009 NONAME |
|
| 28 |
-EXPORTS cli_warnmsg @1010 NONAME |
|
| 29 |
-EXPORTS cli_calloc @1011 NONAME |
|
| 30 |
-EXPORTS cli_malloc @1012 NONAME |
|
| 31 |
-EXPORTS cli_untgz @1013 NONAME |
|
| 32 |
-EXPORTS cli_chomp @1014 NONAME |
|
| 33 |
-EXPORTS cli_gentempfd @1015 NONAME |
|
| 34 |
-EXPORTS cli_rndnum @1016 NONAME |
|
| 35 |
-EXPORTS snprintf @1017 NONAME |
|
| 36 |
-EXPORTS cli_ctime @1018 NONAME |
|
| 37 |
-EXPORTS cli_isnumber @1019 NONAME |
|
| 38 |
-EXPORTS closedir @1020 NONAME |
|
| 39 |
-EXPORTS readdir @1021 NONAME |
|
| 40 |
-EXPORTS opendir @1022 NONAME |
|
| 41 |
-EXPORTS pthread_win32_process_detach_np @1023 NONAME |
|
| 42 |
-EXPORTS gettimeofday @1024 NONAME |
|
| 43 |
-EXPORTS pthread_win32_process_attach_np @1025 NONAME |
|
| 44 |
-EXPORTS geteuid @1026 NONAME |
|
| 45 |
-EXPORTS chown @1027 NONAME |
|
| 46 |
-EXPORTS cli_regfree @1028 NONAME |
|
| 47 |
-EXPORTS cli_regexec @1029 NONAME |
|
| 48 |
-EXPORTS cli_regcomp @1030 NONAME |
|
| 49 |
-EXPORTS pthread_mutex_unlock @1031 NONAME |
|
| 50 |
-EXPORTS pthread_mutex_lock @1032 NONAME |
|
| 51 |
-EXPORTS pthread_mutex_init @1033 NONAME |
|
| 52 |
-EXPORTS readdir_r @1034 NONAME |
|
| 53 |
-EXPORTS pthread_attr_destroy @1035 NONAME |
|
| 54 |
-EXPORTS pthread_cond_destroy @1036 NONAME |
|
| 55 |
-EXPORTS pthread_mutex_destroy @1037 NONAME |
|
| 56 |
-EXPORTS pthread_cond_wait @1038 NONAME |
|
| 57 |
-EXPORTS pthread_cond_broadcast @1039 NONAME |
|
| 58 |
-EXPORTS pthread_attr_setdetachstate @1040 NONAME |
|
| 59 |
-EXPORTS pthread_attr_init @1041 NONAME |
|
| 60 |
-EXPORTS pthread_cond_init @1042 NONAME |
|
| 61 |
-EXPORTS pthread_cond_signal @1043 NONAME |
|
| 62 |
-EXPORTS pthread_create @1044 NONAME |
|
| 63 |
-EXPORTS pthread_cond_timedwait @1045 NONAME |
|
| 64 |
-EXPORTS gzclose @1046 NONAME |
|
| 65 |
-EXPORTS gzgets @1047 NONAME |
|
| 66 |
-EXPORTS gzdopen @1048 NONAME |
|
| 67 |
-EXPORTS getuid @1049 NONAME |
|
| 68 |
-EXPORTS getgid @1050 NONAME |
|
| 69 |
-EXPORTS openlog @1051 NONAME |
|
| 70 |
-EXPORTS syslog @1052 NONAME |
|
| 71 |
-EXPORTS closelog @1053 NONAME |
|
| 72 |
-EXPORTS cli_realloc2 @1055 NONAME |
|
| 73 |
-EXPORTS cli_readn @1056 NONAME |
|
| 74 |
-EXPORTS cli_writen @1057 NONAME |
|
| 75 |
-EXPORTS cli_strdup @1058 NONAME |
|
| 76 |
-EXPORTS cli_ac_setdepth @1059 NONAME |
|
| 77 |
-EXPORTS gzopen @1060 NONAME |
|
| 78 |
-EXPORTS gzwrite @1061 NONAME |
|
| 79 |
-EXPORTS CONFDIR DATA |
|
| 80 |
-EXPORTS CONFFRESHCLAM DATA |
|
| 81 |
-EXPORTS CONFCLAMD DATA |
| 82 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,1029 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="libclamav" |
|
| 6 |
- ProjectGUID="{C5A10DA8-717D-4462-8E84-E8B97F50CF54}"
|
|
| 7 |
- RootNamespace="libclamav" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="2" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)";"$(SolutionDir)libclamunrar";"$(ProjectDir)nsis";"$(ProjectDir)regex";"$(ProjectDir)zlib";"$(ProjectDir)pthread";"$(SolutionDir)";"$(ProjectDir)lzma"" |
|
| 45 |
- PreprocessorDefinitions="_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_DEBUG" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="0" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- StructMemberAlignment="0" |
|
| 52 |
- DefaultCharIsUnsigned="false" |
|
| 53 |
- TreatWChar_tAsBuiltInType="false" |
|
| 54 |
- UsePrecompiledHeader="0" |
|
| 55 |
- WarningLevel="4" |
|
| 56 |
- Detect64BitPortabilityProblems="true" |
|
| 57 |
- DebugInformationFormat="4" |
|
| 58 |
- CompileAs="1" |
|
| 59 |
- /> |
|
| 60 |
- <Tool |
|
| 61 |
- Name="VCManagedResourceCompilerTool" |
|
| 62 |
- /> |
|
| 63 |
- <Tool |
|
| 64 |
- Name="VCResourceCompilerTool" |
|
| 65 |
- /> |
|
| 66 |
- <Tool |
|
| 67 |
- Name="VCPreLinkEventTool" |
|
| 68 |
- /> |
|
| 69 |
- <Tool |
|
| 70 |
- Name="VCLinkerTool" |
|
| 71 |
- UseUnicodeResponseFiles="false" |
|
| 72 |
- AdditionalDependencies="ws2_32.lib "$(ProjectDir)pthread\pthreadVC2.lib" "$(TargetDir)\libclamunrar_iface.lib"" |
|
| 73 |
- Version="0.92.1" |
|
| 74 |
- ModuleDefinitionFile="$(InputDir)/libclamav.def" |
|
| 75 |
- GenerateDebugInformation="true" |
|
| 76 |
- AssemblyDebug="1" |
|
| 77 |
- SubSystem="2" |
|
| 78 |
- /> |
|
| 79 |
- <Tool |
|
| 80 |
- Name="VCALinkTool" |
|
| 81 |
- /> |
|
| 82 |
- <Tool |
|
| 83 |
- Name="VCManifestTool" |
|
| 84 |
- /> |
|
| 85 |
- <Tool |
|
| 86 |
- Name="VCXDCMakeTool" |
|
| 87 |
- /> |
|
| 88 |
- <Tool |
|
| 89 |
- Name="VCBscMakeTool" |
|
| 90 |
- /> |
|
| 91 |
- <Tool |
|
| 92 |
- Name="VCFxCopTool" |
|
| 93 |
- /> |
|
| 94 |
- <Tool |
|
| 95 |
- Name="VCAppVerifierTool" |
|
| 96 |
- /> |
|
| 97 |
- <Tool |
|
| 98 |
- Name="VCWebDeploymentTool" |
|
| 99 |
- /> |
|
| 100 |
- <Tool |
|
| 101 |
- Name="VCPostBuildEventTool" |
|
| 102 |
- /> |
|
| 103 |
- </Configuration> |
|
| 104 |
- <Configuration |
|
| 105 |
- Name="Release|Win32" |
|
| 106 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 107 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 108 |
- ConfigurationType="2" |
|
| 109 |
- CharacterSet="0" |
|
| 110 |
- WholeProgramOptimization="1" |
|
| 111 |
- > |
|
| 112 |
- <Tool |
|
| 113 |
- Name="VCPreBuildEventTool" |
|
| 114 |
- /> |
|
| 115 |
- <Tool |
|
| 116 |
- Name="VCCustomBuildTool" |
|
| 117 |
- /> |
|
| 118 |
- <Tool |
|
| 119 |
- Name="VCXMLDataGeneratorTool" |
|
| 120 |
- /> |
|
| 121 |
- <Tool |
|
| 122 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 123 |
- /> |
|
| 124 |
- <Tool |
|
| 125 |
- Name="VCMIDLTool" |
|
| 126 |
- /> |
|
| 127 |
- <Tool |
|
| 128 |
- Name="VCCLCompilerTool" |
|
| 129 |
- UseUnicodeResponseFiles="false" |
|
| 130 |
- AdditionalIncludeDirectories=""$(ProjectDir)";"$(SolutionDir)libclamunrar";"$(ProjectDir)nsis";"$(ProjectDir)regex";"$(ProjectDir)zlib";"$(ProjectDir)pthread";"$(SolutionDir)";"$(ProjectDir)lzma"" |
|
| 131 |
- PreprocessorDefinitions="_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB" |
|
| 132 |
- StringPooling="true" |
|
| 133 |
- ExceptionHandling="0" |
|
| 134 |
- RuntimeLibrary="2" |
|
| 135 |
- StructMemberAlignment="0" |
|
| 136 |
- BufferSecurityCheck="false" |
|
| 137 |
- DefaultCharIsUnsigned="false" |
|
| 138 |
- TreatWChar_tAsBuiltInType="false" |
|
| 139 |
- UsePrecompiledHeader="0" |
|
| 140 |
- WarningLevel="4" |
|
| 141 |
- Detect64BitPortabilityProblems="true" |
|
| 142 |
- DebugInformationFormat="3" |
|
| 143 |
- CallingConvention="0" |
|
| 144 |
- CompileAs="1" |
|
| 145 |
- /> |
|
| 146 |
- <Tool |
|
| 147 |
- Name="VCManagedResourceCompilerTool" |
|
| 148 |
- /> |
|
| 149 |
- <Tool |
|
| 150 |
- Name="VCResourceCompilerTool" |
|
| 151 |
- /> |
|
| 152 |
- <Tool |
|
| 153 |
- Name="VCPreLinkEventTool" |
|
| 154 |
- /> |
|
| 155 |
- <Tool |
|
| 156 |
- Name="VCLinkerTool" |
|
| 157 |
- UseUnicodeResponseFiles="false" |
|
| 158 |
- AdditionalDependencies="ws2_32.lib "$(ProjectDir)pthread\pthreadVC2.lib" "$(TargetDir)\libclamunrar_iface.lib"" |
|
| 159 |
- Version="0.92.1" |
|
| 160 |
- ModuleDefinitionFile="$(InputDir)/libclamav.def" |
|
| 161 |
- SubSystem="2" |
|
| 162 |
- /> |
|
| 163 |
- <Tool |
|
| 164 |
- Name="VCALinkTool" |
|
| 165 |
- /> |
|
| 166 |
- <Tool |
|
| 167 |
- Name="VCManifestTool" |
|
| 168 |
- /> |
|
| 169 |
- <Tool |
|
| 170 |
- Name="VCXDCMakeTool" |
|
| 171 |
- /> |
|
| 172 |
- <Tool |
|
| 173 |
- Name="VCBscMakeTool" |
|
| 174 |
- /> |
|
| 175 |
- <Tool |
|
| 176 |
- Name="VCFxCopTool" |
|
| 177 |
- /> |
|
| 178 |
- <Tool |
|
| 179 |
- Name="VCAppVerifierTool" |
|
| 180 |
- /> |
|
| 181 |
- <Tool |
|
| 182 |
- Name="VCWebDeploymentTool" |
|
| 183 |
- /> |
|
| 184 |
- <Tool |
|
| 185 |
- Name="VCPostBuildEventTool" |
|
| 186 |
- /> |
|
| 187 |
- </Configuration> |
|
| 188 |
- </Configurations> |
|
| 189 |
- <References> |
|
| 190 |
- </References> |
|
| 191 |
- <Files> |
|
| 192 |
- <Filter |
|
| 193 |
- Name="Source Files" |
|
| 194 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 195 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 196 |
- > |
|
| 197 |
- <File |
|
| 198 |
- RelativePath=".\aspack.c" |
|
| 199 |
- > |
|
| 200 |
- </File> |
|
| 201 |
- <File |
|
| 202 |
- RelativePath=".\autoit.c" |
|
| 203 |
- > |
|
| 204 |
- </File> |
|
| 205 |
- <File |
|
| 206 |
- RelativePath=".\binhex.c" |
|
| 207 |
- > |
|
| 208 |
- </File> |
|
| 209 |
- <File |
|
| 210 |
- RelativePath=".\blob.c" |
|
| 211 |
- > |
|
| 212 |
- <FileConfiguration |
|
| 213 |
- Name="Debug|Win32" |
|
| 214 |
- > |
|
| 215 |
- <Tool |
|
| 216 |
- Name="VCCLCompilerTool" |
|
| 217 |
- CompileAs="1" |
|
| 218 |
- /> |
|
| 219 |
- </FileConfiguration> |
|
| 220 |
- </File> |
|
| 221 |
- <File |
|
| 222 |
- RelativePath=".\cab.c" |
|
| 223 |
- > |
|
| 224 |
- </File> |
|
| 225 |
- <File |
|
| 226 |
- RelativePath=".\chmunpack.c" |
|
| 227 |
- > |
|
| 228 |
- </File> |
|
| 229 |
- <File |
|
| 230 |
- RelativePath=".\compat.c" |
|
| 231 |
- > |
|
| 232 |
- </File> |
|
| 233 |
- <File |
|
| 234 |
- RelativePath=".\cvd.c" |
|
| 235 |
- > |
|
| 236 |
- <FileConfiguration |
|
| 237 |
- Name="Debug|Win32" |
|
| 238 |
- > |
|
| 239 |
- <Tool |
|
| 240 |
- Name="VCCLCompilerTool" |
|
| 241 |
- WarningLevel="4" |
|
| 242 |
- /> |
|
| 243 |
- </FileConfiguration> |
|
| 244 |
- <FileConfiguration |
|
| 245 |
- Name="Release|Win32" |
|
| 246 |
- > |
|
| 247 |
- <Tool |
|
| 248 |
- Name="VCCLCompilerTool" |
|
| 249 |
- WarningLevel="4" |
|
| 250 |
- /> |
|
| 251 |
- </FileConfiguration> |
|
| 252 |
- </File> |
|
| 253 |
- <File |
|
| 254 |
- RelativePath=".\dconf.c" |
|
| 255 |
- > |
|
| 256 |
- </File> |
|
| 257 |
- <File |
|
| 258 |
- RelativePath=".\dllmain.c" |
|
| 259 |
- > |
|
| 260 |
- </File> |
|
| 261 |
- <File |
|
| 262 |
- RelativePath=".\dsig.c" |
|
| 263 |
- > |
|
| 264 |
- </File> |
|
| 265 |
- <File |
|
| 266 |
- RelativePath=".\elf.c" |
|
| 267 |
- > |
|
| 268 |
- </File> |
|
| 269 |
- <File |
|
| 270 |
- RelativePath=".\entconv.c" |
|
| 271 |
- > |
|
| 272 |
- </File> |
|
| 273 |
- <File |
|
| 274 |
- RelativePath=".\explode.c" |
|
| 275 |
- > |
|
| 276 |
- </File> |
|
| 277 |
- <File |
|
| 278 |
- RelativePath=".\filetypes.c" |
|
| 279 |
- > |
|
| 280 |
- </File> |
|
| 281 |
- <File |
|
| 282 |
- RelativePath=".\fsg.c" |
|
| 283 |
- > |
|
| 284 |
- </File> |
|
| 285 |
- <File |
|
| 286 |
- RelativePath=".\hashtab.c" |
|
| 287 |
- > |
|
| 288 |
- </File> |
|
| 289 |
- <File |
|
| 290 |
- RelativePath=".\htmlnorm.c" |
|
| 291 |
- > |
|
| 292 |
- </File> |
|
| 293 |
- <File |
|
| 294 |
- RelativePath=".\inflate64.c" |
|
| 295 |
- > |
|
| 296 |
- </File> |
|
| 297 |
- <File |
|
| 298 |
- RelativePath=".\is_tar.c" |
|
| 299 |
- > |
|
| 300 |
- </File> |
|
| 301 |
- <File |
|
| 302 |
- RelativePath=".\line.c" |
|
| 303 |
- > |
|
| 304 |
- </File> |
|
| 305 |
- <File |
|
| 306 |
- RelativePath=".\lzma_iface.c" |
|
| 307 |
- > |
|
| 308 |
- </File> |
|
| 309 |
- <File |
|
| 310 |
- RelativePath=".\matcher-ac.c" |
|
| 311 |
- > |
|
| 312 |
- </File> |
|
| 313 |
- <File |
|
| 314 |
- RelativePath=".\matcher-bm.c" |
|
| 315 |
- > |
|
| 316 |
- </File> |
|
| 317 |
- <File |
|
| 318 |
- RelativePath=".\matcher.c" |
|
| 319 |
- > |
|
| 320 |
- </File> |
|
| 321 |
- <File |
|
| 322 |
- RelativePath=".\mbox.c" |
|
| 323 |
- > |
|
| 324 |
- </File> |
|
| 325 |
- <File |
|
| 326 |
- RelativePath=".\md5.c" |
|
| 327 |
- > |
|
| 328 |
- </File> |
|
| 329 |
- <File |
|
| 330 |
- RelativePath=".\message.c" |
|
| 331 |
- > |
|
| 332 |
- </File> |
|
| 333 |
- <File |
|
| 334 |
- RelativePath=".\mew.c" |
|
| 335 |
- > |
|
| 336 |
- </File> |
|
| 337 |
- <File |
|
| 338 |
- RelativePath=".\msexpand.c" |
|
| 339 |
- > |
|
| 340 |
- </File> |
|
| 341 |
- <File |
|
| 342 |
- RelativePath=".\mspack.c" |
|
| 343 |
- > |
|
| 344 |
- </File> |
|
| 345 |
- <File |
|
| 346 |
- RelativePath=".\ole2_extract.c" |
|
| 347 |
- > |
|
| 348 |
- </File> |
|
| 349 |
- <File |
|
| 350 |
- RelativePath=".\others.c" |
|
| 351 |
- > |
|
| 352 |
- </File> |
|
| 353 |
- <File |
|
| 354 |
- RelativePath=".\packlibs.c" |
|
| 355 |
- > |
|
| 356 |
- </File> |
|
| 357 |
- <File |
|
| 358 |
- RelativePath=".\pdf.c" |
|
| 359 |
- > |
|
| 360 |
- </File> |
|
| 361 |
- <File |
|
| 362 |
- RelativePath=".\pe.c" |
|
| 363 |
- > |
|
| 364 |
- </File> |
|
| 365 |
- <File |
|
| 366 |
- RelativePath=".\petite.c" |
|
| 367 |
- > |
|
| 368 |
- </File> |
|
| 369 |
- <File |
|
| 370 |
- RelativePath=".\phish_domaincheck_db.c" |
|
| 371 |
- > |
|
| 372 |
- </File> |
|
| 373 |
- <File |
|
| 374 |
- RelativePath=".\phish_whitelist.c" |
|
| 375 |
- > |
|
| 376 |
- </File> |
|
| 377 |
- <File |
|
| 378 |
- RelativePath=".\phishcheck.c" |
|
| 379 |
- > |
|
| 380 |
- </File> |
|
| 381 |
- <File |
|
| 382 |
- RelativePath=".\readdb.c" |
|
| 383 |
- > |
|
| 384 |
- </File> |
|
| 385 |
- <File |
|
| 386 |
- RelativePath=".\rebuildpe.c" |
|
| 387 |
- > |
|
| 388 |
- </File> |
|
| 389 |
- <File |
|
| 390 |
- RelativePath=".\regex_list.c" |
|
| 391 |
- > |
|
| 392 |
- </File> |
|
| 393 |
- <File |
|
| 394 |
- RelativePath=".\rtf.c" |
|
| 395 |
- > |
|
| 396 |
- </File> |
|
| 397 |
- <File |
|
| 398 |
- RelativePath=".\scanners.c" |
|
| 399 |
- > |
|
| 400 |
- </File> |
|
| 401 |
- <File |
|
| 402 |
- RelativePath=".\sis.c" |
|
| 403 |
- > |
|
| 404 |
- </File> |
|
| 405 |
- <File |
|
| 406 |
- RelativePath=".\special.c" |
|
| 407 |
- > |
|
| 408 |
- </File> |
|
| 409 |
- <File |
|
| 410 |
- RelativePath=".\spin.c" |
|
| 411 |
- > |
|
| 412 |
- </File> |
|
| 413 |
- <File |
|
| 414 |
- RelativePath=".\str.c" |
|
| 415 |
- > |
|
| 416 |
- </File> |
|
| 417 |
- <File |
|
| 418 |
- RelativePath=".\table.c" |
|
| 419 |
- > |
|
| 420 |
- </File> |
|
| 421 |
- <File |
|
| 422 |
- RelativePath=".\text.c" |
|
| 423 |
- > |
|
| 424 |
- </File> |
|
| 425 |
- <File |
|
| 426 |
- RelativePath=".\textdet.c" |
|
| 427 |
- > |
|
| 428 |
- </File> |
|
| 429 |
- <File |
|
| 430 |
- RelativePath=".\textnorm.c" |
|
| 431 |
- > |
|
| 432 |
- </File> |
|
| 433 |
- <File |
|
| 434 |
- RelativePath=".\tnef.c" |
|
| 435 |
- > |
|
| 436 |
- </File> |
|
| 437 |
- <File |
|
| 438 |
- RelativePath=".\unarj.c" |
|
| 439 |
- > |
|
| 440 |
- </File> |
|
| 441 |
- <File |
|
| 442 |
- RelativePath=".\unsp.c" |
|
| 443 |
- > |
|
| 444 |
- </File> |
|
| 445 |
- <File |
|
| 446 |
- RelativePath=".\untar.c" |
|
| 447 |
- > |
|
| 448 |
- </File> |
|
| 449 |
- <File |
|
| 450 |
- RelativePath=".\unzip.c" |
|
| 451 |
- > |
|
| 452 |
- </File> |
|
| 453 |
- <File |
|
| 454 |
- RelativePath=".\upack.c" |
|
| 455 |
- > |
|
| 456 |
- </File> |
|
| 457 |
- <File |
|
| 458 |
- RelativePath=".\upx.c" |
|
| 459 |
- > |
|
| 460 |
- </File> |
|
| 461 |
- <File |
|
| 462 |
- RelativePath=".\uuencode.c" |
|
| 463 |
- > |
|
| 464 |
- </File> |
|
| 465 |
- <File |
|
| 466 |
- RelativePath=".\vba_extract.c" |
|
| 467 |
- > |
|
| 468 |
- </File> |
|
| 469 |
- <File |
|
| 470 |
- RelativePath=".\wwunpack.c" |
|
| 471 |
- > |
|
| 472 |
- </File> |
|
| 473 |
- <File |
|
| 474 |
- RelativePath=".\yc.c" |
|
| 475 |
- > |
|
| 476 |
- </File> |
|
| 477 |
- <Filter |
|
| 478 |
- Name="nsis" |
|
| 479 |
- > |
|
| 480 |
- <File |
|
| 481 |
- RelativePath=".\nsis\bzlib.c" |
|
| 482 |
- > |
|
| 483 |
- </File> |
|
| 484 |
- <File |
|
| 485 |
- RelativePath=".\nsis\infblock.c" |
|
| 486 |
- > |
|
| 487 |
- </File> |
|
| 488 |
- <File |
|
| 489 |
- RelativePath=".\nsis\LZMADecode.c" |
|
| 490 |
- > |
|
| 491 |
- </File> |
|
| 492 |
- <File |
|
| 493 |
- RelativePath=".\nsis\nulsft.c" |
|
| 494 |
- > |
|
| 495 |
- </File> |
|
| 496 |
- </Filter> |
|
| 497 |
- <Filter |
|
| 498 |
- Name="regex" |
|
| 499 |
- > |
|
| 500 |
- <File |
|
| 501 |
- RelativePath=".\regex\regcomp.c" |
|
| 502 |
- > |
|
| 503 |
- </File> |
|
| 504 |
- <File |
|
| 505 |
- RelativePath=".\regex\regerror.c" |
|
| 506 |
- > |
|
| 507 |
- </File> |
|
| 508 |
- <File |
|
| 509 |
- RelativePath=".\regex\regexec.c" |
|
| 510 |
- > |
|
| 511 |
- </File> |
|
| 512 |
- <File |
|
| 513 |
- RelativePath=".\regex\regfree.c" |
|
| 514 |
- > |
|
| 515 |
- </File> |
|
| 516 |
- <File |
|
| 517 |
- RelativePath=".\regex\strlcpy.c" |
|
| 518 |
- > |
|
| 519 |
- </File> |
|
| 520 |
- </Filter> |
|
| 521 |
- <Filter |
|
| 522 |
- Name="zlib" |
|
| 523 |
- > |
|
| 524 |
- <File |
|
| 525 |
- RelativePath=".\zlib\adler32.c" |
|
| 526 |
- > |
|
| 527 |
- </File> |
|
| 528 |
- <File |
|
| 529 |
- RelativePath=".\zlib\compress.c" |
|
| 530 |
- > |
|
| 531 |
- </File> |
|
| 532 |
- <File |
|
| 533 |
- RelativePath=".\zlib\crc32.c" |
|
| 534 |
- > |
|
| 535 |
- </File> |
|
| 536 |
- <File |
|
| 537 |
- RelativePath=".\zlib\deflate.c" |
|
| 538 |
- > |
|
| 539 |
- </File> |
|
| 540 |
- <File |
|
| 541 |
- RelativePath=".\zlib\gzio.c" |
|
| 542 |
- > |
|
| 543 |
- </File> |
|
| 544 |
- <File |
|
| 545 |
- RelativePath=".\zlib\infback.c" |
|
| 546 |
- > |
|
| 547 |
- </File> |
|
| 548 |
- <File |
|
| 549 |
- RelativePath=".\zlib\inffast.c" |
|
| 550 |
- > |
|
| 551 |
- </File> |
|
| 552 |
- <File |
|
| 553 |
- RelativePath=".\zlib\inflate.c" |
|
| 554 |
- > |
|
| 555 |
- </File> |
|
| 556 |
- <File |
|
| 557 |
- RelativePath=".\zlib\inftrees.c" |
|
| 558 |
- > |
|
| 559 |
- </File> |
|
| 560 |
- <File |
|
| 561 |
- RelativePath=".\zlib\minigzip.c" |
|
| 562 |
- > |
|
| 563 |
- </File> |
|
| 564 |
- <File |
|
| 565 |
- RelativePath=".\zlib\trees.c" |
|
| 566 |
- > |
|
| 567 |
- </File> |
|
| 568 |
- <File |
|
| 569 |
- RelativePath=".\zlib\uncompr.c" |
|
| 570 |
- > |
|
| 571 |
- </File> |
|
| 572 |
- <File |
|
| 573 |
- RelativePath=".\zlib\zutil.c" |
|
| 574 |
- > |
|
| 575 |
- </File> |
|
| 576 |
- </Filter> |
|
| 577 |
- <Filter |
|
| 578 |
- Name="lzma" |
|
| 579 |
- > |
|
| 580 |
- <File |
|
| 581 |
- RelativePath=".\lzma\LzmaStateDecode.c" |
|
| 582 |
- > |
|
| 583 |
- </File> |
|
| 584 |
- </Filter> |
|
| 585 |
- </Filter> |
|
| 586 |
- <Filter |
|
| 587 |
- Name="Header Files" |
|
| 588 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 589 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 590 |
- > |
|
| 591 |
- <File |
|
| 592 |
- RelativePath=".\aspack.h" |
|
| 593 |
- > |
|
| 594 |
- </File> |
|
| 595 |
- <File |
|
| 596 |
- RelativePath=".\autoit.h" |
|
| 597 |
- > |
|
| 598 |
- </File> |
|
| 599 |
- <File |
|
| 600 |
- RelativePath=".\binhex.h" |
|
| 601 |
- > |
|
| 602 |
- </File> |
|
| 603 |
- <File |
|
| 604 |
- RelativePath=".\blob.h" |
|
| 605 |
- > |
|
| 606 |
- </File> |
|
| 607 |
- <File |
|
| 608 |
- RelativePath=".\cab.h" |
|
| 609 |
- > |
|
| 610 |
- </File> |
|
| 611 |
- <File |
|
| 612 |
- RelativePath=".\chmunpack.h" |
|
| 613 |
- > |
|
| 614 |
- </File> |
|
| 615 |
- <File |
|
| 616 |
- RelativePath=".\clamav-config.h" |
|
| 617 |
- > |
|
| 618 |
- </File> |
|
| 619 |
- <File |
|
| 620 |
- RelativePath=".\clamav.h" |
|
| 621 |
- > |
|
| 622 |
- </File> |
|
| 623 |
- <File |
|
| 624 |
- RelativePath=".\cltypes.h" |
|
| 625 |
- > |
|
| 626 |
- </File> |
|
| 627 |
- <File |
|
| 628 |
- RelativePath=".\compat.h" |
|
| 629 |
- > |
|
| 630 |
- </File> |
|
| 631 |
- <File |
|
| 632 |
- RelativePath=".\cvd.h" |
|
| 633 |
- > |
|
| 634 |
- </File> |
|
| 635 |
- <File |
|
| 636 |
- RelativePath=".\dconf.h" |
|
| 637 |
- > |
|
| 638 |
- </File> |
|
| 639 |
- <File |
|
| 640 |
- RelativePath=".\dsig.h" |
|
| 641 |
- > |
|
| 642 |
- </File> |
|
| 643 |
- <File |
|
| 644 |
- RelativePath=".\elf.h" |
|
| 645 |
- > |
|
| 646 |
- </File> |
|
| 647 |
- <File |
|
| 648 |
- RelativePath=".\entconv.h" |
|
| 649 |
- > |
|
| 650 |
- </File> |
|
| 651 |
- <File |
|
| 652 |
- RelativePath=".\eventlog.h" |
|
| 653 |
- > |
|
| 654 |
- </File> |
|
| 655 |
- <File |
|
| 656 |
- RelativePath=".\execs.h" |
|
| 657 |
- > |
|
| 658 |
- </File> |
|
| 659 |
- <File |
|
| 660 |
- RelativePath=".\explode.h" |
|
| 661 |
- > |
|
| 662 |
- </File> |
|
| 663 |
- <File |
|
| 664 |
- RelativePath=".\filetypes.h" |
|
| 665 |
- > |
|
| 666 |
- </File> |
|
| 667 |
- <File |
|
| 668 |
- RelativePath=".\fsg.h" |
|
| 669 |
- > |
|
| 670 |
- </File> |
|
| 671 |
- <File |
|
| 672 |
- RelativePath=".\hashtab.h" |
|
| 673 |
- > |
|
| 674 |
- </File> |
|
| 675 |
- <File |
|
| 676 |
- RelativePath=".\htmlnorm.h" |
|
| 677 |
- > |
|
| 678 |
- </File> |
|
| 679 |
- <File |
|
| 680 |
- RelativePath=".\iana_tld.h" |
|
| 681 |
- > |
|
| 682 |
- </File> |
|
| 683 |
- <File |
|
| 684 |
- RelativePath=".\inflate64.h" |
|
| 685 |
- > |
|
| 686 |
- </File> |
|
| 687 |
- <File |
|
| 688 |
- RelativePath=".\is_tar.h" |
|
| 689 |
- > |
|
| 690 |
- </File> |
|
| 691 |
- <File |
|
| 692 |
- RelativePath=".\libclamav.h" |
|
| 693 |
- > |
|
| 694 |
- </File> |
|
| 695 |
- <File |
|
| 696 |
- RelativePath=".\line.h" |
|
| 697 |
- > |
|
| 698 |
- </File> |
|
| 699 |
- <File |
|
| 700 |
- RelativePath=".\lzma_iface.h" |
|
| 701 |
- > |
|
| 702 |
- </File> |
|
| 703 |
- <File |
|
| 704 |
- RelativePath=".\matcher-ac.h" |
|
| 705 |
- > |
|
| 706 |
- </File> |
|
| 707 |
- <File |
|
| 708 |
- RelativePath=".\matcher-bm.h" |
|
| 709 |
- > |
|
| 710 |
- </File> |
|
| 711 |
- <File |
|
| 712 |
- RelativePath=".\matcher.h" |
|
| 713 |
- > |
|
| 714 |
- </File> |
|
| 715 |
- <File |
|
| 716 |
- RelativePath=".\mbox.h" |
|
| 717 |
- > |
|
| 718 |
- </File> |
|
| 719 |
- <File |
|
| 720 |
- RelativePath=".\md5.h" |
|
| 721 |
- > |
|
| 722 |
- </File> |
|
| 723 |
- <File |
|
| 724 |
- RelativePath=".\message.h" |
|
| 725 |
- > |
|
| 726 |
- </File> |
|
| 727 |
- <File |
|
| 728 |
- RelativePath=".\mew.h" |
|
| 729 |
- > |
|
| 730 |
- </File> |
|
| 731 |
- <File |
|
| 732 |
- RelativePath=".\msexpand.h" |
|
| 733 |
- > |
|
| 734 |
- </File> |
|
| 735 |
- <File |
|
| 736 |
- RelativePath=".\mspack.h" |
|
| 737 |
- > |
|
| 738 |
- </File> |
|
| 739 |
- <File |
|
| 740 |
- RelativePath=".\ole2_extract.h" |
|
| 741 |
- > |
|
| 742 |
- </File> |
|
| 743 |
- <File |
|
| 744 |
- RelativePath=".\others.h" |
|
| 745 |
- > |
|
| 746 |
- </File> |
|
| 747 |
- <File |
|
| 748 |
- RelativePath=".\packlibs.h" |
|
| 749 |
- > |
|
| 750 |
- </File> |
|
| 751 |
- <File |
|
| 752 |
- RelativePath=".\pdf.h" |
|
| 753 |
- > |
|
| 754 |
- </File> |
|
| 755 |
- <File |
|
| 756 |
- RelativePath=".\pe.h" |
|
| 757 |
- > |
|
| 758 |
- </File> |
|
| 759 |
- <File |
|
| 760 |
- RelativePath=".\petite.h" |
|
| 761 |
- > |
|
| 762 |
- </File> |
|
| 763 |
- <File |
|
| 764 |
- RelativePath=".\phish_domaincheck_db.h" |
|
| 765 |
- > |
|
| 766 |
- </File> |
|
| 767 |
- <File |
|
| 768 |
- RelativePath=".\phish_whitelist.h" |
|
| 769 |
- > |
|
| 770 |
- </File> |
|
| 771 |
- <File |
|
| 772 |
- RelativePath=".\phishcheck.h" |
|
| 773 |
- > |
|
| 774 |
- </File> |
|
| 775 |
- <File |
|
| 776 |
- RelativePath=".\readdb.h" |
|
| 777 |
- > |
|
| 778 |
- </File> |
|
| 779 |
- <File |
|
| 780 |
- RelativePath=".\rebuildpe.h" |
|
| 781 |
- > |
|
| 782 |
- </File> |
|
| 783 |
- <File |
|
| 784 |
- RelativePath=".\regex_list.h" |
|
| 785 |
- > |
|
| 786 |
- </File> |
|
| 787 |
- <File |
|
| 788 |
- RelativePath=".\resource.h" |
|
| 789 |
- > |
|
| 790 |
- </File> |
|
| 791 |
- <File |
|
| 792 |
- RelativePath=".\rtf.h" |
|
| 793 |
- > |
|
| 794 |
- </File> |
|
| 795 |
- <File |
|
| 796 |
- RelativePath=".\scanners.h" |
|
| 797 |
- > |
|
| 798 |
- </File> |
|
| 799 |
- <File |
|
| 800 |
- RelativePath=".\sis.h" |
|
| 801 |
- > |
|
| 802 |
- </File> |
|
| 803 |
- <File |
|
| 804 |
- RelativePath=".\special.h" |
|
| 805 |
- > |
|
| 806 |
- </File> |
|
| 807 |
- <File |
|
| 808 |
- RelativePath=".\spin.h" |
|
| 809 |
- > |
|
| 810 |
- </File> |
|
| 811 |
- <File |
|
| 812 |
- RelativePath=".\stdafx.h" |
|
| 813 |
- > |
|
| 814 |
- </File> |
|
| 815 |
- <File |
|
| 816 |
- RelativePath=".\str.h" |
|
| 817 |
- > |
|
| 818 |
- </File> |
|
| 819 |
- <File |
|
| 820 |
- RelativePath=".\syslog.h" |
|
| 821 |
- > |
|
| 822 |
- </File> |
|
| 823 |
- <File |
|
| 824 |
- RelativePath=".\table.h" |
|
| 825 |
- > |
|
| 826 |
- </File> |
|
| 827 |
- <File |
|
| 828 |
- RelativePath=".\target.h" |
|
| 829 |
- > |
|
| 830 |
- </File> |
|
| 831 |
- <File |
|
| 832 |
- RelativePath=".\text.h" |
|
| 833 |
- > |
|
| 834 |
- </File> |
|
| 835 |
- <File |
|
| 836 |
- RelativePath=".\textdet.h" |
|
| 837 |
- > |
|
| 838 |
- </File> |
|
| 839 |
- <File |
|
| 840 |
- RelativePath=".\textnorm.h" |
|
| 841 |
- > |
|
| 842 |
- </File> |
|
| 843 |
- <File |
|
| 844 |
- RelativePath=".\tnef.h" |
|
| 845 |
- > |
|
| 846 |
- </File> |
|
| 847 |
- <File |
|
| 848 |
- RelativePath=".\unarj.h" |
|
| 849 |
- > |
|
| 850 |
- </File> |
|
| 851 |
- <File |
|
| 852 |
- RelativePath=".\unsp.h" |
|
| 853 |
- > |
|
| 854 |
- </File> |
|
| 855 |
- <File |
|
| 856 |
- RelativePath=".\untar.h" |
|
| 857 |
- > |
|
| 858 |
- </File> |
|
| 859 |
- <File |
|
| 860 |
- RelativePath=".\unzip.h" |
|
| 861 |
- > |
|
| 862 |
- </File> |
|
| 863 |
- <File |
|
| 864 |
- RelativePath=".\upack.h" |
|
| 865 |
- > |
|
| 866 |
- </File> |
|
| 867 |
- <File |
|
| 868 |
- RelativePath=".\upx.h" |
|
| 869 |
- > |
|
| 870 |
- </File> |
|
| 871 |
- <File |
|
| 872 |
- RelativePath=".\uuencode.h" |
|
| 873 |
- > |
|
| 874 |
- </File> |
|
| 875 |
- <File |
|
| 876 |
- RelativePath=".\vba_extract.h" |
|
| 877 |
- > |
|
| 878 |
- </File> |
|
| 879 |
- <File |
|
| 880 |
- RelativePath=".\wwunpack.h" |
|
| 881 |
- > |
|
| 882 |
- </File> |
|
| 883 |
- <File |
|
| 884 |
- RelativePath=".\yc.h" |
|
| 885 |
- > |
|
| 886 |
- </File> |
|
| 887 |
- <File |
|
| 888 |
- RelativePath=".\zconf.h" |
|
| 889 |
- > |
|
| 890 |
- </File> |
|
| 891 |
- <File |
|
| 892 |
- RelativePath=".\zlib.h" |
|
| 893 |
- > |
|
| 894 |
- </File> |
|
| 895 |
- <Filter |
|
| 896 |
- Name="nsis" |
|
| 897 |
- > |
|
| 898 |
- <File |
|
| 899 |
- RelativePath=".\nsis\bzlib_private.h" |
|
| 900 |
- > |
|
| 901 |
- </File> |
|
| 902 |
- <File |
|
| 903 |
- RelativePath=".\nsis\LZMADecode.h" |
|
| 904 |
- > |
|
| 905 |
- </File> |
|
| 906 |
- <File |
|
| 907 |
- RelativePath=".\nsis\nsis_bzlib.h" |
|
| 908 |
- > |
|
| 909 |
- </File> |
|
| 910 |
- <File |
|
| 911 |
- RelativePath=".\nsis\nsis_zconf.h" |
|
| 912 |
- > |
|
| 913 |
- </File> |
|
| 914 |
- <File |
|
| 915 |
- RelativePath=".\nsis\nsis_zlib.h" |
|
| 916 |
- > |
|
| 917 |
- </File> |
|
| 918 |
- <File |
|
| 919 |
- RelativePath=".\nsis\nsis_zutil.h" |
|
| 920 |
- > |
|
| 921 |
- </File> |
|
| 922 |
- <File |
|
| 923 |
- RelativePath=".\nsis\nulsft.h" |
|
| 924 |
- > |
|
| 925 |
- </File> |
|
| 926 |
- </Filter> |
|
| 927 |
- <Filter |
|
| 928 |
- Name="regex" |
|
| 929 |
- > |
|
| 930 |
- <File |
|
| 931 |
- RelativePath=".\regex\cclass.h" |
|
| 932 |
- > |
|
| 933 |
- </File> |
|
| 934 |
- <File |
|
| 935 |
- RelativePath=".\regex\cname.h" |
|
| 936 |
- > |
|
| 937 |
- </File> |
|
| 938 |
- <File |
|
| 939 |
- RelativePath=".\regex\regex.h" |
|
| 940 |
- > |
|
| 941 |
- </File> |
|
| 942 |
- <File |
|
| 943 |
- RelativePath=".\regex\regex2.h" |
|
| 944 |
- > |
|
| 945 |
- </File> |
|
| 946 |
- <File |
|
| 947 |
- RelativePath=".\regex\utils.h" |
|
| 948 |
- > |
|
| 949 |
- </File> |
|
| 950 |
- </Filter> |
|
| 951 |
- <Filter |
|
| 952 |
- Name="zlib" |
|
| 953 |
- > |
|
| 954 |
- <File |
|
| 955 |
- RelativePath=".\zlib\crc32.h" |
|
| 956 |
- > |
|
| 957 |
- </File> |
|
| 958 |
- <File |
|
| 959 |
- RelativePath=".\zlib\deflate.h" |
|
| 960 |
- > |
|
| 961 |
- </File> |
|
| 962 |
- <File |
|
| 963 |
- RelativePath=".\zlib\inffast.h" |
|
| 964 |
- > |
|
| 965 |
- </File> |
|
| 966 |
- <File |
|
| 967 |
- RelativePath=".\zlib\inffixed.h" |
|
| 968 |
- > |
|
| 969 |
- </File> |
|
| 970 |
- <File |
|
| 971 |
- RelativePath=".\zlib\inflate.h" |
|
| 972 |
- > |
|
| 973 |
- </File> |
|
| 974 |
- <File |
|
| 975 |
- RelativePath=".\zlib\inftrees.h" |
|
| 976 |
- > |
|
| 977 |
- </File> |
|
| 978 |
- <File |
|
| 979 |
- RelativePath=".\zlib\trees.h" |
|
| 980 |
- > |
|
| 981 |
- </File> |
|
| 982 |
- <File |
|
| 983 |
- RelativePath=".\zlib\zconf.h" |
|
| 984 |
- > |
|
| 985 |
- </File> |
|
| 986 |
- <File |
|
| 987 |
- RelativePath=".\zlib\zconf.in.h" |
|
| 988 |
- > |
|
| 989 |
- </File> |
|
| 990 |
- <File |
|
| 991 |
- RelativePath=".\zlib\zlib.h" |
|
| 992 |
- > |
|
| 993 |
- </File> |
|
| 994 |
- <File |
|
| 995 |
- RelativePath=".\zlib\zutil.h" |
|
| 996 |
- > |
|
| 997 |
- </File> |
|
| 998 |
- </Filter> |
|
| 999 |
- <Filter |
|
| 1000 |
- Name="lzma" |
|
| 1001 |
- > |
|
| 1002 |
- <File |
|
| 1003 |
- RelativePath=".\lzma\LzmaStateDecode.h" |
|
| 1004 |
- > |
|
| 1005 |
- </File> |
|
| 1006 |
- <File |
|
| 1007 |
- RelativePath=".\lzma\LzmaTypes.h" |
|
| 1008 |
- > |
|
| 1009 |
- </File> |
|
| 1010 |
- </Filter> |
|
| 1011 |
- </Filter> |
|
| 1012 |
- <Filter |
|
| 1013 |
- Name="Resource Files" |
|
| 1014 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 1015 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 1016 |
- > |
|
| 1017 |
- <File |
|
| 1018 |
- RelativePath=".\libclamav.def" |
|
| 1019 |
- > |
|
| 1020 |
- </File> |
|
| 1021 |
- </Filter> |
|
| 1022 |
- <File |
|
| 1023 |
- RelativePath=".\ReadMe.txt" |
|
| 1024 |
- > |
|
| 1025 |
- </File> |
|
| 1026 |
- </Files> |
|
| 1027 |
- <Globals> |
|
| 1028 |
- </Globals> |
|
| 1029 |
-</VisualStudioProject> |
| 1030 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="$(OutDir)\clamd.exe" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="--temp=d: --debug" |
|
| 15 |
- Attach="true" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="0" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="$(OutDir)\clamd.exe" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="--temp=d: --debug" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="0" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// libclamav.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,32 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
-// Modify the following defines if you have to target a platform prior to the ones specified below. |
|
| 9 |
-// Refer to MSDN for the latest info on corresponding values for different platforms. |
|
| 10 |
-#ifndef WINVER // Allow use of features specific to Windows XP or later. |
|
| 11 |
-#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows. |
|
| 12 |
-#endif |
|
| 13 |
- |
|
| 14 |
-#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. |
|
| 15 |
-#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. |
|
| 16 |
-#endif |
|
| 17 |
- |
|
| 18 |
-#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. |
|
| 19 |
-#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. |
|
| 20 |
-#endif |
|
| 21 |
- |
|
| 22 |
-#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. |
|
| 23 |
-#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. |
|
| 24 |
-#endif |
|
| 25 |
- |
|
| 26 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 27 |
-// Windows Header Files: |
|
| 28 |
-#include <windows.h> |
|
| 29 |
- |
|
| 30 |
- |
|
| 31 |
- |
|
| 32 |
-// TODO: reference additional headers your program requires here |
| 33 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,38 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- * Copyright (C) 2008 Nigel Horne <njh@bandsman.co.uk> |
|
| 3 |
- * |
|
| 4 |
- * This program is free software; you can redistribute it and/or modify |
|
| 5 |
- * it under the terms of the GNU General Public License as published by |
|
| 6 |
- * the Free Software Foundation; either version 2 of the License, or |
|
| 7 |
- * (at your option) any later version. |
|
| 8 |
- * |
|
| 9 |
- * This program is distributed in the hope that it will be useful, |
|
| 10 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
- * GNU General Public License for more details. |
|
| 13 |
- * |
|
| 14 |
- * You should have received a copy of the GNU General Public License |
|
| 15 |
- * along with this program; if not, write to the Free Software |
|
| 16 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 17 |
- * MA 02110-1301, USA. |
|
| 18 |
- * |
|
| 19 |
- * Syslog compatibility for Windows |
|
| 20 |
- * Tested under Microsoft Visual Studio 2005 |
|
| 21 |
- */ |
|
| 22 |
- |
|
| 23 |
-#include "eventlog.h" /* generated from eventlog.mc by mc -U eventlog.mc */ |
|
| 24 |
- |
|
| 25 |
-#define LOG_ERR EVENTLOG_ERROR_TYPE /* or EVENTLOG_AUDIT_FAILURE? */ |
|
| 26 |
-#define LOG_WARNING EVENTLOG_WARNING_TYPE |
|
| 27 |
-#define LOG_INFO EVENTLOG_INFORMATION_TYPE |
|
| 28 |
-#define LOG_DEBUG EVENTLOG_INFORMATION_TYPE |
|
| 29 |
- |
|
| 30 |
-/* Only support LOG_MAIL and LOG_LOCAL facilities for now */ |
|
| 31 |
-#define LOG_MAIL (2<<3) |
|
| 32 |
-#define LOG_LOCAL6 (22<<3) |
|
| 33 |
- |
|
| 34 |
-#define LOG_PID 0x01 |
|
| 35 |
- |
|
| 36 |
-void openlog(const char *name, int options, int facility); |
|
| 37 |
-void closelog(void); |
|
| 38 |
-void syslog(int level, const char *format, ...); |
|
| 39 | 1 |
\ No newline at end of file |
| 40 | 2 |
deleted file mode 100755 |
| ... | ... |
@@ -1,60 +0,0 @@ |
| 1 |
-/* automatically generated by configure */ |
|
| 2 |
-/* on Tue Jul 25 10:34:15 GMTDT 2006 */ |
|
| 3 |
-/* target uppercase defines */ |
|
| 4 |
- |
|
| 5 |
-#ifndef TARGET_OS_WINDOWS |
|
| 6 |
-#define TARGET_OS_WINDOWS "windows" |
|
| 7 |
-#endif |
|
| 8 |
- |
|
| 9 |
-#ifndef TARGET_OS_TYPE |
|
| 10 |
-#define TARGET_OS_TYPE "windows" |
|
| 11 |
-#endif |
|
| 12 |
- |
|
| 13 |
-#ifndef TARGET_CPU_I686 |
|
| 14 |
-#define TARGET_CPU_I686 "i686" |
|
| 15 |
-#endif |
|
| 16 |
- |
|
| 17 |
-#ifndef TARGET_CPU_I |
|
| 18 |
-#define TARGET_CPU_I "i686" |
|
| 19 |
-#endif |
|
| 20 |
- |
|
| 21 |
-#ifndef TARGET_CPU_TYPE |
|
| 22 |
-#define TARGET_CPU_TYPE "i686" |
|
| 23 |
-#endif |
|
| 24 |
- |
|
| 25 |
-#ifndef TARGET_ARCH_I386 |
|
| 26 |
-#define TARGET_ARCH_I386 "i386" |
|
| 27 |
-#endif |
|
| 28 |
- |
|
| 29 |
-#ifndef TARGET_ARCH_TYPE |
|
| 30 |
-#define TARGET_ARCH_TYPE "i386" |
|
| 31 |
-#endif |
|
| 32 |
-/* host uppercase defines */ |
|
| 33 |
- |
|
| 34 |
-#ifndef HOST_OS_WINDOWS |
|
| 35 |
-#define HOST_OS_WINDOWS "windows" |
|
| 36 |
-#endif |
|
| 37 |
- |
|
| 38 |
-#ifndef HOST_OS_TYPE |
|
| 39 |
-#define HOST_OS_TYPE "cygwin" |
|
| 40 |
-#endif |
|
| 41 |
- |
|
| 42 |
-#ifndef HOST_CPU_I686 |
|
| 43 |
-#define HOST_CPU_I686 "i686" |
|
| 44 |
-#endif |
|
| 45 |
- |
|
| 46 |
-#ifndef HOST_CPU_I |
|
| 47 |
-#define HOST_CPU_I "i686" |
|
| 48 |
-#endif |
|
| 49 |
- |
|
| 50 |
-#ifndef HOST_CPU_TYPE |
|
| 51 |
-#define HOST_CPU_TYPE "i686" |
|
| 52 |
-#endif |
|
| 53 |
- |
|
| 54 |
-#ifndef HOST_ARCH_I386 |
|
| 55 |
-#define HOST_ARCH_I386 "i386" |
|
| 56 |
-#endif |
|
| 57 |
- |
|
| 58 |
-#ifndef HOST_ARCH_TYPE |
|
| 59 |
-#define HOST_ARCH_TYPE "i386" |
|
| 60 |
-#endif |
| 9 | 2 |
deleted file mode 100755 |
| ... | ... |
@@ -1,287 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="libclamunrar" |
|
| 6 |
- ProjectGUID="{5DDAE32F-E48B-4AEC-AF14-360C58069AF3}"
|
|
| 7 |
- RootNamespace="libclamunrar" |
|
| 8 |
- Keyword="MFCDLLProj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="2" |
|
| 23 |
- UseOfMFC="0" |
|
| 24 |
- CharacterSet="0" |
|
| 25 |
- > |
|
| 26 |
- <Tool |
|
| 27 |
- Name="VCPreBuildEventTool" |
|
| 28 |
- /> |
|
| 29 |
- <Tool |
|
| 30 |
- Name="VCCustomBuildTool" |
|
| 31 |
- /> |
|
| 32 |
- <Tool |
|
| 33 |
- Name="VCXMLDataGeneratorTool" |
|
| 34 |
- /> |
|
| 35 |
- <Tool |
|
| 36 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 37 |
- /> |
|
| 38 |
- <Tool |
|
| 39 |
- Name="VCMIDLTool" |
|
| 40 |
- PreprocessorDefinitions="_DEBUG" |
|
| 41 |
- MkTypLibCompatible="false" |
|
| 42 |
- /> |
|
| 43 |
- <Tool |
|
| 44 |
- Name="VCCLCompilerTool" |
|
| 45 |
- UseUnicodeResponseFiles="false" |
|
| 46 |
- Optimization="0" |
|
| 47 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 48 |
- PreprocessorDefinitions="_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_DEBUG" |
|
| 49 |
- StringPooling="true" |
|
| 50 |
- MinimalRebuild="true" |
|
| 51 |
- ExceptionHandling="0" |
|
| 52 |
- BasicRuntimeChecks="3" |
|
| 53 |
- RuntimeLibrary="3" |
|
| 54 |
- UsePrecompiledHeader="0" |
|
| 55 |
- WarningLevel="4" |
|
| 56 |
- Detect64BitPortabilityProblems="true" |
|
| 57 |
- DebugInformationFormat="4" |
|
| 58 |
- CompileAs="1" |
|
| 59 |
- /> |
|
| 60 |
- <Tool |
|
| 61 |
- Name="VCManagedResourceCompilerTool" |
|
| 62 |
- /> |
|
| 63 |
- <Tool |
|
| 64 |
- Name="VCResourceCompilerTool" |
|
| 65 |
- PreprocessorDefinitions="_DEBUG" |
|
| 66 |
- Culture="1033" |
|
| 67 |
- AdditionalIncludeDirectories="$(IntDir)" |
|
| 68 |
- /> |
|
| 69 |
- <Tool |
|
| 70 |
- Name="VCPreLinkEventTool" |
|
| 71 |
- /> |
|
| 72 |
- <Tool |
|
| 73 |
- Name="VCLinkerTool" |
|
| 74 |
- UseUnicodeResponseFiles="false" |
|
| 75 |
- Version="0.92.1" |
|
| 76 |
- LinkIncremental="2" |
|
| 77 |
- ModuleDefinitionFile="$(InputDir)/libclamunrar.def" |
|
| 78 |
- GenerateDebugInformation="true" |
|
| 79 |
- SubSystem="2" |
|
| 80 |
- TargetMachine="1" |
|
| 81 |
- /> |
|
| 82 |
- <Tool |
|
| 83 |
- Name="VCALinkTool" |
|
| 84 |
- /> |
|
| 85 |
- <Tool |
|
| 86 |
- Name="VCManifestTool" |
|
| 87 |
- /> |
|
| 88 |
- <Tool |
|
| 89 |
- Name="VCXDCMakeTool" |
|
| 90 |
- /> |
|
| 91 |
- <Tool |
|
| 92 |
- Name="VCBscMakeTool" |
|
| 93 |
- /> |
|
| 94 |
- <Tool |
|
| 95 |
- Name="VCFxCopTool" |
|
| 96 |
- /> |
|
| 97 |
- <Tool |
|
| 98 |
- Name="VCAppVerifierTool" |
|
| 99 |
- /> |
|
| 100 |
- <Tool |
|
| 101 |
- Name="VCWebDeploymentTool" |
|
| 102 |
- /> |
|
| 103 |
- <Tool |
|
| 104 |
- Name="VCPostBuildEventTool" |
|
| 105 |
- /> |
|
| 106 |
- </Configuration> |
|
| 107 |
- <Configuration |
|
| 108 |
- Name="Release|Win32" |
|
| 109 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 110 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 111 |
- ConfigurationType="2" |
|
| 112 |
- UseOfMFC="0" |
|
| 113 |
- CharacterSet="0" |
|
| 114 |
- WholeProgramOptimization="1" |
|
| 115 |
- > |
|
| 116 |
- <Tool |
|
| 117 |
- Name="VCPreBuildEventTool" |
|
| 118 |
- /> |
|
| 119 |
- <Tool |
|
| 120 |
- Name="VCCustomBuildTool" |
|
| 121 |
- /> |
|
| 122 |
- <Tool |
|
| 123 |
- Name="VCXMLDataGeneratorTool" |
|
| 124 |
- /> |
|
| 125 |
- <Tool |
|
| 126 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 127 |
- /> |
|
| 128 |
- <Tool |
|
| 129 |
- Name="VCMIDLTool" |
|
| 130 |
- PreprocessorDefinitions="NDEBUG" |
|
| 131 |
- MkTypLibCompatible="false" |
|
| 132 |
- /> |
|
| 133 |
- <Tool |
|
| 134 |
- Name="VCCLCompilerTool" |
|
| 135 |
- UseUnicodeResponseFiles="false" |
|
| 136 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 137 |
- PreprocessorDefinitions="_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB" |
|
| 138 |
- StringPooling="true" |
|
| 139 |
- ExceptionHandling="0" |
|
| 140 |
- RuntimeLibrary="2" |
|
| 141 |
- UsePrecompiledHeader="0" |
|
| 142 |
- WarningLevel="4" |
|
| 143 |
- Detect64BitPortabilityProblems="true" |
|
| 144 |
- DebugInformationFormat="3" |
|
| 145 |
- CompileAs="1" |
|
| 146 |
- /> |
|
| 147 |
- <Tool |
|
| 148 |
- Name="VCManagedResourceCompilerTool" |
|
| 149 |
- /> |
|
| 150 |
- <Tool |
|
| 151 |
- Name="VCResourceCompilerTool" |
|
| 152 |
- PreprocessorDefinitions="NDEBUG" |
|
| 153 |
- Culture="1033" |
|
| 154 |
- AdditionalIncludeDirectories="$(IntDir)" |
|
| 155 |
- /> |
|
| 156 |
- <Tool |
|
| 157 |
- Name="VCPreLinkEventTool" |
|
| 158 |
- /> |
|
| 159 |
- <Tool |
|
| 160 |
- Name="VCLinkerTool" |
|
| 161 |
- UseUnicodeResponseFiles="false" |
|
| 162 |
- Version="0.92.1" |
|
| 163 |
- LinkIncremental="1" |
|
| 164 |
- ModuleDefinitionFile="$(InputDir)/libclamunrar.def" |
|
| 165 |
- GenerateDebugInformation="true" |
|
| 166 |
- SubSystem="2" |
|
| 167 |
- OptimizeReferences="2" |
|
| 168 |
- EnableCOMDATFolding="2" |
|
| 169 |
- TargetMachine="1" |
|
| 170 |
- /> |
|
| 171 |
- <Tool |
|
| 172 |
- Name="VCALinkTool" |
|
| 173 |
- /> |
|
| 174 |
- <Tool |
|
| 175 |
- Name="VCManifestTool" |
|
| 176 |
- /> |
|
| 177 |
- <Tool |
|
| 178 |
- Name="VCXDCMakeTool" |
|
| 179 |
- /> |
|
| 180 |
- <Tool |
|
| 181 |
- Name="VCBscMakeTool" |
|
| 182 |
- /> |
|
| 183 |
- <Tool |
|
| 184 |
- Name="VCFxCopTool" |
|
| 185 |
- /> |
|
| 186 |
- <Tool |
|
| 187 |
- Name="VCAppVerifierTool" |
|
| 188 |
- /> |
|
| 189 |
- <Tool |
|
| 190 |
- Name="VCWebDeploymentTool" |
|
| 191 |
- /> |
|
| 192 |
- <Tool |
|
| 193 |
- Name="VCPostBuildEventTool" |
|
| 194 |
- /> |
|
| 195 |
- </Configuration> |
|
| 196 |
- </Configurations> |
|
| 197 |
- <References> |
|
| 198 |
- </References> |
|
| 199 |
- <Files> |
|
| 200 |
- <Filter |
|
| 201 |
- Name="Source Files" |
|
| 202 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 203 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 204 |
- > |
|
| 205 |
- <File |
|
| 206 |
- RelativePath=".\unrar.c" |
|
| 207 |
- > |
|
| 208 |
- </File> |
|
| 209 |
- <File |
|
| 210 |
- RelativePath=".\unrar15.c" |
|
| 211 |
- > |
|
| 212 |
- </File> |
|
| 213 |
- <File |
|
| 214 |
- RelativePath=".\unrar20.c" |
|
| 215 |
- > |
|
| 216 |
- </File> |
|
| 217 |
- <File |
|
| 218 |
- RelativePath=".\unrarcmd.c" |
|
| 219 |
- > |
|
| 220 |
- </File> |
|
| 221 |
- <File |
|
| 222 |
- RelativePath=".\unrarfilter.c" |
|
| 223 |
- > |
|
| 224 |
- </File> |
|
| 225 |
- <File |
|
| 226 |
- RelativePath=".\unrarhlp.c" |
|
| 227 |
- > |
|
| 228 |
- </File> |
|
| 229 |
- <File |
|
| 230 |
- RelativePath=".\unrarppm.c" |
|
| 231 |
- > |
|
| 232 |
- </File> |
|
| 233 |
- <File |
|
| 234 |
- RelativePath=".\unrarvm.c" |
|
| 235 |
- > |
|
| 236 |
- </File> |
|
| 237 |
- </Filter> |
|
| 238 |
- <Filter |
|
| 239 |
- Name="Header Files" |
|
| 240 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 241 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 242 |
- > |
|
| 243 |
- <File |
|
| 244 |
- RelativePath=".\unrar.h" |
|
| 245 |
- > |
|
| 246 |
- </File> |
|
| 247 |
- <File |
|
| 248 |
- RelativePath=".\unrar15.h" |
|
| 249 |
- > |
|
| 250 |
- </File> |
|
| 251 |
- <File |
|
| 252 |
- RelativePath=".\unrar20.h" |
|
| 253 |
- > |
|
| 254 |
- </File> |
|
| 255 |
- <File |
|
| 256 |
- RelativePath=".\unrarcmd.h" |
|
| 257 |
- > |
|
| 258 |
- </File> |
|
| 259 |
- <File |
|
| 260 |
- RelativePath=".\unrarfilter.h" |
|
| 261 |
- > |
|
| 262 |
- </File> |
|
| 263 |
- <File |
|
| 264 |
- RelativePath=".\unrarhlp.h" |
|
| 265 |
- > |
|
| 266 |
- </File> |
|
| 267 |
- <File |
|
| 268 |
- RelativePath=".\unrarppm.h" |
|
| 269 |
- > |
|
| 270 |
- </File> |
|
| 271 |
- <File |
|
| 272 |
- RelativePath=".\unrarvm.h" |
|
| 273 |
- > |
|
| 274 |
- </File> |
|
| 275 |
- </Filter> |
|
| 276 |
- <Filter |
|
| 277 |
- Name="Resource Files" |
|
| 278 |
- > |
|
| 279 |
- <File |
|
| 280 |
- RelativePath=".\libclamunrar.def" |
|
| 281 |
- > |
|
| 282 |
- </File> |
|
| 283 |
- </Filter> |
|
| 284 |
- </Files> |
|
| 285 |
- <Globals> |
|
| 286 |
- </Globals> |
|
| 287 |
-</VisualStudioProject> |
| 288 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 8 | 2 |
deleted file mode 100755 |
| ... | ... |
@@ -1,215 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="libclamunrar_iface" |
|
| 6 |
- ProjectGUID="{FA8BFB8E-F74F-4A71-A474-D2167B432E36}"
|
|
| 7 |
- RootNamespace="libclamunrar_iface" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="2" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- Optimization="0" |
|
| 43 |
- AdditionalIncludeDirectories=""$(SolutionDir)";"$(ProjectDir)..\libclamav"" |
|
| 44 |
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBCLAMUNRAR_IFACE_EXPORTS;_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB" |
|
| 45 |
- StringPooling="true" |
|
| 46 |
- MinimalRebuild="true" |
|
| 47 |
- ExceptionHandling="0" |
|
| 48 |
- BasicRuntimeChecks="3" |
|
| 49 |
- RuntimeLibrary="3" |
|
| 50 |
- UsePrecompiledHeader="0" |
|
| 51 |
- WarningLevel="4" |
|
| 52 |
- Detect64BitPortabilityProblems="true" |
|
| 53 |
- DebugInformationFormat="4" |
|
| 54 |
- /> |
|
| 55 |
- <Tool |
|
| 56 |
- Name="VCManagedResourceCompilerTool" |
|
| 57 |
- /> |
|
| 58 |
- <Tool |
|
| 59 |
- Name="VCResourceCompilerTool" |
|
| 60 |
- /> |
|
| 61 |
- <Tool |
|
| 62 |
- Name="VCPreLinkEventTool" |
|
| 63 |
- /> |
|
| 64 |
- <Tool |
|
| 65 |
- Name="VCLinkerTool" |
|
| 66 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" "$(TargetDir)\libclamunrar.lib"" |
|
| 67 |
- LinkIncremental="2" |
|
| 68 |
- ModuleDefinitionFile="$(InputDir)/libclamunrar_iface.def" |
|
| 69 |
- GenerateDebugInformation="true" |
|
| 70 |
- SubSystem="2" |
|
| 71 |
- TargetMachine="1" |
|
| 72 |
- /> |
|
| 73 |
- <Tool |
|
| 74 |
- Name="VCALinkTool" |
|
| 75 |
- /> |
|
| 76 |
- <Tool |
|
| 77 |
- Name="VCManifestTool" |
|
| 78 |
- /> |
|
| 79 |
- <Tool |
|
| 80 |
- Name="VCXDCMakeTool" |
|
| 81 |
- /> |
|
| 82 |
- <Tool |
|
| 83 |
- Name="VCBscMakeTool" |
|
| 84 |
- /> |
|
| 85 |
- <Tool |
|
| 86 |
- Name="VCFxCopTool" |
|
| 87 |
- /> |
|
| 88 |
- <Tool |
|
| 89 |
- Name="VCAppVerifierTool" |
|
| 90 |
- /> |
|
| 91 |
- <Tool |
|
| 92 |
- Name="VCWebDeploymentTool" |
|
| 93 |
- /> |
|
| 94 |
- <Tool |
|
| 95 |
- Name="VCPostBuildEventTool" |
|
| 96 |
- /> |
|
| 97 |
- </Configuration> |
|
| 98 |
- <Configuration |
|
| 99 |
- Name="Release|Win32" |
|
| 100 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 101 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 102 |
- ConfigurationType="2" |
|
| 103 |
- CharacterSet="0" |
|
| 104 |
- WholeProgramOptimization="1" |
|
| 105 |
- > |
|
| 106 |
- <Tool |
|
| 107 |
- Name="VCPreBuildEventTool" |
|
| 108 |
- /> |
|
| 109 |
- <Tool |
|
| 110 |
- Name="VCCustomBuildTool" |
|
| 111 |
- /> |
|
| 112 |
- <Tool |
|
| 113 |
- Name="VCXMLDataGeneratorTool" |
|
| 114 |
- /> |
|
| 115 |
- <Tool |
|
| 116 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 117 |
- /> |
|
| 118 |
- <Tool |
|
| 119 |
- Name="VCMIDLTool" |
|
| 120 |
- /> |
|
| 121 |
- <Tool |
|
| 122 |
- Name="VCCLCompilerTool" |
|
| 123 |
- AdditionalIncludeDirectories=""$(SolutionDir)";"$(ProjectDir)..\libclamav"" |
|
| 124 |
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBCLAMUNRAR_IFACE_EXPORTS;_USE_32BIT_TIME_T;HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB" |
|
| 125 |
- StringPooling="true" |
|
| 126 |
- ExceptionHandling="0" |
|
| 127 |
- RuntimeLibrary="2" |
|
| 128 |
- UsePrecompiledHeader="0" |
|
| 129 |
- WarningLevel="4" |
|
| 130 |
- Detect64BitPortabilityProblems="true" |
|
| 131 |
- DebugInformationFormat="3" |
|
| 132 |
- /> |
|
| 133 |
- <Tool |
|
| 134 |
- Name="VCManagedResourceCompilerTool" |
|
| 135 |
- /> |
|
| 136 |
- <Tool |
|
| 137 |
- Name="VCResourceCompilerTool" |
|
| 138 |
- /> |
|
| 139 |
- <Tool |
|
| 140 |
- Name="VCPreLinkEventTool" |
|
| 141 |
- /> |
|
| 142 |
- <Tool |
|
| 143 |
- Name="VCLinkerTool" |
|
| 144 |
- AdditionalDependencies=""$(TargetDir)\libclamav.lib" "$(TargetDir)\libclamunrar.lib"" |
|
| 145 |
- LinkIncremental="1" |
|
| 146 |
- ModuleDefinitionFile="$(InputDir)/libclamunrar_iface.def" |
|
| 147 |
- GenerateDebugInformation="true" |
|
| 148 |
- SubSystem="2" |
|
| 149 |
- OptimizeReferences="2" |
|
| 150 |
- EnableCOMDATFolding="2" |
|
| 151 |
- TargetMachine="1" |
|
| 152 |
- /> |
|
| 153 |
- <Tool |
|
| 154 |
- Name="VCALinkTool" |
|
| 155 |
- /> |
|
| 156 |
- <Tool |
|
| 157 |
- Name="VCManifestTool" |
|
| 158 |
- /> |
|
| 159 |
- <Tool |
|
| 160 |
- Name="VCXDCMakeTool" |
|
| 161 |
- /> |
|
| 162 |
- <Tool |
|
| 163 |
- Name="VCBscMakeTool" |
|
| 164 |
- /> |
|
| 165 |
- <Tool |
|
| 166 |
- Name="VCFxCopTool" |
|
| 167 |
- /> |
|
| 168 |
- <Tool |
|
| 169 |
- Name="VCAppVerifierTool" |
|
| 170 |
- /> |
|
| 171 |
- <Tool |
|
| 172 |
- Name="VCWebDeploymentTool" |
|
| 173 |
- /> |
|
| 174 |
- <Tool |
|
| 175 |
- Name="VCPostBuildEventTool" |
|
| 176 |
- /> |
|
| 177 |
- </Configuration> |
|
| 178 |
- </Configurations> |
|
| 179 |
- <References> |
|
| 180 |
- </References> |
|
| 181 |
- <Files> |
|
| 182 |
- <Filter |
|
| 183 |
- Name="Source Files" |
|
| 184 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 185 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 186 |
- > |
|
| 187 |
- <File |
|
| 188 |
- RelativePath=".\unrar_iface.c" |
|
| 189 |
- > |
|
| 190 |
- </File> |
|
| 191 |
- </Filter> |
|
| 192 |
- <Filter |
|
| 193 |
- Name="Header Files" |
|
| 194 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 195 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 196 |
- > |
|
| 197 |
- <File |
|
| 198 |
- RelativePath=".\unrar_iface.h" |
|
| 199 |
- > |
|
| 200 |
- </File> |
|
| 201 |
- </Filter> |
|
| 202 |
- <Filter |
|
| 203 |
- Name="Resource Files" |
|
| 204 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 205 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 206 |
- > |
|
| 207 |
- <File |
|
| 208 |
- RelativePath=".\libclamunrar_iface.def" |
|
| 209 |
- > |
|
| 210 |
- </File> |
|
| 211 |
- </Filter> |
|
| 212 |
- </Files> |
|
| 213 |
- <Globals> |
|
| 214 |
- </Globals> |
|
| 215 |
-</VisualStudioProject> |
| 216 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,569 +0,0 @@ |
| 1 |
-*** /home/njh/src/clamav-devel/trunk/./clamdscan/client.c 2008-01-23 16:19:16.000000000 +0000 |
|
| 2 |
-*************** |
|
| 3 |
-*** 15,36 **** |
|
| 4 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 5 |
- * MA 02110-1301, USA. |
|
| 6 |
- */ |
|
| 7 |
-+ #ifdef _MSC_VER |
|
| 8 |
-+ #include <winsock.h> |
|
| 9 |
-+ #endif |
|
| 10 |
-+ |
|
| 11 |
- |
|
| 12 |
- #if HAVE_CONFIG_H |
|
| 13 |
- #include "clamav-config.h" |
|
| 14 |
- #endif |
|
| 15 |
- |
|
| 16 |
- #include <stdio.h> |
|
| 17 |
-+ #ifdef HAVE_UNISTD_H |
|
| 18 |
- #include <unistd.h> |
|
| 19 |
-+ #endif |
|
| 20 |
- #include <string.h> |
|
| 21 |
- #include <sys/types.h> |
|
| 22 |
- #include <sys/stat.h> |
|
| 23 |
-+ #ifndef C_WINDOWS |
|
| 24 |
- #include <sys/socket.h> |
|
| 25 |
- #include <sys/un.h> |
|
| 26 |
- #include <netinet/in.h> |
|
| 27 |
- #include <arpa/inet.h> |
|
| 28 |
- #include <netdb.h> |
|
| 29 |
- #include <utime.h> |
|
| 30 |
-+ #endif |
|
| 31 |
- #include <errno.h> |
|
| 32 |
- |
|
| 33 |
- #ifdef HAVE_SYS_UIO_H |
|
| 34 |
-*************** |
|
| 35 |
-*** 52,60 **** |
|
| 36 |
- # define SOCKET_INET AF_INET |
|
| 37 |
- #endif |
|
| 38 |
- |
|
| 39 |
-+ #ifndef C_WINDOWS |
|
| 40 |
-+ #define closesocket(s) close(s) |
|
| 41 |
-+ #endif |
|
| 42 |
-+ |
|
| 43 |
-+ /* #define ENABLE_FD_PASSING FIXME: Doesn't work yet */ |
|
| 44 |
-+ |
|
| 45 |
- void move_infected(const char *filename, const struct optstruct *opt); |
|
| 46 |
- int notremoved = 0, notmoved = 0; |
|
| 47 |
- |
|
| 48 |
-+ #ifdef C_WINDOWS |
|
| 49 |
-+ static int get_a_line(int sockd, char *buf, size_t len); |
|
| 50 |
-+ |
|
| 51 |
-+ static int |
|
| 52 |
-+ dsresult(int sockd, const struct optstruct *opt) |
|
| 53 |
-+ {
|
|
| 54 |
-+ char buff[BUFSIZ], *pt; |
|
| 55 |
-+ int infected = 0, waserror = 0; |
|
| 56 |
-+ |
|
| 57 |
-+ while(get_a_line(sockd, buff, sizeof(buff))) {
|
|
| 58 |
-+ if(strstr(buff, "FOUND\n")) {
|
|
| 59 |
-+ infected++; |
|
| 60 |
-+ logg("%s", buff);
|
|
| 61 |
-+ if(opt_check(opt, "move") || opt_check(opt, "copy")) {
|
|
| 62 |
-+ /* filename: Virus FOUND */ |
|
| 63 |
-+ if((pt = strrchr(buff, ':'))) {
|
|
| 64 |
-+ *pt = 0; |
|
| 65 |
-+ move_infected(buff, opt); |
|
| 66 |
-+ } else |
|
| 67 |
-+ mprintf("@Broken data format. File not %s.\n", opt_check(opt, "move") ? "moved" : "copied");
|
|
| 68 |
-+ } else if(opt_check(opt, "remove")) {
|
|
| 69 |
-+ if(!(pt = strrchr(buff, ':'))) |
|
| 70 |
-+ mprintf("@Broken data format. File not removed.\n");
|
|
| 71 |
-+ else {
|
|
| 72 |
-+ *pt = 0; |
|
| 73 |
-+ if(unlink(buff)) {
|
|
| 74 |
-+ mprintf("~%s: Can't remove.\n", buff);
|
|
| 75 |
-+ logg("~%s: Can't remove.\n", buff);
|
|
| 76 |
-+ notremoved++; |
|
| 77 |
-+ } else {
|
|
| 78 |
-+ mprintf("~%s: Removed.\n", buff);
|
|
| 79 |
-+ logg("~%s: Removed.\n", buff);
|
|
| 80 |
-+ } |
|
| 81 |
-+ } |
|
| 82 |
-+ } |
|
| 83 |
-+ } |
|
| 84 |
-+ |
|
| 85 |
-+ if(strstr(buff, "ERROR\n")) {
|
|
| 86 |
-+ logg("%s", buff);
|
|
| 87 |
-+ waserror = 1; |
|
| 88 |
-+ } |
|
| 89 |
-+ } |
|
| 90 |
-+ |
|
| 91 |
-+ return infected ? infected : (waserror ? -1 : 0); |
|
| 92 |
-+ } |
|
| 93 |
-+ |
|
| 94 |
-+ static int |
|
| 95 |
-+ get_a_line(int sockd, char *buf, size_t len) |
|
| 96 |
-+ {
|
|
| 97 |
-+ char *ptr; |
|
| 98 |
-+ |
|
| 99 |
-+ for(ptr = buf; ptr < &buf[len]; ptr++) {
|
|
| 100 |
-+ /* FIXME: very inefficient to call recv so many times */ |
|
| 101 |
-+ if(recv(sockd, ptr, sizeof(char), 0) <= 0) |
|
| 102 |
-+ return 0; |
|
| 103 |
-+ if(*ptr == '\n') {
|
|
| 104 |
-+ *++ptr = '\0'; |
|
| 105 |
-+ return 1; |
|
| 106 |
-+ } |
|
| 107 |
-+ } |
|
| 108 |
-+ return 1; |
|
| 109 |
-+ } |
|
| 110 |
-+ #else |
|
| 111 |
- static int dsresult(int sockd, const struct optstruct *opt) |
|
| 112 |
- {
|
|
| 113 |
- int infected = 0, waserror = 0; |
|
| 114 |
-*************** |
|
| 115 |
-*** 64,71 **** |
|
| 116 |
- |
|
| 117 |
- #ifndef C_OS2 |
|
| 118 |
- if((fd = fdopen(dup(sockd), "r")) == NULL) {
|
|
| 119 |
-! #else /* FIXME: accoriding to YD OS/2 does not support dup() for sockets */ |
|
| 120 |
-! if((fd = fdopen(sockd, "r")) == NULL) {
|
|
| 121 |
- #endif |
|
| 122 |
- logg("^Can't open descriptor for reading.\n");
|
|
| 123 |
- return -1; |
|
| 124 |
- |
|
| 125 |
- #ifndef C_OS2 |
|
| 126 |
- if((fd = fdopen(dup(sockd), "r")) == NULL) {
|
|
| 127 |
-! #else /* FIXME: according to YD OS/2 does not support dup() for sockets */ |
|
| 128 |
-! if((fd = fdopen(sockd, "rb")) == NULL) {
|
|
| 129 |
- #endif |
|
| 130 |
- logg("^Can't open descriptor for reading.\n");
|
|
| 131 |
- return -1; |
|
| 132 |
-*************** |
|
| 133 |
-*** 90,101 **** |
|
| 134 |
- } else {
|
|
| 135 |
- *pt = 0; |
|
| 136 |
- if(unlink(buff)) {
|
|
| 137 |
-! mprintf("~%s: Can't remove.\n", buff);
|
|
| 138 |
-! logg("~%s: Can't remove.\n", buff);
|
|
| 139 |
- notremoved++; |
|
| 140 |
- } else {
|
|
| 141 |
-! mprintf("~%s: Removed.\n", buff);
|
|
| 142 |
-! logg("~%s: Removed.\n", buff);
|
|
| 143 |
- } |
|
| 144 |
- } |
|
| 145 |
- } |
|
| 146 |
- } else {
|
|
| 147 |
- *pt = 0; |
|
| 148 |
- if(unlink(buff)) {
|
|
| 149 |
-! mprintf("%s: Can't remove.\n", buff);
|
|
| 150 |
-! logg("%s: Can't remove.\n", buff);
|
|
| 151 |
- notremoved++; |
|
| 152 |
- } else {
|
|
| 153 |
-! mprintf("%s: Removed.\n", buff);
|
|
| 154 |
-! logg("%s: Removed.\n", buff);
|
|
| 155 |
- } |
|
| 156 |
- } |
|
| 157 |
- } |
|
| 158 |
-*************** |
|
| 159 |
-*** 113,118 **** |
|
| 160 |
- |
|
| 161 |
- return infected ? infected : (waserror ? -1 : 0); |
|
| 162 |
- } |
|
| 163 |
-+ #endif /*C_WINDOWS*/ |
|
| 164 |
- |
|
| 165 |
- static int dsfile(int sockd, const char *scantype, const char *filename, const struct optstruct *opt) |
|
| 166 |
- {
|
|
| 167 |
-*************** |
|
| 168 |
-*** 123,129 **** |
|
| 169 |
- scancmd = malloc(strlen(filename) + 20); |
|
| 170 |
- sprintf(scancmd, "%s %s", scantype, filename); |
|
| 171 |
- |
|
| 172 |
-! if(write(sockd, scancmd, strlen(scancmd)) <= 0) {
|
|
| 173 |
- logg("^Can't write to the socket.\n");
|
|
| 174 |
- free(scancmd); |
|
| 175 |
- return -1; |
|
| 176 |
- scancmd = malloc(strlen(filename) + 20); |
|
| 177 |
- sprintf(scancmd, "%s %s", scantype, filename); |
|
| 178 |
- |
|
| 179 |
-! if(send(sockd, scancmd, strlen(scancmd), 0) <= 0) {
|
|
| 180 |
- logg("^Can't write to the socket.\n");
|
|
| 181 |
- free(scancmd); |
|
| 182 |
- return -1; |
|
| 183 |
-*************** |
|
| 184 |
-*** 148,161 **** |
|
| 185 |
- char buff[4096], *pt; |
|
| 186 |
- |
|
| 187 |
- |
|
| 188 |
-! if(write(sockd, "STREAM", 6) <= 0) {
|
|
| 189 |
- logg("^Can't write to the socket.\n");
|
|
| 190 |
- return 2; |
|
| 191 |
- } |
|
| 192 |
- |
|
| 193 |
- while(loopw) {
|
|
| 194 |
- memset(buff, 0, sizeof(buff)); |
|
| 195 |
-! if(read(sockd, buff, sizeof(buff)) > 0) {
|
|
| 196 |
- if((pt = strstr(buff, "PORT"))) {
|
|
| 197 |
- pt += 5; |
|
| 198 |
- sscanf(pt, "%d", &port); |
|
| 199 |
- char buff[4096], *pt; |
|
| 200 |
- |
|
| 201 |
- |
|
| 202 |
-! if(send(sockd, "STREAM", 6, 0) <= 0) {
|
|
| 203 |
- logg("^Can't write to the socket.\n");
|
|
| 204 |
- return 2; |
|
| 205 |
- } |
|
| 206 |
- |
|
| 207 |
- while(loopw) {
|
|
| 208 |
- memset(buff, 0, sizeof(buff)); |
|
| 209 |
-! if(recv(sockd, buff, sizeof(buff), 0) > 0) {
|
|
| 210 |
- if((pt = strstr(buff, "PORT"))) {
|
|
| 211 |
- pt += 5; |
|
| 212 |
- sscanf(pt, "%d", &port); |
|
| 213 |
-*************** |
|
| 214 |
-*** 201,207 **** |
|
| 215 |
- } |
|
| 216 |
- |
|
| 217 |
- if(connect(wsockd, (struct sockaddr *) &server, sizeof(struct sockaddr_in)) < 0) {
|
|
| 218 |
-! close(wsockd); |
|
| 219 |
- perror("connect()");
|
|
| 220 |
- logg("^Can't connect to clamd [port: %d].\n", port);
|
|
| 221 |
- return -1; |
|
| 222 |
- } |
|
| 223 |
- |
|
| 224 |
- if(connect(wsockd, (struct sockaddr *) &server, sizeof(struct sockaddr_in)) < 0) {
|
|
| 225 |
-! closesocket(wsockd); |
|
| 226 |
- perror("connect()");
|
|
| 227 |
- logg("^Can't connect to clamd [port: %d].\n", port);
|
|
| 228 |
- return -1; |
|
| 229 |
-*************** |
|
| 230 |
-*** 210,220 **** |
|
| 231 |
- while((bread = read(0, buff, sizeof(buff))) > 0) {
|
|
| 232 |
- if(write(wsockd, buff, bread) <= 0) {
|
|
| 233 |
- logg("^Can't write to the socket.\n");
|
|
| 234 |
-! close(wsockd); |
|
| 235 |
- return -1; |
|
| 236 |
- } |
|
| 237 |
- } |
|
| 238 |
-! close(wsockd); |
|
| 239 |
- |
|
| 240 |
- memset(buff, 0, sizeof(buff)); |
|
| 241 |
- while((bread = read(sockd, buff, sizeof(buff))) > 0) {
|
|
| 242 |
- while((bread = read(0, buff, sizeof(buff))) > 0) {
|
|
| 243 |
- if(write(wsockd, buff, bread) <= 0) {
|
|
| 244 |
- logg("^Can't write to the socket.\n");
|
|
| 245 |
-! closesocket(wsockd); |
|
| 246 |
- return -1; |
|
| 247 |
- } |
|
| 248 |
- } |
|
| 249 |
-! closesocket(wsockd); |
|
| 250 |
- |
|
| 251 |
- memset(buff, 0, sizeof(buff)); |
|
| 252 |
- while((bread = read(sockd, buff, sizeof(buff))) > 0) {
|
|
| 253 |
-*************** |
|
| 254 |
-*** 259,265 **** |
|
| 255 |
- |
|
| 256 |
- static int dconnect(const struct optstruct *opt) |
|
| 257 |
- {
|
|
| 258 |
-+ #ifndef C_WINDOWS |
|
| 259 |
- struct sockaddr_un server; |
|
| 260 |
-+ #endif |
|
| 261 |
- struct sockaddr_in server2; |
|
| 262 |
- struct hostent *he; |
|
| 263 |
- struct cfgstruct *copt; |
|
| 264 |
-*************** |
|
| 265 |
-*** 276,288 **** |
|
| 266 |
- return -1; |
|
| 267 |
- } |
|
| 268 |
- |
|
| 269 |
-+ #ifndef C_WINDOWS |
|
| 270 |
- memset((char *) &server, 0, sizeof(server)); |
|
| 271 |
-+ #endif |
|
| 272 |
- memset((char *) &server2, 0, sizeof(server2)); |
|
| 273 |
- |
|
| 274 |
- /* Set default address to connect to */ |
|
| 275 |
- server2.sin_addr.s_addr = inet_addr("127.0.0.1");
|
|
| 276 |
- |
|
| 277 |
- if((cpt = cfgopt(copt, "LocalSocket"))->enabled) {
|
|
| 278 |
-+ #ifdef C_WINDOWS |
|
| 279 |
-+ logg("^LocalSocket is not supported under Windows");
|
|
| 280 |
-+ return -1; |
|
| 281 |
-+ #else |
|
| 282 |
- |
|
| 283 |
- server.sun_family = AF_UNIX; |
|
| 284 |
- strncpy(server.sun_path, cpt->strarg, sizeof(server.sun_path)); |
|
| 285 |
-*************** |
|
| 286 |
-*** 301,308 **** |
|
| 287 |
- freecfg(copt); |
|
| 288 |
- return -1; |
|
| 289 |
- } |
|
| 290 |
- |
|
| 291 |
-! } else if((cpt = cfgopt(copt, "TCPSocket"))->enabled) {
|
|
| 292 |
- |
|
| 293 |
- if((sockd = socket(SOCKET_INET, SOCK_STREAM, 0)) < 0) {
|
|
| 294 |
- perror("socket()");
|
|
| 295 |
- freecfg(copt); |
|
| 296 |
- return -1; |
|
| 297 |
- } |
|
| 298 |
-+ #endif |
|
| 299 |
-+ |
|
| 300 |
-+ } else if((cpt = cfgopt(copt, "TCPSocket"))->enabled) {
|
|
| 301 |
-+ #ifdef C_WINDOWS |
|
| 302 |
-+ WSADATA wsaData; |
|
| 303 |
- |
|
| 304 |
-! if(WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) {
|
|
| 305 |
-! logg("!Error at WSAStartup(): %d\n", WSAGetLastError());
|
|
| 306 |
-! return -1; |
|
| 307 |
-! } |
|
| 308 |
-! #endif |
|
| 309 |
-! |
|
| 310 |
- |
|
| 311 |
- if((sockd = socket(SOCKET_INET, SOCK_STREAM, 0)) < 0) {
|
|
| 312 |
- perror("socket()");
|
|
| 313 |
-*************** |
|
| 314 |
-*** 316,322 **** |
|
| 315 |
- |
|
| 316 |
- if((cpt = cfgopt(copt, "TCPAddr"))->enabled) {
|
|
| 317 |
- if ((he = gethostbyname(cpt->strarg)) == 0) {
|
|
| 318 |
-! close(sockd); |
|
| 319 |
- perror("gethostbyname()");
|
|
| 320 |
- logg("^Can't lookup clamd hostname.\n");
|
|
| 321 |
- freecfg(copt); |
|
| 322 |
- |
|
| 323 |
- if((cpt = cfgopt(copt, "TCPAddr"))->enabled) {
|
|
| 324 |
- if ((he = gethostbyname(cpt->strarg)) == 0) {
|
|
| 325 |
-! closesocket(sockd); |
|
| 326 |
- perror("gethostbyname()");
|
|
| 327 |
- logg("^Can't lookup clamd hostname.\n");
|
|
| 328 |
- freecfg(copt); |
|
| 329 |
-*************** |
|
| 330 |
-*** 326,332 **** |
|
| 331 |
- } |
|
| 332 |
- |
|
| 333 |
- if(connect(sockd, (struct sockaddr *) &server2, sizeof(struct sockaddr_in)) < 0) {
|
|
| 334 |
-! close(sockd); |
|
| 335 |
- perror("connect()");
|
|
| 336 |
- logg("^Can't connect to clamd.\n");
|
|
| 337 |
- freecfg(copt); |
|
| 338 |
- } |
|
| 339 |
- |
|
| 340 |
- if(connect(sockd, (struct sockaddr *) &server2, sizeof(struct sockaddr_in)) < 0) {
|
|
| 341 |
-! closesocket(sockd); |
|
| 342 |
- perror("connect()");
|
|
| 343 |
- logg("^Can't connect to clamd.\n");
|
|
| 344 |
- freecfg(copt); |
|
| 345 |
-*************** |
|
| 346 |
-*** 396,402 **** |
|
| 347 |
- else |
|
| 348 |
- errors++; |
|
| 349 |
- |
|
| 350 |
-! close(sockd); |
|
| 351 |
- |
|
| 352 |
- } else if(!strcmp(opt->filename, "-")) { /* scan data from stdin */
|
|
| 353 |
- if((sockd = dconnect(opt)) < 0) |
|
| 354 |
- else |
|
| 355 |
- errors++; |
|
| 356 |
- |
|
| 357 |
-! closesocket(sockd); |
|
| 358 |
- |
|
| 359 |
- } else if(!strcmp(opt->filename, "-")) { /* scan data from stdin */
|
|
| 360 |
- if((sockd = dconnect(opt)) < 0) |
|
| 361 |
-*************** |
|
| 362 |
-*** 407,413 **** |
|
| 363 |
- else |
|
| 364 |
- errors++; |
|
| 365 |
- |
|
| 366 |
-! close(sockd); |
|
| 367 |
- |
|
| 368 |
- } else {
|
|
| 369 |
- int x; |
|
| 370 |
- else |
|
| 371 |
- errors++; |
|
| 372 |
- |
|
| 373 |
-! closesocket(sockd); |
|
| 374 |
- |
|
| 375 |
- } else {
|
|
| 376 |
- int x; |
|
| 377 |
-*************** |
|
| 378 |
-*** 441,447 **** |
|
| 379 |
- else |
|
| 380 |
- errors++; |
|
| 381 |
- |
|
| 382 |
-! close(sockd); |
|
| 383 |
- break; |
|
| 384 |
- |
|
| 385 |
- default: |
|
| 386 |
- else |
|
| 387 |
- errors++; |
|
| 388 |
- |
|
| 389 |
-! closesocket(sockd); |
|
| 390 |
- break; |
|
| 391 |
- |
|
| 392 |
- default: |
|
| 393 |
-*************** |
|
| 394 |
-*** 464,470 **** |
|
| 395 |
- struct stat ofstat, mfstat; |
|
| 396 |
- int n, len, movefilename_size; |
|
| 397 |
- int moveflag = opt_check(opt, "move"); |
|
| 398 |
-+ #ifndef C_WINDOWS |
|
| 399 |
- struct utimbuf ubuf; |
|
| 400 |
-+ #endif |
|
| 401 |
- |
|
| 402 |
- |
|
| 403 |
- if((moveflag && !(movedir = opt_arg(opt, "move"))) || |
|
| 404 |
-*************** |
|
| 405 |
-*** 551,559 **** |
|
| 406 |
- if(chown(movefilename, ofstat.st_uid, ofstat.st_gid) == -1) |
|
| 407 |
- logg("^chown() failed for %s: %s\n", movefilename, strerror(errno));
|
|
| 408 |
- |
|
| 409 |
-+ |
|
| 410 |
-+ #ifndef C_WINDOWS |
|
| 411 |
- ubuf.actime = ofstat.st_atime; |
|
| 412 |
- ubuf.modtime = ofstat.st_mtime; |
|
| 413 |
- utime(movefilename, &ubuf); |
|
| 414 |
-+ #endif |
|
| 415 |
- |
|
| 416 |
- if(moveflag && unlink(filename)) {
|
|
| 417 |
- logg("^cannot unlink '%s': %s\n", filename, strerror(errno));
|
|
| 418 |
-*** /home/njh/src/clamav-devel/trunk/./clamdscan/clamdscan.c 2008-01-21 20:56:26.000000000 +0000 |
|
| 419 |
-*************** |
|
| 420 |
-*** 15,30 **** |
|
| 421 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 422 |
- * MA 02110-1301, USA. |
|
| 423 |
- */ |
|
| 424 |
- |
|
| 425 |
- #if HAVE_CONFIG_H |
|
| 426 |
- #include "clamav-config.h" |
|
| 427 |
- #endif |
|
| 428 |
-- |
|
| 429 |
- #include <stdio.h> |
|
| 430 |
- #include <string.h> |
|
| 431 |
- #include <stdlib.h> |
|
| 432 |
- #include <unistd.h> |
|
| 433 |
- #include <sys/time.h> |
|
| 434 |
- #include <time.h> |
|
| 435 |
- #include <signal.h> |
|
| 436 |
- |
|
| 437 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
| 438 |
- * MA 02110-1301, USA. |
|
| 439 |
- */ |
|
| 440 |
-+ |
|
| 441 |
-+ #ifdef _MSC_VER |
|
| 442 |
-+ #include <windows.h> |
|
| 443 |
-+ #include <winsock.h> |
|
| 444 |
-+ #endif |
|
| 445 |
- |
|
| 446 |
- #if HAVE_CONFIG_H |
|
| 447 |
- #include "clamav-config.h" |
|
| 448 |
- #endif |
|
| 449 |
- #include <stdio.h> |
|
| 450 |
- #include <string.h> |
|
| 451 |
- #include <stdlib.h> |
|
| 452 |
-+ #ifdef HAVE_UNISTD_H |
|
| 453 |
- #include <unistd.h> |
|
| 454 |
-+ #endif |
|
| 455 |
-+ #ifdef C_WINDOWS |
|
| 456 |
-+ #ifdef CL_THREAD_SAFE |
|
| 457 |
-+ #include <pthread.h> |
|
| 458 |
-+ #endif |
|
| 459 |
-+ #else |
|
| 460 |
- #include <sys/time.h> |
|
| 461 |
-+ #endif |
|
| 462 |
- #include <time.h> |
|
| 463 |
- #include <signal.h> |
|
| 464 |
- |
|
| 465 |
-*************** |
|
| 466 |
-*** 61,67 **** |
|
| 467 |
- {
|
|
| 468 |
- int ds, dms, ret, infected; |
|
| 469 |
- struct timeval t1, t2; |
|
| 470 |
-+ #ifndef C_WINDOWS |
|
| 471 |
- struct timezone tz; |
|
| 472 |
-+ #endif |
|
| 473 |
- time_t starttime; |
|
| 474 |
- struct optstruct *opt; |
|
| 475 |
- const char *clamdscan_accepted[] = { "help", "version", "verbose", "quiet",
|
|
| 476 |
-*************** |
|
| 477 |
-*** 70,75 **** |
|
| 478 |
- "disable-summary", "multiscan", NULL }; |
|
| 479 |
- |
|
| 480 |
- |
|
| 481 |
-+ #ifdef C_WINDOWS |
|
| 482 |
-+ if(!pthread_win32_process_attach_np()) {
|
|
| 483 |
-+ mprintf("!Can't start the win32 pthreads layer\n");
|
|
| 484 |
-+ return 1; |
|
| 485 |
-+ } |
|
| 486 |
-+ #endif |
|
| 487 |
-+ |
|
| 488 |
- opt = opt_parse(argc, argv, clamscan_shortopt, clamscan_longopt, clamdscan_accepted); |
|
| 489 |
- if(!opt) {
|
|
| 490 |
- mprintf("!Can't parse the command line\n");
|
|
| 491 |
-*************** |
|
| 492 |
-*** 117,129 **** |
|
| 493 |
- time(&starttime); |
|
| 494 |
- /* ctime() does \n, but I need it once more */ |
|
| 495 |
- |
|
| 496 |
-! gettimeofday(&t1, &tz); |
|
| 497 |
- |
|
| 498 |
- ret = client(opt, &infected); |
|
| 499 |
- |
|
| 500 |
- /* TODO: Implement STATUS in clamd */ |
|
| 501 |
- if(!opt_check(opt, "disable-summary") && !opt_check(opt, "no-summary")) {
|
|
| 502 |
- gettimeofday(&t2, &tz); |
|
| 503 |
- ds = t2.tv_sec - t1.tv_sec; |
|
| 504 |
- dms = t2.tv_usec - t1.tv_usec; |
|
| 505 |
- ds -= (dms < 0) ? (1):(0); |
|
| 506 |
- time(&starttime); |
|
| 507 |
- /* ctime() does \n, but I need it once more */ |
|
| 508 |
- |
|
| 509 |
-! #ifdef C_WINDOWS |
|
| 510 |
-! gettimeofday(&t1, NULL); |
|
| 511 |
-! #else |
|
| 512 |
-! gettimeofday(&t1, &tz); |
|
| 513 |
-! #endif |
|
| 514 |
- |
|
| 515 |
- ret = client(opt, &infected); |
|
| 516 |
- |
|
| 517 |
- /* TODO: Implement STATUS in clamd */ |
|
| 518 |
- if(!opt_check(opt, "disable-summary") && !opt_check(opt, "no-summary")) {
|
|
| 519 |
-+ #ifdef C_WINDOWS |
|
| 520 |
-+ gettimeofday(&t2, NULL); |
|
| 521 |
-+ #else |
|
| 522 |
- gettimeofday(&t2, &tz); |
|
| 523 |
-+ #endif |
|
| 524 |
- ds = t2.tv_sec - t1.tv_sec; |
|
| 525 |
- dms = t2.tv_usec - t1.tv_usec; |
|
| 526 |
- ds -= (dms < 0) ? (1):(0); |
|
| 527 |
-*************** |
|
| 528 |
-*** 140,145 **** |
|
| 529 |
- } |
|
| 530 |
- |
|
| 531 |
- opt_free(opt); |
|
| 532 |
-+ |
|
| 533 |
-+ #ifdef C_WINDOWS |
|
| 534 |
-+ WSACleanup(); |
|
| 535 |
-+ if(!pthread_win32_process_detach_np()) {
|
|
| 536 |
-+ mprintf("!Can't stop the win32 pthreads layer\n");
|
|
| 537 |
-+ return 1; |
|
| 538 |
-+ } |
|
| 539 |
-+ #endif |
|
| 540 |
-+ |
|
| 541 |
- exit(ret); |
|
| 542 |
- } |
|
| 543 |
- |
| 544 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,235 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioProject |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- Name="shared" |
|
| 6 |
- ProjectGUID="{A2FD531E-3326-4970-8003-62D9C7551BAA}"
|
|
| 7 |
- RootNamespace="shared" |
|
| 8 |
- Keyword="Win32Proj" |
|
| 9 |
- > |
|
| 10 |
- <Platforms> |
|
| 11 |
- <Platform |
|
| 12 |
- Name="Win32" |
|
| 13 |
- /> |
|
| 14 |
- </Platforms> |
|
| 15 |
- <ToolFiles> |
|
| 16 |
- </ToolFiles> |
|
| 17 |
- <Configurations> |
|
| 18 |
- <Configuration |
|
| 19 |
- Name="Debug|Win32" |
|
| 20 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 21 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 22 |
- ConfigurationType="4" |
|
| 23 |
- CharacterSet="0" |
|
| 24 |
- > |
|
| 25 |
- <Tool |
|
| 26 |
- Name="VCPreBuildEventTool" |
|
| 27 |
- /> |
|
| 28 |
- <Tool |
|
| 29 |
- Name="VCCustomBuildTool" |
|
| 30 |
- /> |
|
| 31 |
- <Tool |
|
| 32 |
- Name="VCXMLDataGeneratorTool" |
|
| 33 |
- /> |
|
| 34 |
- <Tool |
|
| 35 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 36 |
- /> |
|
| 37 |
- <Tool |
|
| 38 |
- Name="VCMIDLTool" |
|
| 39 |
- /> |
|
| 40 |
- <Tool |
|
| 41 |
- Name="VCCLCompilerTool" |
|
| 42 |
- UseUnicodeResponseFiles="false" |
|
| 43 |
- Optimization="0" |
|
| 44 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 45 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB;_DEBUG" |
|
| 46 |
- StringPooling="true" |
|
| 47 |
- MinimalRebuild="true" |
|
| 48 |
- ExceptionHandling="2" |
|
| 49 |
- BasicRuntimeChecks="3" |
|
| 50 |
- RuntimeLibrary="3" |
|
| 51 |
- StructMemberAlignment="0" |
|
| 52 |
- TreatWChar_tAsBuiltInType="false" |
|
| 53 |
- UsePrecompiledHeader="2" |
|
| 54 |
- WarningLevel="4" |
|
| 55 |
- Detect64BitPortabilityProblems="true" |
|
| 56 |
- DebugInformationFormat="4" |
|
| 57 |
- CompileAs="1" |
|
| 58 |
- /> |
|
| 59 |
- <Tool |
|
| 60 |
- Name="VCManagedResourceCompilerTool" |
|
| 61 |
- /> |
|
| 62 |
- <Tool |
|
| 63 |
- Name="VCResourceCompilerTool" |
|
| 64 |
- /> |
|
| 65 |
- <Tool |
|
| 66 |
- Name="VCPreLinkEventTool" |
|
| 67 |
- /> |
|
| 68 |
- <Tool |
|
| 69 |
- Name="VCLibrarianTool" |
|
| 70 |
- /> |
|
| 71 |
- <Tool |
|
| 72 |
- Name="VCALinkTool" |
|
| 73 |
- /> |
|
| 74 |
- <Tool |
|
| 75 |
- Name="VCXDCMakeTool" |
|
| 76 |
- /> |
|
| 77 |
- <Tool |
|
| 78 |
- Name="VCBscMakeTool" |
|
| 79 |
- /> |
|
| 80 |
- <Tool |
|
| 81 |
- Name="VCFxCopTool" |
|
| 82 |
- /> |
|
| 83 |
- <Tool |
|
| 84 |
- Name="VCPostBuildEventTool" |
|
| 85 |
- /> |
|
| 86 |
- </Configuration> |
|
| 87 |
- <Configuration |
|
| 88 |
- Name="Release|Win32" |
|
| 89 |
- OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
|
| 90 |
- IntermediateDirectory="$(ConfigurationName)" |
|
| 91 |
- ConfigurationType="4" |
|
| 92 |
- CharacterSet="0" |
|
| 93 |
- WholeProgramOptimization="1" |
|
| 94 |
- > |
|
| 95 |
- <Tool |
|
| 96 |
- Name="VCPreBuildEventTool" |
|
| 97 |
- /> |
|
| 98 |
- <Tool |
|
| 99 |
- Name="VCCustomBuildTool" |
|
| 100 |
- /> |
|
| 101 |
- <Tool |
|
| 102 |
- Name="VCXMLDataGeneratorTool" |
|
| 103 |
- /> |
|
| 104 |
- <Tool |
|
| 105 |
- Name="VCWebServiceProxyGeneratorTool" |
|
| 106 |
- /> |
|
| 107 |
- <Tool |
|
| 108 |
- Name="VCMIDLTool" |
|
| 109 |
- /> |
|
| 110 |
- <Tool |
|
| 111 |
- Name="VCCLCompilerTool" |
|
| 112 |
- UseUnicodeResponseFiles="false" |
|
| 113 |
- AdditionalIncludeDirectories=""$(ProjectDir)..\libclamav\pthread";"$(ProjectDir)..\shared";"$(ProjectDir)..\libclamav";"$(ProjectDir).."" |
|
| 114 |
- PreprocessorDefinitions="HAVE_CONFIG_H;_CRT_SECURE_NO_DEPRECATE;PTW32_STATIC_LIB" |
|
| 115 |
- StringPooling="true" |
|
| 116 |
- ExceptionHandling="2" |
|
| 117 |
- RuntimeLibrary="2" |
|
| 118 |
- StructMemberAlignment="3" |
|
| 119 |
- TreatWChar_tAsBuiltInType="false" |
|
| 120 |
- UsePrecompiledHeader="2" |
|
| 121 |
- WarningLevel="4" |
|
| 122 |
- Detect64BitPortabilityProblems="true" |
|
| 123 |
- DebugInformationFormat="3" |
|
| 124 |
- CompileAs="1" |
|
| 125 |
- /> |
|
| 126 |
- <Tool |
|
| 127 |
- Name="VCManagedResourceCompilerTool" |
|
| 128 |
- /> |
|
| 129 |
- <Tool |
|
| 130 |
- Name="VCResourceCompilerTool" |
|
| 131 |
- /> |
|
| 132 |
- <Tool |
|
| 133 |
- Name="VCPreLinkEventTool" |
|
| 134 |
- /> |
|
| 135 |
- <Tool |
|
| 136 |
- Name="VCLibrarianTool" |
|
| 137 |
- /> |
|
| 138 |
- <Tool |
|
| 139 |
- Name="VCALinkTool" |
|
| 140 |
- /> |
|
| 141 |
- <Tool |
|
| 142 |
- Name="VCXDCMakeTool" |
|
| 143 |
- /> |
|
| 144 |
- <Tool |
|
| 145 |
- Name="VCBscMakeTool" |
|
| 146 |
- /> |
|
| 147 |
- <Tool |
|
| 148 |
- Name="VCFxCopTool" |
|
| 149 |
- /> |
|
| 150 |
- <Tool |
|
| 151 |
- Name="VCPostBuildEventTool" |
|
| 152 |
- /> |
|
| 153 |
- </Configuration> |
|
| 154 |
- </Configurations> |
|
| 155 |
- <References> |
|
| 156 |
- </References> |
|
| 157 |
- <Files> |
|
| 158 |
- <Filter |
|
| 159 |
- Name="Source Files" |
|
| 160 |
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
|
| 161 |
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
| 162 |
- > |
|
| 163 |
- <File |
|
| 164 |
- RelativePath=".\cdiff.c" |
|
| 165 |
- > |
|
| 166 |
- </File> |
|
| 167 |
- <File |
|
| 168 |
- RelativePath=".\cfgparser.c" |
|
| 169 |
- > |
|
| 170 |
- </File> |
|
| 171 |
- <File |
|
| 172 |
- RelativePath=".\getopt.c" |
|
| 173 |
- > |
|
| 174 |
- </File> |
|
| 175 |
- <File |
|
| 176 |
- RelativePath=".\misc.c" |
|
| 177 |
- > |
|
| 178 |
- </File> |
|
| 179 |
- <File |
|
| 180 |
- RelativePath=".\options.c" |
|
| 181 |
- > |
|
| 182 |
- </File> |
|
| 183 |
- <File |
|
| 184 |
- RelativePath=".\output.c" |
|
| 185 |
- > |
|
| 186 |
- </File> |
|
| 187 |
- </Filter> |
|
| 188 |
- <Filter |
|
| 189 |
- Name="Header Files" |
|
| 190 |
- Filter="h;hpp;hxx;hm;inl;inc;xsd" |
|
| 191 |
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
| 192 |
- > |
|
| 193 |
- <File |
|
| 194 |
- RelativePath=".\cdiff.h" |
|
| 195 |
- > |
|
| 196 |
- </File> |
|
| 197 |
- <File |
|
| 198 |
- RelativePath=".\cfgparser.h" |
|
| 199 |
- > |
|
| 200 |
- </File> |
|
| 201 |
- <File |
|
| 202 |
- RelativePath=".\getopt.h" |
|
| 203 |
- > |
|
| 204 |
- </File> |
|
| 205 |
- <File |
|
| 206 |
- RelativePath=".\misc.h" |
|
| 207 |
- > |
|
| 208 |
- </File> |
|
| 209 |
- <File |
|
| 210 |
- RelativePath=".\network.h" |
|
| 211 |
- > |
|
| 212 |
- </File> |
|
| 213 |
- <File |
|
| 214 |
- RelativePath=".\options.h" |
|
| 215 |
- > |
|
| 216 |
- </File> |
|
| 217 |
- <File |
|
| 218 |
- RelativePath=".\output.h" |
|
| 219 |
- > |
|
| 220 |
- </File> |
|
| 221 |
- </Filter> |
|
| 222 |
- <Filter |
|
| 223 |
- Name="Resource Files" |
|
| 224 |
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
|
| 225 |
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
| 226 |
- > |
|
| 227 |
- </Filter> |
|
| 228 |
- <File |
|
| 229 |
- RelativePath=".\ReadMe.txt" |
|
| 230 |
- > |
|
| 231 |
- </File> |
|
| 232 |
- </Files> |
|
| 233 |
- <Globals> |
|
| 234 |
- </Globals> |
|
| 235 |
-</VisualStudioProject> |
| 236 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,65 +0,0 @@ |
| 1 |
-<?xml version="1.0" encoding="Windows-1252"?> |
|
| 2 |
-<VisualStudioUserFile |
|
| 3 |
- ProjectType="Visual C++" |
|
| 4 |
- Version="8.00" |
|
| 5 |
- ShowAllFiles="false" |
|
| 6 |
- > |
|
| 7 |
- <Configurations> |
|
| 8 |
- <Configuration |
|
| 9 |
- Name="Debug|Win32" |
|
| 10 |
- > |
|
| 11 |
- <DebugSettings |
|
| 12 |
- Command="" |
|
| 13 |
- WorkingDirectory="" |
|
| 14 |
- CommandArguments="" |
|
| 15 |
- Attach="false" |
|
| 16 |
- DebuggerType="3" |
|
| 17 |
- Remote="1" |
|
| 18 |
- RemoteMachine="NJH" |
|
| 19 |
- RemoteCommand="" |
|
| 20 |
- HttpUrl="" |
|
| 21 |
- PDBPath="" |
|
| 22 |
- SQLDebugging="" |
|
| 23 |
- Environment="" |
|
| 24 |
- EnvironmentMerge="true" |
|
| 25 |
- DebuggerFlavor="" |
|
| 26 |
- MPIRunCommand="" |
|
| 27 |
- MPIRunArguments="" |
|
| 28 |
- MPIRunWorkingDirectory="" |
|
| 29 |
- ApplicationCommand="" |
|
| 30 |
- ApplicationArguments="" |
|
| 31 |
- ShimCommand="" |
|
| 32 |
- MPIAcceptMode="" |
|
| 33 |
- MPIAcceptFilter="" |
|
| 34 |
- /> |
|
| 35 |
- </Configuration> |
|
| 36 |
- <Configuration |
|
| 37 |
- Name="Release|Win32" |
|
| 38 |
- > |
|
| 39 |
- <DebugSettings |
|
| 40 |
- Command="" |
|
| 41 |
- WorkingDirectory="" |
|
| 42 |
- CommandArguments="" |
|
| 43 |
- Attach="false" |
|
| 44 |
- DebuggerType="3" |
|
| 45 |
- Remote="1" |
|
| 46 |
- RemoteMachine="NJH" |
|
| 47 |
- RemoteCommand="" |
|
| 48 |
- HttpUrl="" |
|
| 49 |
- PDBPath="" |
|
| 50 |
- SQLDebugging="" |
|
| 51 |
- Environment="" |
|
| 52 |
- EnvironmentMerge="true" |
|
| 53 |
- DebuggerFlavor="" |
|
| 54 |
- MPIRunCommand="" |
|
| 55 |
- MPIRunArguments="" |
|
| 56 |
- MPIRunWorkingDirectory="" |
|
| 57 |
- ApplicationCommand="" |
|
| 58 |
- ApplicationArguments="" |
|
| 59 |
- ShimCommand="" |
|
| 60 |
- MPIAcceptMode="" |
|
| 61 |
- MPIAcceptFilter="" |
|
| 62 |
- /> |
|
| 63 |
- </Configuration> |
|
| 64 |
- </Configurations> |
|
| 65 |
-</VisualStudioUserFile> |
| 66 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-// stdafx.cpp : source file that includes just the standard includes |
|
| 2 |
-// shared.pch will be the pre-compiled header |
|
| 3 |
-// stdafx.obj will contain the pre-compiled type information |
|
| 4 |
- |
|
| 5 |
-#include "stdafx.h" |
|
| 6 |
- |
|
| 7 |
-// TODO: reference any additional headers you need in STDAFX.H |
|
| 8 |
-// and not in this file |
| 9 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,32 +0,0 @@ |
| 1 |
-// stdafx.h : include file for standard system include files, |
|
| 2 |
-// or project specific include files that are used frequently, but |
|
| 3 |
-// are changed infrequently |
|
| 4 |
-// |
|
| 5 |
- |
|
| 6 |
-#pragma once |
|
| 7 |
- |
|
| 8 |
-// Modify the following defines if you have to target a platform prior to the ones specified below. |
|
| 9 |
-// Refer to MSDN for the latest info on corresponding values for different platforms. |
|
| 10 |
-#ifndef WINVER // Allow use of features specific to Windows XP or later. |
|
| 11 |
-#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows. |
|
| 12 |
-#endif |
|
| 13 |
- |
|
| 14 |
-#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. |
|
| 15 |
-#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. |
|
| 16 |
-#endif |
|
| 17 |
- |
|
| 18 |
-#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. |
|
| 19 |
-#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. |
|
| 20 |
-#endif |
|
| 21 |
- |
|
| 22 |
-#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. |
|
| 23 |
-#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. |
|
| 24 |
-#endif |
|
| 25 |
- |
|
| 26 |
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
|
| 27 |
-// Windows Header Files: |
|
| 28 |
-#include <windows.h> |
|
| 29 |
- |
|
| 30 |
- |
|
| 31 |
- |
|
| 32 |
-// TODO: reference additional headers your program requires here |
| 33 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,28 +0,0 @@ |
| 1 |
-This directory contains the files needed to build ClamAV under Windows |
|
| 2 |
-using Visual Studio 2005, thus avoiding emulation layers such as Cygwin. |
|
| 3 |
- |
|
| 4 |
-Some patches are needed against the rest of SVN for the code to |
|
| 5 |
-compile (most of them are trivial), see clamAV/patches. |
|
| 6 |
- |
|
| 7 |
-You will need to get hold of w32-pthreads version 2.6, or later, from |
|
| 8 |
-http://sourceware.org/pthreads-win32/ and install pthreadVC2.dll into a |
|
| 9 |
-location that CLamAV can find, such as c:\Program Files\ClamAV\pthreadVC2.dll. |
|
| 10 |
-You will need to create a folder "libclamav\pthread" and these files into |
|
| 11 |
-there: config.h, pthread.h, pthreadVC2.dll, pthreadVC2.lib, sched.h, |
|
| 12 |
-semaphore.h. |
|
| 13 |
- |
|
| 14 |
-You will need to download the zlib source from http://www.zlib.net/ |
|
| 15 |
-and install the .c and .h files into .../libclamav/zlib. |
|
| 16 |
- |
|
| 17 |
-Thanks to acab@clamav.net for adding libclamav.dll support, and to |
|
| 18 |
-edwin@clamav.net for testing it all and for pthreads support as a DLL. |
|
| 19 |
- |
|
| 20 |
-TODO: Support GMP |
|
| 21 |
- virusaction is not supported |
|
| 22 |
- A plugin to MS Exchange |
|
| 23 |
- On access scanning |
|
| 24 |
- Scan when a screensaver kicks in |
|
| 25 |
- zlib should be DLL, not bundled into libclamav.dll (needs thought |
|
| 26 |
- on the C runtime library) |
|
| 27 |
- |
|
| 28 |
--Nigel Horne |
| 29 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,60 @@ |
| 0 |
+ClamAV for Win32 |
|
| 1 |
+---------------- |
|
| 2 |
+ |
|
| 3 |
+0- Requirements |
|
| 4 |
+ |
|
| 5 |
+To build the source code you will need: |
|
| 6 |
+- Git for windows with a git "shell" |
|
| 7 |
+- Microsoft Visual Studio 2008 (the express version is just fine) |
|
| 8 |
+ |
|
| 9 |
+To run the binaries at least Windows 2000 is required. Microsoft Visual C++ 2008 |
|
| 10 |
+runtime libraries needs to be installed on the system. See: |
|
| 11 |
+http://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en |
|
| 12 |
+ |
|
| 13 |
+ |
|
| 14 |
+1- Getting the code |
|
| 15 |
+ |
|
| 16 |
+The win32 source code is merged in the ClamAV repository and is available |
|
| 17 |
+via git. |
|
| 18 |
+Clone the repository with: git clone git://git.clamav.net/git/clamav-devel |
|
| 19 |
+See http://www.clamav.net/download/sources for more info. |
|
| 20 |
+ |
|
| 21 |
+ |
|
| 22 |
+2- Code configuration |
|
| 23 |
+ |
|
| 24 |
+After downloading the source code, minimal configuration is required: |
|
| 25 |
+just run the win32/configure.bat script *from within the git shell*. |
|
| 26 |
+Skip this step if you are building from an official release tarball. |
|
| 27 |
+ |
|
| 28 |
+ |
|
| 29 |
+3- Compilation |
|
| 30 |
+ |
|
| 31 |
+Open win32/ClamAV.sln in Visual Studio and build all. |
|
| 32 |
+The output directory for the binaries is either /win32/Debug or /win32/Release, |
|
| 33 |
+depending on the configuration you pick. |
|
| 34 |
+ |
|
| 35 |
+ |
|
| 36 |
+4- Special notes |
|
| 37 |
+ |
|
| 38 |
+The ClamAV tools in win32 are the same as in unix, so refer to their respective |
|
| 39 |
+manpage for general usage. |
|
| 40 |
+The major differences are listed below: |
|
| 41 |
+- Config files path search order: |
|
| 42 |
+ 1- The content of the registry key "HKEY_LOCAL_MACHINE/Software/ClamAV/ConfDir" |
|
| 43 |
+ 2- The directory where libclamav.dll is located |
|
| 44 |
+ 3- "C:\ClamAV" |
|
| 45 |
+ |
|
| 46 |
+- Database files path search order: |
|
| 47 |
+ 1- The content of the registry key "HKEY_LOCAL_MACHINE/Software/ClamAV/DataDir" |
|
| 48 |
+ 2- The directory "database" inside the directory where libclamav.dll is located |
|
| 49 |
+ 3- "C:\ClamAV\db" |
|
| 50 |
+ |
|
| 51 |
+- Globbing |
|
| 52 |
+Since the windows command prompt doesn't take care of wildcard expansion, minimal |
|
| 53 |
+emulation of unix glob() is performed internally. It supports "*" and "?" only. |
|
| 54 |
+ |
|
| 55 |
+- File paths |
|
| 56 |
+Please always use the backslash as the path separator. |
|
| 57 |
+SMB Network shares and UNC paths are supported. |
|
| 58 |
+ |
|
| 59 |
+ |