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:
Bernhard Amann 2013-01-15 16:01:30 -08:00
parent 365c2b0917
commit 3415b5fcbe
11 changed files with 325 additions and 121 deletions

View file

@ -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()