...
|
...
|
@@ -81,10 +81,9 @@
|
81
|
81
|
# include <pthread.h>
|
82
|
82
|
static pthread_mutex_t cli_ref_mutex = PTHREAD_MUTEX_INITIALIZER;
|
83
|
83
|
#endif
|
84
|
|
-#ifndef _WIN32
|
85
|
84
|
#include "yara_clam.h"
|
86
|
85
|
#include "yara_compiler.h"
|
87
|
|
-#endif
|
|
86
|
+
|
88
|
87
|
|
89
|
88
|
#define MAX_LDB_SUBSIGS 64
|
90
|
89
|
|
...
|
...
|
@@ -2979,7 +2978,6 @@ static int cli_loadopenioc(FILE *fs, const char *dbname, struct cl_engine *engin
|
2979
|
2979
|
return rc;
|
2980
|
2980
|
}
|
2981
|
2981
|
|
2982
|
|
-#ifndef _WIN32
|
2983
|
2982
|
#define YARA_DEBUG 1
|
2984
|
2983
|
#if (YARA_DEBUG == 2)
|
2985
|
2984
|
#define cli_yaramsg(...) cli_errmsg(__VA_ARGS__)
|
...
|
...
|
@@ -3988,8 +3986,6 @@ static int cli_loadyara(FILE *fs, struct cl_engine *engine, unsigned int *signo,
|
3988
|
3988
|
return CL_SUCCESS;
|
3989
|
3989
|
}
|
3990
|
3990
|
|
3991
|
|
-#endif
|
3992
|
|
-
|
3993
|
3991
|
static int cli_loaddbdir(const char *dirname, struct cl_engine *engine, unsigned int *signo, unsigned int options);
|
3994
|
3992
|
|
3995
|
3993
|
int cli_load(const char *filename, struct cl_engine *engine, unsigned int *signo, unsigned int options, struct cli_dbio *dbio)
|
...
|
...
|
@@ -4120,10 +4116,8 @@ int cli_load(const char *filename, struct cl_engine *engine, unsigned int *signo
|
4120
|
4120
|
ret = cli_loadmscat(fs, dbname, engine, options, dbio);
|
4121
|
4121
|
} else if(cli_strbcasestr(dbname, ".ioc")) {
|
4122
|
4122
|
ret = cli_loadopenioc(fs, dbname, engine, options);
|
4123
|
|
-#ifndef _WIN32 /* FIXME: temp until clam yara for windows */
|
4124
|
4123
|
} else if(cli_strbcasestr(dbname, ".yar") || cli_strbcasestr(dbname, ".yara")) {
|
4125
|
4124
|
ret = cli_loadyara(fs, engine, signo, options, dbio, dbname);
|
4126
|
|
-#endif
|
4127
|
4125
|
} else {
|
4128
|
4126
|
cli_dbgmsg("cli_load: unknown extension - assuming old database format\n");
|
4129
|
4127
|
ret = cli_loaddb(fs, engine, signo, options, dbio, dbname);
|