mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
make sqlite support more or less work for logging and input
* add support for &type_column for reading * add basic tests for logging & input * clean up a bit * add support for tables for reading (untested)
This commit is contained in:
parent
365c2b0917
commit
3415b5fcbe
11 changed files with 325 additions and 121 deletions
12
src/main.cc
12
src/main.cc
|
@ -16,6 +16,10 @@
|
|||
#include <curl/curl.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_SQLITE
|
||||
#include "sqlite3.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_IDMEF
|
||||
extern "C" {
|
||||
#include <libidmef/idmefxml.h>
|
||||
|
@ -724,6 +728,10 @@ int main(int argc, char** argv)
|
|||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
#endif
|
||||
|
||||
#ifdef USE_SQLITE
|
||||
sqlite3_initialize();
|
||||
#endif
|
||||
|
||||
// FIXME: On systems that don't provide /dev/urandom, OpenSSL doesn't
|
||||
// seed the PRNG. We should do this here (but at least Linux, FreeBSD
|
||||
// and Solaris provide /dev/urandom).
|
||||
|
@ -1078,6 +1086,10 @@ int main(int argc, char** argv)
|
|||
curl_global_cleanup();
|
||||
#endif
|
||||
|
||||
#ifdef USE_SQLITE
|
||||
sqlite3_shutdown();
|
||||
#endif
|
||||
|
||||
terminate_bro();
|
||||
|
||||
// Close files after net_delete(), because net_delete()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue