1# Generated by Makefile. Do not edit. 2 3commit 10d15a3d6903c5add7001f60a10f28e80d88ca19 4Author: Antoine LUONG <antoine.luong@c-s.fr> 5Date: Fri Jul 31 09:43:55 2015 +0200 6 7 Update NEWS, bump version 8 9 Change-Id: I3e8f6265753a41bafc1bccb75577c4c8b2a1fe91 10 11 NEWS | 6 ++++++ 12 configure.in | 6 +++--- 13 2 files changed, 9 insertions(+), 3 deletions(-) 14 15commit 3f19ab8cb1df55f61a602385a6f2473b58b0246b 16Author: Antoine LUONG <antoine.luong@c-s.fr> 17Date: Mon Jul 27 10:07:38 2015 +0200 18 19 Update NEWS, bump version 20 21 Change-Id: Ife0f61bf751046b1d4e8d65f7990c779bfc8a3d1 22 23 NEWS | 44 ++++++++++++++++++++++++++++++++++++++++++++ 24 configure.in | 12 ++++++------ 25 2 files changed, 50 insertions(+), 6 deletions(-) 26 27commit 3ac9b75b9f3210b890995748df58a9bfab2c8880 28Author: Antoine LUONG <antoine.luong@c-s.fr> 29Date: Wed Jul 29 15:21:13 2015 +0200 30 31 [#720] Update from prelude-ids.org to prelude-siem.org 32 33 Change mailing lists to forums. 34 35 Change-Id: I222e5bb52eb7e28728aa93f9e14dbefbf0368133 36 37 LICENSE.README | 2 +- 38 README | 22 +++++++++------------- 39 bindings/python/setup.py.in | 2 +- 40 docs/manpages/preludedb-admin.1 | 10 +++++----- 41 m4/libprelude.m4 | 2 +- 42 m4/libpreludedb.m4 | 2 +- 43 6 files changed, 18 insertions(+), 22 deletions(-) 44 45commit a808174302f24b1b263f0edf4b13f269fde07720 46Author: Yoann Vandoorselaere <yoannv@gmail.com> 47Date: Fri Jul 24 09:21:28 2015 +0200 48 49 [#723]: fix version checking on 32 bits system 50 51 prelude_simple_strtod() seems to trigger kind of a gcc problem. 52 Additionally, we cannot really expect a version number to only have 53 2 version level. 54 55 Change-Id: Ie1c7e7dedbd554fabf66a494538ca2ae3bdd2876 56 57 plugins/format/classic/classic.c | 28 ++++++++++++++++------------ 58 1 files changed, 16 insertions(+), 12 deletions(-) 59 60commit 9f3f88e5b3593e79af2f23a66d3f086e3228c059 61Author: Yoann Vandoorselaere <yoannv@gmail.com> 62Date: Fri Jul 17 10:15:09 2015 +0200 63 64 [#rel:628] Handle type 'data' in value convertion 65 66 Change-Id: I3a7efbc69d3871b989cbd406f6b157d234b396af 67 68 bindings/python/_preludedb.cxx | 1 + 69 bindings/python/libpreludedbcpp-python.i | 1 + 70 2 files changed, 2 insertions(+), 0 deletions(-) 71 72commit 864829142741f0ee6682cfc1aab892b96dbdcec6 73Author: Yoann Vandoorselaere <yoannv@gmail.com> 74Date: Thu Jul 9 07:17:28 2015 +0200 75 76 [#650, #ext608] Fix warnings with PostgreSQL string insertion 77 78 Never use the E'' syntax anymore : use standard escaping function and 79 force standard_conforming_strings to on to avoid the double backslash 80 warning on PostgreSQL < 9.1. 81 82 - Turn standard_conforming_strings to ON for the connection. 83 - Revert "Fix warnings and error on ByteA insertion", id d62e99d8c00480ed7529ac8a089352cb8f30a1b9. 84 85 Change-Id: I9411d55642efea76fc668f5d6e9b6666ca9a162f 86 87 configure.in | 1 + 88 plugins/sql/pgsql/pgsql.c | 66 +++++++++++++++++--------------------------- 89 2 files changed, 27 insertions(+), 40 deletions(-) 90 91commit 25d0db4a280e26ff32b27f3bfb37f1efc911a30e 92Author: Yoann Vandoorselaere <yoannv@gmail.com> 93Date: Wed Jul 8 11:09:00 2015 +0800 94 95 [#628] Fix AdditionalData retrieval failure 96 97 - When SQL function are used, the number of retrieved field is always 1. 98 - Properly return untyped AdditionalData in situation where the type field is not available. 99 100 Change-Id: Ibc3e16fbbf6b8a89d2160dcbde1e067b64d97086 101 102 plugins/format/classic/classic.c | 16 +++++++++++----- 103 1 files changed, 11 insertions(+), 5 deletions(-) 104 105commit b9c3f5e3bea0291cfb08600d18577332e4ced32e 106Author: Yoann Vandoorselaere <yoannv@gmail.com> 107Date: Mon Jul 6 07:35:12 2015 +0800 108 109 Add getType() wrapper for preludedb_sql_get_type() function 110 111 Change-Id: I3773bb43a3400510f6ca5fd9140e22112c42b1b5 112 113 bindings/c++/include/preludedb-sql.hxx | 1 + 114 bindings/python/_preludedb.cxx | 32 ++++++++++++++++++++++++++++++++ 115 2 files changed, 33 insertions(+), 0 deletions(-) 116 117commit 404ffd83a6a623646fb523c9d29a08d022a7f30c 118Author: Yoann Vandoorselaere <yoannv@gmail.com> 119Date: Wed Jul 8 11:13:46 2015 +0800 120 121 Update SWIG generated code 122 123 Use SWIG 3.0.6 to generate the bindings code 124 125 Change-Id: I714cc50affe633d7ae021957737330e77425e2bf 126 127 bindings/python/_preludedb.cxx | 120 ++++++++++++++++++++++++++++++++++----- 128 bindings/python/preludedb.py | 64 ++++++++++++++------- 129 2 files changed, 146 insertions(+), 38 deletions(-) 130 131commit 305395f0544f9d17d0f69f28c4bd75f1c7762782 132Author: Yoann Vandoorselaere <yoannv@gmail.com> 133Date: Mon Jul 6 07:30:32 2015 +0800 134 135 [#593] Year extraction was not working 136 137 PRELUDEDB_SQL_TIME_CONSTRAINT_YEAR was defined as 0, which made it impossible to know 138 when the flags was set. Set it to a new custom value, and preserve other flags values 139 for backward compatibility. 140 141 Change-Id: I77e992d1b055d6b447ff9939fb0c6f3b1c77a0f4 142 143 src/include/preludedb-sql.h | 16 ++++++++-------- 144 1 files changed, 8 insertions(+), 8 deletions(-) 145 146commit 83c21c9371786d1abfa9a21b6d9e3e70e8eabfc4 147Author: Antoine LUONG <antoine.luong@c-s.fr> 148Date: Mon Jun 29 17:24:54 2015 +0200 149 150 [#516] Copyright year update 151 152 Change-Id: Iffacde1c2dd9242140d18b4fd19c4e0f15e4116a 153 154 LICENSE.README | 2 +- 155 bindings/c++/include/preludedb-error.hxx | 2 +- 156 bindings/c++/preludedb-error.cxx | 2 +- 157 bindings/libpreludedbcpp.i | 2 +- 158 bindings/python/setup.py.in | 2 +- 159 docs/manpages/preludedb-admin.1 | 2 +- 160 plugins/format/classic/classic-delete.c | 2 +- 161 plugins/format/classic/classic-get.c | 2 +- 162 plugins/format/classic/classic-insert.c | 2 +- 163 plugins/format/classic/classic-path-resolve.c | 2 +- 164 plugins/format/classic/classic-sql-join.c | 2 +- 165 plugins/format/classic/classic-sql-select.c | 2 +- 166 plugins/format/classic/classic.c | 2 +- 167 plugins/format/classic/include/classic-delete.h | 2 +- 168 plugins/format/classic/include/classic-get.h | 2 +- 169 .../format/classic/include/classic-path-resolve.h | 2 +- 170 plugins/format/classic/include/classic-sql-join.h | 2 +- 171 .../format/classic/include/classic-sql-select.h | 2 +- 172 plugins/sql/mysql/mysql.c | 2 +- 173 plugins/sql/pgsql/pgsql.c | 2 +- 174 plugins/sql/sqlite3/sqlite3.c | 2 +- 175 preludedb-admin.c | 2 +- 176 src/include/preludedb-error.h | 2 +- 177 src/include/preludedb-path-selection.h | 2 +- 178 src/include/preludedb-plugin-format-prv.h | 2 +- 179 src/include/preludedb-plugin-format.h | 2 +- 180 src/include/preludedb-plugin-sql.h | 2 +- 181 src/include/preludedb-sql-settings.h | 2 +- 182 src/include/preludedb-sql.h | 2 +- 183 src/include/preludedb-version.h.in | 2 +- 184 src/include/preludedb.h | 2 +- 185 src/preludedb-error.c | 2 +- 186 src/preludedb-path-selection.c | 2 +- 187 src/preludedb-plugin-format.c | 2 +- 188 src/preludedb-plugin-sql.c | 2 +- 189 src/preludedb-sql-settings.c | 2 +- 190 src/preludedb-sql.c | 2 +- 191 src/preludedb-version.c | 2 +- 192 src/preludedb.c | 2 +- 193 39 files changed, 39 insertions(+), 39 deletions(-) 194 195commit 5c08cdcc3d6109087bf21dede055279e86c1511a 196Author: Yoann Vandoorselaere <yoannv@gmail.com> 197Date: Wed Nov 5 16:50:22 2014 +0100 198 199 SWIG Python now use builtin mode (massive performance improvements) 200 201 Change-Id: Ic7522b53419007da101a34697eac125163b343f2 202 203 bindings/c++/include/preludedb-sql.hxx | 9 +- 204 bindings/c++/include/preludedb.hxx | 12 +- 205 bindings/c++/preludedb-sql.cxx | 58 +- 206 bindings/c++/preludedb.cxx | 102 +- 207 bindings/libpreludedbcpp.i | 34 +- 208 bindings/python/Makefile.am | 2 +- 209 bindings/python/_preludedb.cxx | 9901 +++++++++++++++++++++++------- 210 bindings/python/libpreludedbcpp-python.i | 401 +- 211 bindings/python/preludedb.py | 275 +- 212 9 files changed, 8085 insertions(+), 2709 deletions(-) 213 214commit b9c6bdf9e7e146cc89c57563ddc55b976b32c827 215Author: Yoann Vandoorselaere <yoannv@gmail.com> 216Date: Mon Oct 27 13:51:38 2014 +0100 217 218 Optimisation work : reduce the number of allocation 219 220 When fetching a high number of rows/fields, it is sub-optimal to 221 allocate a new field structure for each field. 222 223 Make fields a flexible array member within the row structure, and 224 allocate it dynamically. 225 226 This also substentially reduce the preludedb_sql_field_t structure 227 size. 228 229 Change-Id: I52e3e1268e4f0f4807e176d6df927d968ae913d4 230 231 src/preludedb-sql.c | 99 +++++++++++++++++++++++---------------------------- 232 1 files changed, 45 insertions(+), 54 deletions(-) 233 234commit eeefab035bf0ce9cfc418cd80b7bf990788c8f7b 235Author: Yoann Vandoorselaere <yoannv@gmail.com> 236Date: Mon Oct 27 13:34:46 2014 +0100 237 238 Cache preludedb_sql_table_get_(row|column)_count() 239 240 Depending on the backend, theses function might be slow : cache 241 the return value. 242 243 Change-Id: I11ba506cc9c051ba687ca1e807c9552bfa77b5a1 244 245 src/preludedb-sql.c | 24 +++++++++++++++++++----- 246 1 files changed, 19 insertions(+), 5 deletions(-) 247 248commit b267fd6a1b85c16e078b5948207fdfbc877e7cb7 249Author: Yoann Vandoorselaere <yoannv@gmail.com> 250Date: Fri Oct 31 09:02:19 2014 +0100 251 252 Add missing C++ operator 253 254 Change-Id: I43a9d59c925585ed24ac6d2c2be30ec05133f792 255 256 bindings/c++/include/preludedb-sql.hxx | 1 + 257 bindings/c++/include/preludedb.hxx | 2 +- 258 bindings/c++/preludedb-sql.cxx | 12 ++++++++++++ 259 bindings/c++/preludedb.cxx | 14 +++++++++++++- 260 4 files changed, 27 insertions(+), 2 deletions(-) 261 262commit a3ef2feca08fe0ddfbe12ee64e2d6563222ca803 263Author: Yoann Vandoorselaere <yoannv@gmail.com> 264Date: Thu Oct 30 12:30:41 2014 +0100 265 266 Fix memory leak on AdditionalData retrieval 267 268 Change-Id: I22e4553e34c888100b75edff047cf27a8d9911d2 269 270 plugins/format/classic/classic-get.c | 9 +++++---- 271 1 files changed, 5 insertions(+), 4 deletions(-) 272 273commit 6f7c57c7cf8afb9d26809176a448cb572b7339bb 274Author: Yoann Vandoorselaere <yoannv@gmail.com> 275Date: Thu Oct 30 07:15:02 2014 +0100 276 277 Fix getValues() AdditionalData handling 278 279 AdditionalData returned through getValues() weren't unescaped, and were 280 always of type string. We now automatically unescape the data, and 281 retrieve the AdditionalData type from the database to return the 282 correct value type. 283 284 PreludeDB internal_value_cb is also modified in order to best handle byte 285 string (use a prelude_string container, which is able to carry any string 286 independantly from their content). 287 288 Change-Id: Ic71aa54966cd93bd36b6a04364096fd9461a7b65 289 290 plugins/format/classic/classic-get.c | 64 ++++--------- 291 plugins/format/classic/classic-path-resolve.c | 17 +++- 292 plugins/format/classic/classic.c | 128 +++++++++++++++++++++++-- 293 src/preludedb.c | 11 ++ 294 4 files changed, 165 insertions(+), 55 deletions(-) 295 296commit 23104e0f396b8e6a19febb933406b46670c74cd7 297Author: Yoann Vandoorselaere <yoannv@gmail.com> 298Date: Wed Oct 29 17:00:02 2014 +0100 299 300 Fix deprecation warnings 301 302 Change-Id: Ia4ca53a1756d18628fb75dbe920f24e62677a008 303 304 plugins/format/classic/classic-get.c | 8 ++++---- 305 1 files changed, 4 insertions(+), 4 deletions(-) 306 307commit dae1623639ae086e45530fda7559d55c028e4eb3 308Author: Yoann Vandoorselaere <yoannv@gmail.com> 309Date: Wed Oct 29 12:53:44 2014 +0100 310 311 preludedb-admin fixes 312 313 preludedb-admin needed a few update to be on par with latest changes. 314 315 Change-Id: Id7111e9d748793cd81b3f9533997fa274f1ee069 316 317 preludedb-admin.c | 17 ++++++++++++----- 318 src/preludedb.c | 3 ++- 319 2 files changed, 14 insertions(+), 6 deletions(-) 320 321commit a2df5e85e60ce4d434b28142c07502586c84d9cd 322Author: Yoann Vandoorselaere <yoannv@gmail.com> 323Date: Wed Oct 29 11:06:24 2014 +0100 324 325 New value fetch mode, remove deprecated API 326 327 Introduce preludedb_result_values_get_field_direct() function, that can 328 be used by libpreludedb bindings in order to optimize translation from 329 C to target language value. 330 331 Implement missing preludedb_result_values_get_db() function. 332 333 Remove deprecated old *_get_next_* functions. 334 Remove deprecated low-level bindings. 335 336 Change-Id: Ia31938f1cf197e91c790cf179d42e795c0d443dd 337 338 bindings/Makefile.am | 2 +- 339 bindings/low-level/Makefile.am | 16 - 340 bindings/low-level/libpreludedb.i | 111 - 341 bindings/low-level/python/Makefile.am | 27 - 342 bindings/low-level/python/_preludedbold.c |11352 ----------------------- 343 bindings/low-level/python/libpreludedb-python.i | 410 - 344 bindings/low-level/python/preludedbold.py | 9 - 345 bindings/low-level/python/setup.py.in | 90 - 346 bindings/python/_preludedb.cxx | 8 +- 347 configure.in | 4 - 348 plugins/format/classic/classic-delete.c | 4 +- 349 plugins/format/classic/classic.c | 197 +- 350 preludedb-admin.c | 22 +- 351 src/include/preludedb-plugin-format-prv.h | 2 - 352 src/include/preludedb-plugin-format.h | 12 +- 353 src/include/preludedb.h | 9 +- 354 src/preludedb-plugin-format.c | 22 +- 355 src/preludedb.c | 70 +- 356 18 files changed, 132 insertions(+), 12235 deletions(-) 357 358commit 86a3f8c0096559d9911658d1dc6c725fa66bf570 359Author: Antoine LUONG <antoine.luong@c-s.fr> 360Date: Mon Oct 27 10:42:03 2014 +0100 361 362 Update NEWS, bump version 363 364 Change-Id: I6a9e9c1979e7345657d3e56fbaba7b083d968490 365 366 NEWS | 44 +++++++++++++++++++++++++++++ 367 bindings/low-level/python/_preludedbold.c | 6 ++-- 368 configure.in | 8 ++-- 369 3 files changed, 51 insertions(+), 7 deletions(-) 370 371commit c7c477655968d64c87359e3a71b40b3612d4d730 372Author: Yoann Vandoorselaere <yoannv@gmail.com> 373Date: Sun Oct 26 10:57:47 2014 +0100 374 375 MySQL: fix invalid field length 376 377 mysql_fetch_lengths() is only valid for the current row of the result set. 378 As a result, the lengths pointer we used to hold in preludedb_sql_row_t 379 wasn't reflecting the given preludedb_sql_row_t fields lengths, but the 380 current fields lengths. 381 382 To fix this problem, we copy the MySQL lengths at preludedb_sql_row_t 383 creation time. A flexible array member is used to avoid repeated call 384 to malloc. 385 386 Change-Id: Ia06302f5c23e4c99562aa810baab74067d7553ab 387 388 plugins/sql/mysql/mysql.c | 12 +++++++++--- 389 1 files changed, 9 insertions(+), 3 deletions(-) 390 391commit 7e9ff40e6e6116b7e706137a1bbb129566cde18a 392Author: Antoine LUONG <antoine.luong@c-s.fr> 393Date: Fri Oct 24 17:37:08 2014 +0200 394 395 Force default include path for high-level Python binding 396 397 Change-Id: I8b28fb49c819f858bb5247aa3e085cbd4695194b 398 399 bindings/python/Makefile.am | 2 +- 400 1 files changed, 1 insertions(+), 1 deletions(-) 401 402commit cefb5fa88e8b001add35cb882039f4d53caa7749 403Author: Antoine LUONG <antoine.luong@c-s.fr> 404Date: Fri Oct 24 10:35:48 2014 +0200 405 406 Fix #436: allow serial_version to be 0 when level_version is final 407 408 Change-Id: Ic071f781741f363379bfb905f19d40281d8c557e 409 410 configure.in | 7 ++++++- 411 1 files changed, 6 insertions(+), 1 deletions(-) 412 413commit 9537609c012fa4f74eaedb428f0daffc40dc8cd7 414Author: Yoann Vandoorselaere <yoannv@gmail.com> 415Date: Fri Oct 24 14:07:10 2014 +0200 416 417 Fix possible NULL pointer dereference 418 419 In case we try to access a specific row, and that some preceding rows 420 have not been fetched previously, they might be NULL. 421 422 Change-Id: Ia01737d20f3efd868bb33866afc810ac6479acef 423 424 src/preludedb-sql.c | 3 ++- 425 1 files changed, 2 insertions(+), 1 deletions(-) 426 427commit 037f81142367c7039854f3b1ddea4e008a2e7ef5 428Author: Yoann Vandoorselaere <yoannv@gmail.com> 429Date: Thu Oct 23 21:16:44 2014 +0200 430 431 Fix memory leak 432 433 Change-Id: I398b27126fd82a856acd672764f9acc1992a02e9 434 435 bindings/c++/preludedb.cxx | 9 +++------ 436 1 files changed, 3 insertions(+), 6 deletions(-) 437 438commit daba44a4f0edfc9b3c7efeaf5d6006b4a15f1c96 439Author: Yoann Vandoorselaere <yoannv@gmail.com> 440Date: Wed Oct 22 16:59:46 2014 +0200 441 442 Fix memory (over) allocation for SQL fields 443 444 We were allocating too much memory for the fields table, which could 445 lead to very big memory usage in case of high number of rows / fields. 446 447 Change-Id: Ia9838746c4d2c7226c83f236c0860e54a10d00c1 448 449 src/preludedb-sql.c | 2 +- 450 1 files changed, 1 insertions(+), 1 deletions(-) 451 452commit c380c2aeb0b723503b8bf41ca8585fbb150861c1 453Author: Yoann Vandoorselaere <yoannv@gmail.com> 454Date: Tue Oct 21 18:20:20 2014 +0200 455 456 Support self argument to IDMEFValue_to_SWIG for future builtin compatibility 457 458 Change-Id: I251248a340fbf04863ec877150d24edd29071fa0 459 460 bindings/python/_preludedb.cxx | 14 ++++++++------ 461 bindings/python/libpreludedbcpp-python.i | 1 + 462 2 files changed, 9 insertions(+), 6 deletions(-) 463 464commit a68419e36f55177344ab8590852a7b1546ae7a27 465Author: Yoann Vandoorselaere <yoannv@gmail.com> 466Date: Tue Oct 21 10:55:39 2014 +0200 467 468 Add API safety checks 469 470 Change-Id: I84224a92ed74e5c3a7c751677ca7b4ea7a9dc61e 471 472 src/preludedb.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 473 1 files changed, 58 insertions(+), 1 deletions(-) 474 475commit 55301b87e467c519bcdc316658672e4897b3662c 476Author: Yoann Vandoorselaere <yoannv@gmail.com> 477Date: Tue Oct 21 10:54:38 2014 +0200 478 479 Make sure the results are not empty when calling db backend function 480 481 Change-Id: I9a6f3336e4501d4d761cbaf93966b14ce9ea41b6 482 483 bindings/c++/preludedb.cxx | 9 +++++++++ 484 1 files changed, 9 insertions(+), 0 deletions(-) 485 486commit c9758d143de930a5baf449ea9077b651c8d2e851 487Author: Yoann Vandoorselaere <yoannv@gmail.com> 488Date: Mon Oct 20 18:40:38 2014 +0200 489 490 Update low-level bindings 491 492 Change-Id: I1881d820177df34593524b1e755738cb4a268dff 493 494 bindings/low-level/python/_preludedbold.c | 452 +++++++++++++++-------------- 495 1 files changed, 228 insertions(+), 224 deletions(-) 496 497commit 26cc7a2537c816465894734b72579ee141a0870b 498Author: Yoann Vandoorselaere <yoannv@gmail.com> 499Date: Mon Oct 20 18:43:54 2014 +0200 500 501 Update GnuLib code to include memrchr 502 503 Change-Id: Ia145b71b5bc0d4f6c108b9b05a71ff7eec1ca4f0 504 505 libmissing/Makefile.am | 11 +++- 506 libmissing/alloca.in.h | 2 +- 507 libmissing/asnprintf.c | 2 +- 508 libmissing/errno.in.h | 2 +- 509 libmissing/float+.h | 2 +- 510 libmissing/float.c | 2 +- 511 libmissing/float.in.h | 2 +- 512 libmissing/gettimeofday.c | 2 +- 513 libmissing/glthread/lock.c | 2 +- 514 libmissing/glthread/lock.h | 2 +- 515 libmissing/glthread/threadlib.c | 2 +- 516 libmissing/itold.c | 2 +- 517 libmissing/m4/gnulib-cache.m4 | 5 +- 518 libmissing/m4/gnulib-comp.m4 | 14 ++++ 519 libmissing/m4/memrchr.m4 | 23 ++++++ 520 libmissing/malloc.c | 2 +- 521 libmissing/memchr.c | 2 +- 522 libmissing/memrchr.c | 161 +++++++++++++++++++++++++++++++++++++++ 523 libmissing/printf-args.c | 2 +- 524 libmissing/printf-args.h | 2 +- 525 libmissing/printf-parse.c | 2 +- 526 libmissing/printf-parse.h | 2 +- 527 libmissing/size_max.h | 2 +- 528 libmissing/snprintf.c | 2 +- 529 libmissing/stddef.in.h | 2 +- 530 libmissing/stdint.in.h | 2 +- 531 libmissing/stdio.in.h | 2 +- 532 libmissing/stdlib.in.h | 2 +- 533 libmissing/strdup.c | 2 +- 534 libmissing/string.in.h | 2 +- 535 libmissing/strndup.c | 2 +- 536 libmissing/strnlen.c | 2 +- 537 libmissing/sys_time.in.h | 2 +- 538 libmissing/sys_types.in.h | 2 +- 539 libmissing/tests/Makefile.am | 8 ++ 540 libmissing/tests/test-memrchr.c | 91 ++++++++++++++++++++++ 541 libmissing/time.in.h | 2 +- 542 libmissing/time_r.c | 2 +- 543 libmissing/unistd.in.h | 2 +- 544 libmissing/vasnprintf.c | 2 +- 545 libmissing/vasnprintf.h | 2 +- 546 libmissing/verify.h | 2 +- 547 libmissing/vsnprintf.c | 2 +- 548 libmissing/wchar.in.h | 2 +- 549 libmissing/xsize.h | 2 +- 550 45 files changed, 348 insertions(+), 41 deletions(-) 551 552commit 1625e3cd30e8c6e51a08d51c665cffafd51ee432 553Author: Yoann Vandoorselaere <yoannv@gmail.com> 554Date: Mon Oct 20 09:17:15 2014 +0200 555 556 Support time extraction on selected fields 557 558 Change-Id: Ib7379170dc09ac4fcadc8f3875bfb4f4b056aba4 559 560 plugins/format/classic/classic-path-resolve.c | 23 +++++++- 561 plugins/format/classic/classic.c | 4 +- 562 plugins/sql/mysql/mysql.c | 67 ++++++++++++++----------- 563 plugins/sql/pgsql/pgsql.c | 63 ++++++++++++++---------- 564 plugins/sql/sqlite3/sqlite3.c | 62 ++++++++++++++--------- 565 src/include/preludedb-plugin-sql.h | 11 ++++ 566 src/include/preludedb-sql.h | 3 + 567 src/preludedb-path-selection.c | 67 ++++++++++++++++++++++-- 568 src/preludedb-plugin-sql.c | 22 ++++++++ 569 src/preludedb-sql.c | 7 +++ 570 10 files changed, 238 insertions(+), 91 deletions(-) 571 572commit b396a70ae11f3da2434e2c9cc9963993236e18dd 573Author: Yoann Vandoorselaere <yoannv@gmail.com> 574Date: Fri Oct 17 18:47:02 2014 +0200 575 576 When there are multiple field, apply order/group_by to each field 577 578 Additionally, when a GROUP BY occur on create_time, ignore 579 gmtoff and usec fields, since the result wouldn't be reliable. 580 581 Also, since we now know the number of column used for each path, 582 we don't need to insert dummy "O" field. 583 584 Change-Id: Ie22c30edc00e4e2a299d5763af6fe4db47f5583f 585 586 plugins/format/classic/classic-path-resolve.c | 9 ++- 587 plugins/format/classic/classic-sql-select.c | 50 +++++++++----------- 588 plugins/format/classic/classic.c | 3 +- 589 .../format/classic/include/classic-sql-select.h | 2 +- 590 4 files changed, 32 insertions(+), 32 deletions(-) 591 592commit 87221d71bc427c6f0406b5139b99f9b4292243e3 593Author: Yoann Vandoorselaere <yoannv@gmail.com> 594Date: Fri Oct 17 18:50:18 2014 +0200 595 596 Fix issues with fields internally expanded to multiples fields 597 598 Format plugins now have to register a "get_path_column_count" 599 callback, that will return the number of field used for a given 600 path. 601 602 Fix a problem with invalid fields returned, in query on specific 603 fields that were expanded to multiple fields. 604 605 Change-Id: Ic210c0e270ea2344bc60c433af10fd23e3da71f6 606 607 bindings/c++/Makefile.am | 2 +- 608 bindings/c++/include/Makefile.am | 2 +- 609 bindings/c++/include/preludedb-path-selection.hxx | 22 - 610 bindings/c++/include/preludedb.hxx | 5 +- 611 bindings/c++/preludedb-path-selection.cxx | 69 - 612 bindings/c++/preludedb.cxx | 56 +- 613 bindings/libpreludedbcpp.i | 32 - 614 bindings/python/_preludedb.cxx | 655 +++------ 615 bindings/python/libpreludedbcpp-python.i | 3 +- 616 bindings/python/preludedb.py | 17 +- 617 docs/api/libpreludedb-decl.txt | 1583 +++++++++++++-------- 618 docs/api/tmpl/libpreludedb-unused.sgml | 16 + 619 docs/api/tmpl/preludedb-error.sgml | 1 + 620 docs/api/tmpl/preludedb-path-selection.sgml | 2 + 621 docs/api/tmpl/preludedb-plugin-sql.sgml | 30 +- 622 docs/api/tmpl/preludedb.sgml | 4 +- 623 plugins/format/classic/classic-path-resolve.c | 2 +- 624 plugins/format/classic/classic.c | 45 +- 625 preludedb-admin.c | 51 +- 626 src/include/preludedb-path-selection.h | 18 +- 627 src/include/preludedb-plugin-format-prv.h | 1 + 628 src/include/preludedb-plugin-format.h | 5 + 629 src/include/preludedb.h | 3 +- 630 src/preludedb-path-selection.c | 39 +- 631 src/preludedb-plugin-format.c | 8 + 632 src/preludedb.c | 8 +- 633 26 files changed, 1369 insertions(+), 1310 deletions(-) 634 635commit 3b8e2f2d83ef2cf4c07f8225e27fbe0e617f83ff 636Author: Yoann Vandoorselaere <yoannv@gmail.com> 637Date: Fri Oct 17 15:06:33 2014 +0200 638 639 Correctly throw PreludeDB exception in Python 640 641 Throw PreludeDBError exception object rather than generic 642 Python exception. Additionally, modify libpreludedbcpp.i 643 so that PreludeDBError is derived from PreludeError. 644 645 Change-Id: Id0aaeb94ee8dc7964082d1d7c2d398f384e89917 646 647 bindings/libpreludedbcpp.i | 2 + 648 bindings/python/_preludedb.cxx | 2454 ++++++++++++++++-------------- 649 bindings/python/libpreludedbcpp-python.i | 15 + 650 bindings/python/preludedb.py | 4 +- 651 4 files changed, 1372 insertions(+), 1103 deletions(-) 652 653commit 61ffa3a1ab0ad25ef82ad472f2a1048c6c6d9ca8 654Author: Yoann Vandoorselaere <yoannv@gmail.com> 655Date: Fri Oct 17 14:42:49 2014 +0200 656 657 Fix memory leak on error 658 659 Change-Id: Ib8f38ec29a27ab2467e7e938660a1a1c663b993a 660 661 src/preludedb-sql.c | 4 +++- 662 1 files changed, 3 insertions(+), 1 deletions(-) 663 664commit b4654fc99f1a9fe974af56ba5021fee8fa0ae878 665Author: Yoann Vandoorselaere <yoannv@gmail.com> 666Date: Fri Oct 17 12:06:23 2014 +0200 667 668 Error checking fixes, use ENOSYS in place of ENOTSUP 669 670 Check _preludedb_plugin_sql_get_row_count() return value with 671 the prelude_error defined code so that we can workaround the 672 case where the backend doesn't implement the function. 673 674 Additionally, replace any instance of ENOTSUP with ENOSYS. ENOTSUP 675 is not available everywhere (OpenBSD), so we used to define it to 676 ENOTSUPP in case it wasn't. This made it harder to check for the 677 libprelude mapped error code (which could be PRELUDE_ERROR_ENOTSUP 678 or PRELUDE_ERROR_ENOTSUPP). Using ENOSYS, which seems portable, 679 make it possible to avoid the problem. 680 681 Change-Id: I1e261f2cb2414cf5a2424acf0ac8a731e0c45623 682 683 src/preludedb-plugin-sql.c | 6 +----- 684 src/preludedb-sql.c | 2 +- 685 src/preludedb.c | 7 ++++--- 686 3 files changed, 6 insertions(+), 9 deletions(-) 687 688commit 6bfb5c0ea567566abfdb80a5d27797192cc5a90d 689Author: Antoine LUONG <antoine.luong@c-s.fr> 690Date: Wed Oct 15 18:03:28 2014 +0200 691 692 Update NEWS, bump version 693 694 Change-Id: I861d70e0cf13fa86e6806749b2873e68dd93b962 695 696 NEWS | 24 ++++++++++++++++++++++++ 697 bindings/low-level/python/_preludedbold.c | 2 +- 698 configure.in | 6 +++--- 699 3 files changed, 28 insertions(+), 4 deletions(-) 700 701commit 0f7bc30a8ff296c2cd04a0148bc133a0658ba355 702Author: Yoann Vandoorselaere <yoannv@gmail.com> 703Date: Tue Oct 14 16:32:13 2014 +0200 704 705 Fix possible group_by/order_by index problem 706 707 This can happen in case the previously selected field is an aggregate 708 of multiple fields (like create_time). 709 710 Change-Id: I01e01c9ab7e61fea7d6f78677bcff5c6b965b1d1 711 712 plugins/format/classic/classic-sql-select.c | 8 +++++++- 713 1 files changed, 7 insertions(+), 1 deletions(-) 714 715commit a396369dcf503ab4ac996011d7ebab87a501c137 716Author: Camille GARDET <camille.gardet@c-s.fr> 717Date: Wed Oct 15 09:38:10 2014 +0200 718 719 Fix #412 - Move dependencies in README file 720 721 Change-Id: Ia415187a3c94eb1f204050cf1c64a6be5816a633 722 723 INSTALL | 15 --------------- 724 README | 27 ++++++++++++++++++++++----- 725 2 files changed, 22 insertions(+), 20 deletions(-) 726 727commit bd3859afe35196757b0f7e6bcdefc661df964bd4 728Author: Yoann Vandoorselaere <yoannv@gmail.com> 729Date: Thu Oct 9 02:06:25 2014 +0200 730 731 Unlock Python GIL before calling libpreludedb function 732 733 Some libpreludeDB function are blocking, so we don't want long 734 request to completly lock the interpreter. 735 736 Change-Id: I45dec7ea6441f137b0090fe6caaaf0dbee743375 737 738 bindings/libpreludedbcpp.i | 2 + 739 bindings/python/_preludedb.cxx | 486 +++++++++++++++++++++++++++++++++------- 740 2 files changed, 407 insertions(+), 81 deletions(-) 741 742commit d8e01e5478f9a38b502c373b12c8e6891697e555 743Author: Yoann Vandoorselaere <yoannv@gmail.com> 744Date: Thu Oct 9 00:05:35 2014 +0200 745 746 Prevent version check failure in case of localisation change 747 748 Change-Id: Ia30c5affee9f21401107d6ad293844e635bbc23a 749 750 plugins/format/classic/classic.c | 4 +++- 751 1 files changed, 3 insertions(+), 1 deletions(-) 752 753commit 0956a28a2c4b3eb67578e7bf56211556dfa6c54c 754Author: Yoann Vandoorselaere <yoannv@gmail.com> 755Date: Fri Oct 3 14:54:31 2014 +0200 756 757 Use --lgpl=2 when invoking GnuLib, remove obsolete GnuLib files 758 759 Change-Id: Ia7cce67c7daa766e964af7ddf37a7b56a25dbd6c 760 761 libmissing/Makefile.am | 2 +- 762 libmissing/alloca.in.h | 2 +- 763 libmissing/asnprintf.c | 2 +- 764 libmissing/errno.in.h | 2 +- 765 libmissing/float+.h | 2 +- 766 libmissing/float.c | 2 +- 767 libmissing/float.in.h | 2 +- 768 libmissing/gettimeofday.c | 2 +- 769 libmissing/glthread/lock.c | 2 +- 770 libmissing/glthread/lock.h | 2 +- 771 libmissing/glthread/threadlib.c | 2 +- 772 libmissing/itold.c | 2 +- 773 libmissing/m4/gnulib-cache.m4 | 4 ++-- 774 libmissing/malloc.c | 2 +- 775 libmissing/memchr.c | 2 +- 776 libmissing/printf-args.c | 2 +- 777 libmissing/printf-args.h | 2 +- 778 libmissing/printf-parse.c | 2 +- 779 libmissing/printf-parse.h | 2 +- 780 libmissing/size_max.h | 2 +- 781 libmissing/snprintf.c | 2 +- 782 libmissing/stddef.in.h | 2 +- 783 libmissing/stdint.in.h | 2 +- 784 libmissing/stdio.in.h | 2 +- 785 libmissing/stdlib.in.h | 2 +- 786 libmissing/strdup.c | 2 +- 787 libmissing/string.in.h | 2 +- 788 libmissing/strndup.c | 2 +- 789 libmissing/strnlen.c | 2 +- 790 libmissing/sys_time.in.h | 2 +- 791 libmissing/sys_types.in.h | 2 +- 792 libmissing/time.in.h | 2 +- 793 libmissing/time_r.c | 2 +- 794 libmissing/unistd.in.h | 2 +- 795 libmissing/vasnprintf.c | 2 +- 796 libmissing/vasnprintf.h | 2 +- 797 libmissing/verify.h | 2 +- 798 libmissing/vsnprintf.c | 2 +- 799 libmissing/wchar.in.h | 2 +- 800 libmissing/xsize.h | 2 +- 801 link-warning.h | 28 ---------------------------- 802 41 files changed, 41 insertions(+), 69 deletions(-) 803 804commit d4b449fe50d5be8e73d949fcce0d9a681a1c0d11 805Author: Yoann Vandoorselaere <yoannv@gmail.com> 806Date: Wed Sep 24 17:04:02 2014 +0200 807 808 Include string.h for strcmp() 809 810 Change-Id: Ibd49f3ce4b11ae74abd81feaeb80d0d3dbe9b368 811 812 src/preludedb-version.c | 1 + 813 1 files changed, 1 insertions(+), 0 deletions(-) 814 815commit 71a63ae0794a75ee6acd807809cb66cf11d11291 816Author: Yoann Vandoorselaere <yoannv@gmail.com> 817Date: Mon Sep 1 14:07:27 2014 +0200 818 819 PreludeDB high level C++ and Python bindings 820 821 Implemented high level Python2 and 3 bindings for libpreludedb. 822 The main API, DB and SQL are supported. 823 824 Change-Id: I1bc6d4e645bcb4a6a35aa5f64b255fdb8923b730 825 826 Makefile.am | 2 +- 827 bindings/Makefile.am | 9 +- 828 bindings/c++/Makefile.am | 15 + 829 bindings/c++/include/Makefile.am | 4 + 830 bindings/c++/include/preludedb-error.hxx | 39 + 831 bindings/c++/include/preludedb-path-selection.hxx | 22 + 832 bindings/c++/include/preludedb-sql.hxx | 89 + 833 bindings/c++/include/preludedb.hxx | 120 + 834 bindings/c++/preludedb-error.cxx | 45 + 835 bindings/c++/preludedb-path-selection.cxx | 69 + 836 bindings/c++/preludedb-sql.cxx | 352 + 837 bindings/c++/preludedb.cxx | 481 + 838 bindings/libpreludedbcpp.i | 171 + 839 bindings/low-level/python/Makefile.am | 10 +- 840 bindings/low-level/python/_preludedbold.c | 27 + 841 bindings/python/Makefile.am | 48 + 842 bindings/python/_preludedb.cxx |11271 +++++++++++++++++++++ 843 bindings/python/libpreludedbcpp-python.i | 122 + 844 bindings/python/preludedb.py | 368 + 845 bindings/python/pystrings.swg | 111 + 846 bindings/python/setup.py.in | 111 + 847 configure.in | 78 +- 848 m4/ax_reset_headers_cache.m4 | 23 + 849 preludedb-admin.c | 15 +- 850 src/include/preludedb-plugin-format.h | 6 +- 851 src/include/preludedb-sql.h | 1 + 852 src/include/preludedb.h | 6 +- 853 src/preludedb-sql.c | 6 + 854 src/preludedb.c | 6 +- 855 29 files changed, 13593 insertions(+), 34 deletions(-) 856 857commit 621fd294a79da45583a40bb2cfee54e6d2d011bc 858Author: Thomas ANDREJAK <thomas.andrejak@c-s.fr> 859Date: Wed Sep 24 23:15:19 2014 +0200 860 861 Some distribution like CentOS do not use default include path from the system, force it for swig 862 863 Change-Id: Icb318020b62798d107f06425c8ce44baddfa9f13 864 865 bindings/low-level/python/Makefile.am | 3 ++- 866 1 files changed, 2 insertions(+), 1 deletions(-) 867 868commit caa836e19df57dcfc14e859058c642e6a38d67b7 869Author: Antoine LUONG <antoine.luong@c-s.fr> 870Date: Tue Sep 23 15:41:25 2014 +0200 871 872 Update NEWS, bump version 873 874 Change-Id: I961d73140843cca14fd8fc4b68fcf163403028f6 875 876 NEWS | 25 +++++++++++++++++++++++++ 877 bindings/low-level/python/_preludedbold.c | 2 +- 878 configure.in | 8 ++++---- 879 3 files changed, 30 insertions(+), 5 deletions(-) 880 881commit 114b67a7639423b998147c2830b77bd33ce1b3ce 882Author: Camille GARDET <camille.gardet@c-s.fr> 883Date: Tue Sep 16 11:42:34 2014 +0200 884 885 Add dependencies in INSTALL file 886 887 Change-Id: Id45d266024bff31a9c50ad7a16da7fc142fba0c1 888 889 INSTALL | 15 +++++++++++++++ 890 1 files changed, 15 insertions(+), 0 deletions(-) 891 892commit 6042de43b3016183e283506c5db9b2d3355d005b 893Author: Yoann Vandoorselaere <yoannv@gmail.com> 894Date: Tue Sep 23 11:04:57 2014 +0200 895 896 Fix insertion of the preludedbold module 897 898 Change-Id: I1993daefc6ad6bb494aee649f8659659c768b094 899 900 bindings/low-level/python/_preludedbold.c | 2 +- 901 bindings/low-level/python/libpreludedb-python.i | 2 +- 902 2 files changed, 2 insertions(+), 2 deletions(-) 903 904commit 13bb279f7c15d530bd12a3f82f0fa66cfb191e44 905Author: Yoann Vandoorselaere <yoannv@gmail.com> 906Date: Mon Sep 22 09:26:41 2014 +0200 907 908 Correct autogen.sh output 909 910 Change-Id: I3fdfe747a1d850a01abfead65bf9559b9f4ddf90 911 912 autogen.sh | 2 +- 913 1 files changed, 1 insertions(+), 1 deletions(-) 914 915commit 6d63146d6785a5545c87866629e92390456509c2 916Author: Yoann Vandoorselaere <yoannv@gmail.com> 917Date: Mon Sep 22 03:40:51 2014 +0200 918 919 Change update API so that it use idmef_path_t and idmef_value_t 920 921 This change is needed so that the backend can handle the escaping of 922 passed value. The caller has no knowledge of what need to be escaped. 923 It also allow to update any type of value. 924 925 Change-Id: I78da4c1afc857c4bd5de5668d323fd57173a8fa3 926 927 bindings/low-level/python/_preludedbold.c | 203 ++++++++++++++++------- 928 bindings/low-level/python/libpreludedb-python.i | 27 +++- 929 src/include/preludedb-plugin-format.h | 6 +- 930 src/include/preludedb.h | 6 +- 931 src/preludedb.c | 6 +- 932 5 files changed, 173 insertions(+), 75 deletions(-) 933 934commit 317f20ea7cb93dccc57609030a069c1ffdb41e22 935Author: Yoann Vandoorselaere <yoannv@gmail.com> 936Date: Thu Jul 17 15:49:34 2014 +0200 937 938 Move old C based bindings to bindings/low-level directory 939 940 This prepare the move to C++ bindings. 941 942 Change-Id: I36e93980c5222fb2e6c1e41e246a7cb60a970b51 943 944 bindings/Makefile.am | 71 +- 945 bindings/generate.sh | 5 - 946 bindings/libpreludedb.i | 111 - 947 bindings/low-level/Makefile.am | 16 + 948 bindings/low-level/libpreludedb.i | 111 + 949 bindings/low-level/python/Makefile.am | 26 + 950 bindings/low-level/python/_preludedbold.c |11238 +++++++++++++++++++++++ 951 bindings/low-level/python/libpreludedb-python.i | 395 + 952 bindings/low-level/python/preludedbold.py | 9 + 953 bindings/low-level/python/setup.py.in | 90 + 954 bindings/perl/Makefile.PL.in | 45 - 955 bindings/perl/PreludeDB.pm | 21 - 956 bindings/perl/libpreludedb-perl.i | 164 - 957 bindings/python/Makefile.am | 26 - 958 bindings/python/libpreludedb-python.i | 395 - 959 bindings/python/preludedb.py | 9 - 960 bindings/python/setup.py.in | 90 - 961 configure.in | 53 +- 962 18 files changed, 11890 insertions(+), 985 deletions(-) 963 964commit 2069cdd4f029ec75db1b6f76169600cb7a2f2929 965Author: Yoann Vandoorselaere <yoannv@gmail.com> 966Date: Tue Sep 16 17:57:26 2014 +0200 967 968 Update GnuLib code 969 970 Change-Id: I94e1b0d0d2f961c3000dd744cbe69218344133bd 971 972 config.rpath | 18 +- 973 libmissing/Makefile.am | 332 +++++++- 974 libmissing/alloca.in.h | 2 +- 975 libmissing/asnprintf.c | 2 +- 976 libmissing/errno.in.h | 2 +- 977 libmissing/float+.h | 2 +- 978 libmissing/float.c | 2 +- 979 libmissing/float.in.h | 2 +- 980 libmissing/gettimeofday.c | 154 ++++ 981 libmissing/glthread/lock.c | 2 +- 982 libmissing/glthread/lock.h | 2 +- 983 libmissing/glthread/threadlib.c | 2 +- 984 libmissing/itold.c | 2 +- 985 libmissing/m4/00gnulib.m4 | 22 +- 986 libmissing/m4/absolute-header.m4 | 2 +- 987 libmissing/m4/alloca.m4 | 2 +- 988 libmissing/m4/errno_h.m4 | 2 +- 989 libmissing/m4/exponentd.m4 | 2 +- 990 libmissing/m4/extensions.m4 | 2 +- 991 libmissing/m4/extern-inline.m4 | 33 +- 992 libmissing/m4/fdopen.m4 | 2 +- 993 libmissing/m4/float_h.m4 | 2 +- 994 libmissing/m4/fpieee.m4 | 2 +- 995 libmissing/m4/getpagesize.m4 | 2 +- 996 libmissing/m4/gettimeofday.m4 | 138 +++ 997 libmissing/m4/gnulib-cache.m4 | 6 +- 998 libmissing/m4/gnulib-common.m4 | 120 ++- 999 libmissing/m4/gnulib-comp.m4 | 50 +- 1000 libmissing/m4/gnulib-tool.m4 | 2 +- 1001 libmissing/m4/include_next.m4 | 2 +- 1002 libmissing/m4/intmax_t.m4 | 2 +- 1003 libmissing/m4/inttypes-pri.m4 | 2 +- 1004 libmissing/m4/inttypes.m4 | 2 +- 1005 libmissing/m4/inttypes_h.m4 | 2 +- 1006 libmissing/m4/lib-ld.m4 | 2 +- 1007 libmissing/m4/lib-link.m4 | 2 +- 1008 libmissing/m4/lib-prefix.m4 | 2 +- 1009 libmissing/m4/lock.m4 | 2 +- 1010 libmissing/m4/longlong.m4 | 2 +- 1011 libmissing/m4/malloc.m4 | 98 ++ 1012 libmissing/m4/math_h.m4 | 2 +- 1013 libmissing/m4/memchr.m4 | 2 +- 1014 libmissing/m4/mmap-anon.m4 | 2 +- 1015 libmissing/m4/msvc-inval.m4 | 2 +- 1016 libmissing/m4/multiarch.m4 | 2 +- 1017 libmissing/m4/off_t.m4 | 2 +- 1018 libmissing/m4/onceonly.m4 | 2 +- 1019 libmissing/m4/printf.m4 | 20 +- 1020 libmissing/m4/size_max.m4 | 2 +- 1021 libmissing/m4/snprintf.m4 | 2 +- 1022 libmissing/m4/ssize_t.m4 | 2 +- 1023 libmissing/m4/stdbool.m4 | 2 +- 1024 libmissing/m4/stddef_h.m4 | 2 +- 1025 libmissing/m4/stdint.m4 | 2 +- 1026 libmissing/m4/stdint_h.m4 | 2 +- 1027 libmissing/m4/stdio_h.m4 | 2 +- 1028 libmissing/m4/stdlib_h.m4 | 119 +++ 1029 libmissing/m4/strdup.m4 | 2 +- 1030 libmissing/m4/string_h.m4 | 2 +- 1031 libmissing/m4/strndup.m4 | 2 +- 1032 libmissing/m4/strnlen.m4 | 2 +- 1033 libmissing/m4/sys_socket_h.m4 | 176 ++++ 1034 libmissing/m4/sys_time_h.m4 | 110 +++ 1035 libmissing/m4/sys_types_h.m4 | 2 +- 1036 libmissing/m4/thread.m4 | 2 +- 1037 libmissing/m4/threadlib.m4 | 40 +- 1038 libmissing/m4/time_h.m4 | 13 +- 1039 libmissing/m4/time_r.m4 | 2 +- 1040 libmissing/m4/unistd_h.m4 | 2 +- 1041 libmissing/m4/vasnprintf.m4 | 2 +- 1042 libmissing/m4/vsnprintf.m4 | 2 +- 1043 libmissing/m4/warn-on-use.m4 | 2 +- 1044 libmissing/m4/wchar_h.m4 | 2 +- 1045 libmissing/m4/wchar_t.m4 | 2 +- 1046 libmissing/m4/wint_t.m4 | 2 +- 1047 libmissing/m4/xsize.m4 | 2 +- 1048 libmissing/m4/yield.m4 | 2 +- 1049 libmissing/malloc.c | 56 ++ 1050 libmissing/memchr.c | 2 +- 1051 libmissing/printf-args.c | 2 +- 1052 libmissing/printf-args.h | 2 +- 1053 libmissing/printf-parse.c | 2 +- 1054 libmissing/printf-parse.h | 2 +- 1055 libmissing/size_max.h | 2 +- 1056 libmissing/snprintf.c | 2 +- 1057 libmissing/stddef.in.h | 2 +- 1058 libmissing/stdint.in.h | 5 +- 1059 libmissing/stdio.in.h | 2 +- 1060 libmissing/stdlib.in.h | 977 +++++++++++++++++++++ 1061 libmissing/strdup.c | 2 +- 1062 libmissing/string.in.h | 2 +- 1063 libmissing/strndup.c | 2 +- 1064 libmissing/strnlen.c | 2 +- 1065 libmissing/sys_time.in.h | 213 +++++ 1066 libmissing/sys_types.in.h | 4 +- 1067 libmissing/tests/Makefile.am | 191 +---- 1068 libmissing/tests/fdopen.c | 2 +- 1069 libmissing/tests/fpucw.h | 2 +- 1070 libmissing/tests/getpagesize.c | 2 +- 1071 libmissing/tests/glthread/thread.c | 2 +- 1072 libmissing/tests/glthread/thread.h | 2 +- 1073 libmissing/tests/glthread/yield.h | 2 +- 1074 libmissing/tests/init.sh | 4 +- 1075 libmissing/tests/intprops.h | 2 +- 1076 libmissing/tests/inttypes.in.h | 2 +- 1077 libmissing/tests/macros.h | 2 +- 1078 libmissing/tests/msvc-inval.c | 2 +- 1079 libmissing/tests/msvc-inval.h | 2 +- 1080 libmissing/tests/signature.h | 2 +- 1081 libmissing/tests/stdbool.in.h | 2 +- 1082 libmissing/tests/test-alloca-opt.c | 2 +- 1083 libmissing/tests/test-errno.c | 2 +- 1084 libmissing/tests/test-fdopen.c | 39 +- 1085 libmissing/tests/test-fgetc.c | 2 +- 1086 libmissing/tests/test-float.c | 2 +- 1087 libmissing/tests/test-fputc.c | 2 +- 1088 libmissing/tests/test-fread.c | 2 +- 1089 libmissing/tests/test-fwrite.c | 2 +- 1090 libmissing/tests/test-gettimeofday.c | 47 + 1091 libmissing/tests/test-init.sh | 2 +- 1092 libmissing/tests/test-intprops.c | 2 +- 1093 libmissing/tests/test-inttypes.c | 2 +- 1094 libmissing/tests/test-lock.c | 2 +- 1095 libmissing/tests/test-memchr.c | 2 +- 1096 libmissing/tests/test-snprintf.c | 2 +- 1097 libmissing/tests/test-stdbool.c | 2 +- 1098 libmissing/tests/test-stddef.c | 2 +- 1099 libmissing/tests/test-stdint.c | 2 +- 1100 libmissing/tests/test-stdio.c | 2 +- 1101 libmissing/tests/test-stdlib.c | 54 ++ 1102 libmissing/tests/test-string.c | 2 +- 1103 libmissing/tests/test-strnlen.c | 2 +- 1104 libmissing/tests/test-sys_time.c | 34 + 1105 libmissing/tests/test-sys_types.c | 2 +- 1106 libmissing/tests/test-sys_wait.h | 53 ++ 1107 libmissing/tests/test-thread_create.c | 2 +- 1108 libmissing/tests/test-thread_self.c | 2 +- 1109 libmissing/tests/test-time.c | 2 +- 1110 libmissing/tests/test-unistd.c | 2 +- 1111 libmissing/tests/test-vasnprintf.c | 2 +- 1112 libmissing/tests/test-verify.c | 2 +- 1113 libmissing/tests/test-vsnprintf.c | 2 +- 1114 libmissing/tests/test-wchar.c | 2 +- 1115 libmissing/tests/unistd.c | 3 - 1116 libmissing/tests/unistd.in.h | 1542 -------------------------------- 1117 libmissing/tests/zerosize-ptr.h | 2 +- 1118 libmissing/time.in.h | 46 +- 1119 libmissing/time_r.c | 2 +- 1120 libmissing/unistd.c | 3 + 1121 libmissing/unistd.in.h | 1557 +++++++++++++++++++++++++++++++++ 1122 libmissing/vasnprintf.c | 176 ++-- 1123 libmissing/vasnprintf.h | 2 +- 1124 libmissing/verify.h | 2 +- 1125 libmissing/vsnprintf.c | 2 +- 1126 libmissing/wchar.in.h | 2 +- 1127 libmissing/xsize.h | 2 +- 1128 snippet/_Noreturn.h | 10 + 1129 snippet/arg-nonnull.h | 2 +- 1130 snippet/c++defs.h | 2 +- 1131 snippet/warn-on-use.h | 2 +- 1132 160 files changed, 4673 insertions(+), 2040 deletions(-) 1133 1134commit 007535eeb27e9e33cb8698627202176c9fd0a618 1135Author: Yoann Vandoorselaere <yoannv@gmail.com> 1136Date: Wed Sep 10 15:19:23 2014 +0200 1137 1138 Change preludedb_strerror() so that it never return NULL 1139 1140 Return "Unknown error code" in place of NULL. 1141 1142 Change-Id: Ia20b180005bed54e9921eb32614c5bf6996398e7 1143 1144 src/preludedb-error.c | 2 +- 1145 1 files changed, 1 insertions(+), 1 deletions(-) 1146 1147commit 54ad06fe6839053c66eda406f866d72ad8c1b6ac 1148Author: Yoann Vandoorselaere <yoannv@gmail.com> 1149Date: Tue Sep 2 09:32:44 2014 +0200 1150 1151 PreludeDB ResultValues / ResultIdents API update 1152 1153 Previously, it was only possible to iterate ResultValues and ResultIdents 1154 object rows once. The new API make it possible to retrieve a specific row/field 1155 located at a given index. This is achieved by the following new function : 1156 - preludedb_result_values_get_row(): return the row at the given index 1157 - preludedb_result_values_get_field(): return the specified field at the given row 1158 1159 The new ResultValues API provide the following new utility function : 1160 - preludedb_result_values_get_count(): return the number of row in the results 1161 - preludedb_result_values_get_field_count: return the number of field by row in the results 1162 - preludedb_result_values_get_selection: return the selection used to retrieve the current values 1163 - preludedb_result_values_get_data: low-level layer data pointer, used by format-plugin 1164 1165 For ResultIdents object, one new function is introduced : 1166 - preludedb_result_idents_get: return the ident at the given index 1167 1168 *** PathSelection API update : 1169 1170 Update the preludedb_path_selection API, so that it use an 1171 array to store element, and make it possible to access each 1172 element in O(1) time. 1173 1174 Introduce two new function to the API : 1175 - preludedb_path_selection_get_selected(), which retrieve a selected 1176 element at the index specified as argument. 1177 - preludedb_selected_path_get_index : return the index of a given selected element. 1178 1179 This is done since the path_selection API is now directly used to 1180 access fields in ResultValues row object. 1181 1182 *** Refcounting support 1183 The preludedb_t, prelude_result_values_t and prelude_result_idents_t 1184 object now provide refcounting support, and make use of refcounting 1185 themselve. 1186 1187 Change-Id: Ifa332d8a26421bda3c5f7a77ac7239b75de98b88 1188 1189 plugins/format/classic/classic.c | 49 +++++++++ 1190 src/include/preludedb-path-selection.h | 5 +- 1191 src/include/preludedb-plugin-format-prv.h | 4 + 1192 src/include/preludedb-plugin-format.h | 20 ++++ 1193 src/include/preludedb.h | 21 ++++- 1194 src/preludedb-path-selection.c | 58 ++++++++--- 1195 src/preludedb-plugin-format.c | 28 +++++ 1196 src/preludedb.c | 156 +++++++++++++++++++++++++++-- 1197 8 files changed, 315 insertions(+), 26 deletions(-) 1198 1199commit 257ff2022fe94ccd25438a90d0bbca1c33882ae2 1200Author: Yoann Vandoorselaere <yoannv@gmail.com> 1201Date: Mon Sep 1 14:03:01 2014 +0200 1202 1203 SQL API / Plugin rework 1204 1205 - New row_destroy, and field_destroy plugin callback. 1206 - resource_destroy callback is renamed to table_destroy. 1207 - The get_row callback now has the table, and the required row_index as argument. 1208 - The get_field callback now return a preludedb_sql_field_t structure, in place of just a char and size value. 1209 1210 SQL plugins callback functions now take a preludedb_sql_table_t argument 1211 in place of a void resource pointer. The table argument has a data member 1212 which can contain the "real" plugin resource data needed. 1213 1214 The fetch_row function now take a row_index argument, and the SQL plugin 1215 has to return the data at the given index. Note that libpreludedb will 1216 cache all the data, so once every rows / fields have been returned by 1217 the plugin, libpreludedb will use it's internal cache. 1218 1219 Following this change SQL plugin now has complete flexibility in the way 1220 it can create the preludedb_sql_row_t or preludedb_sql_field_t object. 1221 For example if a given plugin (SQLite, MySQL) has to step from row 0 to 1222 10 to access row 10, the plugin can now instruct libpreludedb to create 1223 all the row in one fetch call. 1224 1225 ** SQL API rework : 1226 1227 Since the SQL plugin are now responsible for the creation of the table, 1228 row, and field object, new function are exposed : 1229 1230 preludedb_sql_table_new(), preludedb_sql_row_new_field(), preludedb_sql_table_new_row(), 1231 preludedb_sql_row_(set|get)_data(), preludedb_sql_table_get_data() 1232 1233 Table, row, and field object now support refcounting. Previously all resources where 1234 freed when a call to preludedb_sql_table_destroy() was issued. Now the caller might 1235 independantly reference any row object and destroy its parent : 1236 1237 preludedb_sql_field_ref(), 1238 preludedb_sql_row_ref(), 1239 preludedb_sql_table_ref(), 1240 1241 A new get row function is introduced, that support an additional row_index argument: 1242 - preludedb_sql_table_get_row(). 1243 1244 Also, preludedb_sql_row_fetch_field() is now an alias (marked as deprecated), 1245 for preludedb_sql_row_get_field(). The same apply for preludedb_sql_row_fetch_field_by_name() 1246 which is now an alias for preludedb_sql_row_get_field_by_name(). 1247 1248 Also, internal algorithm have been completly rewritten. The caller might now iterate 1249 as much as wanted on a table object, when previous version were iterate once and throw 1250 away after use. 1251 1252 We now use an array in place of a linked list in order to store the fetched row 1253 and field, which make accessing a row/field O(1) once it is cached by libpreludedb. 1254 1255 The table, row, and field structure have also been optimized for size. 1256 1257 - Table is down from 40 to 32 bytes. 1258 - Row is down from 48 to 32 bytes. 1259 - Field is down from 48 to 32 bytes. 1260 1261 ** SQL Plugin: 1262 1263 PgSQL: adaptation to the new API. Since PgSQL provide results in an array 1264 the mapping is very natural. 1265 1266 Sqlite3: use the new preludedb-sql API to store the row/field structure in 1267 place of doing it all internally. 1268 1269 Change-Id: I2230b11fce6861e36cb953b1b213f92bc556b0bc 1270 1271 bindings/libpreludedb.i | 2 + 1272 plugins/format/classic/classic-get.c | 20 +- 1273 plugins/format/classic/classic-insert.c | 2 +- 1274 plugins/format/classic/classic.c | 8 +- 1275 plugins/sql/mysql/mysql.c | 134 +++++++---- 1276 plugins/sql/pgsql/pgsql.c | 110 ++++----- 1277 plugins/sql/sqlite3/sqlite3.c | 243 +++++-------------- 1278 src/include/preludedb-error.h | 4 +- 1279 src/include/preludedb-plugin-sql.h | 48 +++-- 1280 src/include/preludedb-sql.h | 36 +++- 1281 src/preludedb-error.c | 3 +- 1282 src/preludedb-plugin-sql.c | 71 ++++-- 1283 src/preludedb-sql.c | 400 ++++++++++++++++++++++++------- 1284 src/preludedb.c | 4 +- 1285 14 files changed, 652 insertions(+), 433 deletions(-) 1286 1287commit febb33bc671640980a6cbe94daaeeb2243e75f83 1288Author: Yoann Vandoorselaere <yoannv@gmail.com> 1289Date: Thu Jul 31 18:26:24 2014 +0200 1290 1291 Refcount support for path-selection 1292 1293 Change-Id: Id8cf575ed77ebf5619b1071c60758cc7dcdbb1de 1294 1295 src/include/preludedb-path-selection.h | 4 ++++ 1296 src/preludedb-path-selection.c | 13 +++++++++++++ 1297 2 files changed, 17 insertions(+), 0 deletions(-) 1298 1299commit 5ec68af227b18c3e28109fb9f4265a4a26f3a1a8 1300Author: Yoann Vandoorselaere <yoannv@gmail.com> 1301Date: Wed Jul 30 09:36:34 2014 +0200 1302 1303 Whitespace police 1304 1305 Change-Id: I28169f8a5ef6b355ed3a94f3284fabef161ec839 1306 1307 src/include/preludedb-path-selection.h | 22 +++++++++++----------- 1308 1 files changed, 11 insertions(+), 11 deletions(-) 1309 1310commit 8c4083e42c6bcd06f83751c0ad99269506491498 1311Author: Yoann Vandoorselaere <yoannv@gmail.com> 1312Date: Tue Sep 16 13:40:25 2014 +0200 1313 1314 Provide more version number information (major, minor, micro, level, serial) 1315 1316 Generated preludedb-version.h header file now include separate major, minor, 1317 micro, serial, and level (read ahead), definition. 1318 1319 The level information is used to tag a release as alpha, beta, rc, or final. 1320 We also provide a LIBPRELUDEDB_HEXVERSION definition, making it easy to add 1321 version checking in the code. For example, checking for libpreludedb higher 1322 than libpreludedb 1.2.5 would look like. 1323 1324 Change-Id: Id878bd8265a23a9d6d4c3e1770724e5040c49be2 1325 1326 configure.in | 29 +++++++++++++++- 1327 src/include/preludedb-version.h.in | 18 +++++++++ 1328 src/preludedb-version.c | 68 +++++++++++++++++++++++++++--------- 1329 3 files changed, 97 insertions(+), 18 deletions(-) 1330 1331commit 80546ae13487449084057d454fcbf42945d0c62e 1332Author: Antoine LUONG <antoine.luong@c-s.fr> 1333Date: Tue Sep 16 11:08:03 2014 +0200 1334 1335 Update NEWS, bump version 1336 1337 Change-Id: Ibd9de1034d0c719fcc1bb0be09c4256a93d9802b 1338 1339 NEWS | 21 +++++++++++++++++++++ 1340 configure.in | 10 +++++----- 1341 2 files changed, 26 insertions(+), 5 deletions(-) 1342 1343commit edc8ffa6ca265b6206a5491e16f6b7d55e070c45 1344Author: Thomas Andrejak <thomas.andrejak@c-s.fr> 1345Date: Tue Jul 8 15:58:46 2014 +0200 1346 1347 UPDATE API support 1348 1349 This introduce 3 new public function in the API to support UPDATE commands : 1350 1351 The paths and values argument are the list of paths and their respective 1352 values to be used for the update. The _from_list and _from_result_idents 1353 function apply the update to message identified by the provided idents. 1354 1355 The _update() function will apply the UPDATE to any events matching the 1356 provided criteria / order / limit / offset. 1357 1358 preludedb-admin is also updated so that the update commande can be used 1359 from the command line. 1360 1361 ssize_t preludedb_update_from_list(preludedb_t *db, 1362 const char const * const *paths, const char const * const *values, size_t pvsize, 1363 uint64_t *idents, size_t size); 1364 1365 ssize_t preludedb_update_from_result_idents(preludedb_t *db, 1366 const char const * const *paths, const char const * const *values, size_t pvsize, 1367 preludedb_result_idents_t *results); 1368 1369 int preludedb_update(preludedb_t *db, 1370 const char const * const *paths, const char const * const *values, size_t pvsize, 1371 idmef_criteria_t *criteria, preludedb_path_selection_t *order, int limit, int offset); 1372 1373 Change-Id: If72fadeb2a2ad279fe28841229e09f2d08cc7b4a 1374 1375 bindings/python/libpreludedb-python.i | 45 +++++++++++++++- 1376 preludedb-admin.c | 87 +++++++++++++++++++++++++++++ 1377 src/include/preludedb-plugin-format-prv.h | 7 ++- 1378 src/include/preludedb-plugin-format.h | 29 +++++++-- 1379 src/include/preludedb.h | 15 ++++- 1380 src/preludedb-plugin-format.c | 20 +++++++ 1381 src/preludedb.c | 63 +++++++++++++++++++-- 1382 7 files changed, 248 insertions(+), 18 deletions(-) 1383 1384commit 7a9cdefef70c199fcc986aae496b61e1dfb26214 1385Author: Yoann Vandoorselaere <yoannv@gmail.com> 1386Date: Fri Jul 11 09:46:56 2014 +0200 1387 1388 Support for retrieving database type, and server version 1389 1390 Change-Id: I85240120ede3474ebd28e30b80d336e38f1db7df 1391 1392 plugins/sql/mysql/mysql.c | 8 ++++++++ 1393 plugins/sql/pgsql/pgsql.c | 8 ++++++++ 1394 plugins/sql/sqlite3/sqlite3.c | 8 ++++++++ 1395 src/include/preludedb-plugin-sql.h | 12 +++++++++--- 1396 src/include/preludedb-sql.h | 5 +++++ 1397 src/preludedb-plugin-sql.c | 17 ++++++++++++++++- 1398 src/preludedb-sql.c | 31 +++++++++++++++++++++++++++++++ 1399 7 files changed, 85 insertions(+), 4 deletions(-) 1400 1401commit 75a300a02b14d4551fd67b4e86cc5507799e94d9 1402Author: Yoann Vandoorselaere <yoannv@gmail.com> 1403Date: Mon Jul 7 08:23:22 2014 +0200 1404 1405 Whitespace police 1406 1407 Change-Id: Idcd5014df38d9cdb62dd8ab27601e48f55ee24cf 1408 1409 bindings/python/libpreludedb-python.i | 232 ++++++++++++++++---------------- 1410 src/include/preludedb-sql.h | 34 +++--- 1411 2 files changed, 133 insertions(+), 133 deletions(-) 1412 1413commit 3850cf04ec80cb739f26aade63ac878722ba6cf7 1414Author: Antoine LUONG <antoine.luong@c-s.fr> 1415Date: Tue Jul 15 09:10:16 2014 +0200 1416 1417 Update configure.in 1418 1419 Change-Id: I51dfd6789ed27be846dec25fe647b624d1de44dc 1420 1421 configure.in | 4 ++-- 1422 1 files changed, 2 insertions(+), 2 deletions(-) 1423 1424commit 378d4a47caabec8fac6cca0bc7147abb035574e8 1425Author: Antoine LUONG <antoine.luong@c-s.fr> 1426Date: Mon Jul 7 15:30:16 2014 +0200 1427 1428 Update NEWS, bump version 1429 1430 Change-Id: Ia532bb805679d8ea3e6ccb0f4a08f8f9b640f659 1431 1432 NEWS | 32 ++++++++++++++++++++++++++++++++ 1433 configure.in | 2 +- 1434 docs/api/libpreludedb-decl.txt | 2 +- 1435 3 files changed, 34 insertions(+), 2 deletions(-) 1436 1437commit 7a3494000703f5fbba600b13702a6d26dedc9f71 1438Author: Yoann Vandoorselaere <yoannv@gmail.com> 1439Date: Wed Apr 23 21:19:55 2014 -0300 1440 1441 Fix AdditionalData insertion/retrieval 1442 1443 * Insertion: 1444 1445 - AdditionalData with the BYTE datatype are now treated like INTEGER datatype: 1446 The value is converted to an integer and inserted as a string. 1447 1448 - When inserting string converted AdditionalData, we do not insert the 1449 terminating 0 anymore. This make filtering through theses AdditionalData 1450 type work. Adding the terminating 0 is done again at retrieval time. 1451 1452 * Retrieval: 1453 1454 - Always unescape the retrieved value, independantly from the data type, we 1455 can never expect the value to be unmodified after escaping. 1456 1457 - In all AdditionalData retrieval case except byte-string and character, 1458 append a terminating 0 at the end of the string (see insertion change). 1459 1460 * Actual effect: 1461 1462 - MySQL: 1463 - old data : anything beyond datatype "string", "bytestring", and "character" fail 1464 (this was already the case) 1465 - new data : search on everything work as expected. 1466 1467 - PostgreSQL: 1468 - old data : anything beyond datatype "string", "bytestring", and "character" 1469 would fail to insert, there is no such data in database (this is 1470 fixed since recent commit d19c0b073da6696a76deb4a41e022ea30a86cd93). 1471 - new data : search on everything work as expected. 1472 1473 Change-Id: Icea3f2a74f8866a5ab9922bf4471c8071d5f4cc5 1474 1475 plugins/format/classic/classic-get.c | 140 +++++++++++++++++++------------ 1476 plugins/format/classic/classic-insert.c | 3 +- 1477 2 files changed, 89 insertions(+), 54 deletions(-) 1478 1479commit 1fff21f78d68735f7f2abe941f931710a4bd0ca2 1480Author: Yoann Vandoorselaere <yoannv@gmail.com> 1481Date: Wed Apr 16 13:08:46 2014 +0200 1482 1483 Use new libprelude PRELUDE_SCN* definition 1484 1485 Fix compilation warnings. 1486 1487 src/preludedb-sql.c | 16 ++++++++-------- 1488 1 files changed, 8 insertions(+), 8 deletions(-) 1489 1490commit 2a49406dc60e1a7cd6f5b353e802afa5f20943c9 1491Author: Yoann Vandoorselaere <yoannv@gmail.com> 1492Date: Fri Apr 11 15:14:34 2014 +0200 1493 1494 Handle NULL input on preludedb_sql_escape_fast() and preludedb_sql_escape_binary() 1495 1496 BLOB field accept NULL input, so the preludedb_sql_escape_binary() function should 1497 handle this case. 1498 1499 Additionally, handle NULL input on preludedb_sql_escape_fast() for safety, even 1500 though the function take a length parameter. 1501 1502 src/preludedb-sql.c | 17 +++++++++++------ 1503 1 files changed, 11 insertions(+), 6 deletions(-) 1504 1505commit 546a8862bd065d7b857cba7f6e36738d0b439602 1506Author: Yoann Vandoorselaere <yoannv@gmail.com> 1507Date: Thu Apr 10 18:08:19 2014 +0200 1508 1509 Use PQescapeStringConn() in place of PQescapeString() when available 1510 1511 As suggested by the PostgreSQL documentation : 1512 "The only difference from PQescapeStringConn is that PQescapeString does not take 1513 PGconn or error parameters. Because of this, it cannot adjust its behavior 1514 depending on the connection properties (such as character encoding) and 1515 therefore it might give the wrong results. Also, it has no way to report error 1516 conditions." 1517 1518 configure.in | 1 + 1519 plugins/sql/pgsql/pgsql.c | 10 +++++++++- 1520 2 files changed, 10 insertions(+), 1 deletions(-) 1521 1522commit d62e99d8c00480ed7529ac8a089352cb8f30a1b9 1523Author: Yoann Vandoorselaere <yoannv@gmail.com> 1524Date: Thu Apr 10 13:00:00 2014 +0200 1525 1526 Fix warnings and error on ByteA insertion 1527 1528 Using '%s' for inserting data escaped with PQescapeByteaConn() correctly 1529 work with latests PostgreSQL version. However, on version earlier than 9.1, 1530 this generate a warning (HINT: Use the escape string syntax for backslashes, 1531 e.g., E'\\'. WARNING: nonstandard use of \\ in a string literal) which 1532 require the user to activate the standard_conforming_strings variable. 1533 1534 On the other end, using the E'%s' escape method is not compatible with 1535 the PQescapeByteaConn() function, we have noticed various error like : 1536 ERROR: invalid byte sequence for encoding "UTF8": 0x00 1537 ERROR: invalid input syntax for type bytea at character 145 1538 1539 Confirmation of this incompatibility is given by Tom Lane on the PostgreSQL 1540 mailing lists : 1541 http://grokbase.com/t/postgresql/pgsql-general/11b2e9h9xm/postgresql-9-1-1-pqescapebyteaconn-generating-incorrectly-quoted-output 1542 1543 "The result of PQescapeByteaConn has never been meant to be put into an E'' literal. 1544 You might have managed to get away with it so long as standard_conforming_strings 1545 was off in the server, but it's on by default in 9.1." 1546 1547 As a result, and since we don't want to force the user to change his PostgreSQL 1548 server configuration, we now use the E'%s' ByteA insertion method in conjonction 1549 with our own escaping function. This function follow the escaping instruction 1550 provided in the PostgreSQL documentation : 1551 http://www.postgresql.org/docs/7.3/static/datatype-binary.html 1552 1553 configure.in | 1 - 1554 plugins/sql/pgsql/pgsql.c | 68 ++++++++++++++++++++++++++------------------ 1555 2 files changed, 40 insertions(+), 29 deletions(-) 1556 1557commit 2f152d02b636909c11237b36300675997d83ac9a 1558Author: Yoann Vandoorselaere <yoannv@gmail.com> 1559Date: Thu Apr 10 12:58:55 2014 +0200 1560 1561 Improve sscanf() error check 1562 1563 src/preludedb-sql.c | 2 +- 1564 1 files changed, 1 insertions(+), 1 deletions(-) 1565 1566commit 7c4eec5623e261a238a1d6e5795103b4bf17d794 1567Author: Yoann Vandoorselaere <yoannv@gmail.com> 1568Date: Sun Apr 20 11:58:29 2014 +0200 1569 1570 Let the compiler decide whether to inline this function 1571 1572 plugins/format/classic/classic-insert.c | 2 +- 1573 1 files changed, 1 insertions(+), 1 deletions(-) 1574 1575commit ff055621e045edb1b898a150ad7b70b9ec245f09 1576Author: Yoann Vandoorselaere <yoannv@gmail.com> 1577Date: Thu Apr 10 09:45:49 2014 +0200 1578 1579 Whitespace police 1580 1581 plugins/format/classic/classic-insert.c | 1550 +++++++++++++++--------------- 1582 1 files changed, 775 insertions(+), 775 deletions(-) 1583 1584commit fb91684cda3efb7357c70f9f6f9e9746d2922629 1585Author: Yoann Vandoorselaere <yoannv@gmail.com> 1586Date: Fri Feb 7 10:30:47 2014 +0100 1587 1588 Fix possible ByteA insertion error 1589 1590 Use PQescapeByteaConn() in place of PQescapeBytea() when available, to 1591 prevent possible insertion error. 1592 1593 configure.in | 1 + 1594 plugins/sql/pgsql/pgsql.c | 4 ++++ 1595 2 files changed, 5 insertions(+), 0 deletions(-) 1596 1597commit 3070195c2acc6d510442a57a3f0872a6bb3caac0 1598Author: Antoine LUONG <antoine.luong@c-s.fr> 1599Date: Mon Feb 3 09:56:39 2014 +0100 1600 1601 Removed rhel6 packaging 1602 1603 pkg/rhel6/libpreludedb.spec | 267 ------------------------------------------- 1604 1 files changed, 0 insertions(+), 267 deletions(-) 1605 1606commit b33c4abe9975c2e74ee4d3a52846a67f14eeea23 1607Author: Antoine LUONG <antoine.luong@c-s.fr> 1608Date: Fri Jan 31 16:23:08 2014 +0100 1609 1610 Fixed typo for PostgreSQL plugin compilation 1611 1612 configure.in | 2 +- 1613 1 files changed, 1 insertions(+), 1 deletions(-) 1614 1615commit 67d54ffe0dc10697b85842517ea18a5fcd808b1b 1616Author: Thomas ANDREJAK <thomas.andrejak@c-s.fr> 1617Date: Tue Jan 7 00:13:13 2014 +0100 1618 1619 Provide AS_VAR_COPY, for system lacking it 1620 1621 configure.in | 4 ++++ 1622 1 files changed, 4 insertions(+), 0 deletions(-) 1623 1624commit 522f6b54f4df67ff7741ba068fec5065f4d69200 1625Author: Yoann Vandoorselaere <yoannv@gmail.com> 1626Date: Tue Dec 17 13:11:15 2013 +0100 1627 1628 Move Python command to a Python specific Makefile, filename fixes 1629 1630 bindings/Makefile.am | 39 +---- 1631 bindings/libpreludedb.i | 4 +- 1632 bindings/libpreludedb_perl.i | 164 --------------- 1633 bindings/libpreludedb_python.i | 352 --------------------------------- 1634 bindings/perl/libpreludedb-perl.i | 164 +++++++++++++++ 1635 bindings/python/Makefile.am | 26 +++ 1636 bindings/python/libpreludedb-python.i | 352 +++++++++++++++++++++++++++++++++ 1637 configure.in | 1 + 1638 8 files changed, 550 insertions(+), 552 deletions(-) 1639 1640commit 7014f7b3f256df0eaeaebd955d6e08c21c4740cf 1641Author: Yoann Vandoorselaere <yoannv@gmail.com> 1642Date: Tue Dec 17 12:42:04 2013 +0100 1643 1644 Fix compile warnings 1645 1646 plugins/format/classic/classic-insert.c | 18 ++++++------------ 1647 src/preludedb-sql.c | 2 -- 1648 2 files changed, 6 insertions(+), 14 deletions(-) 1649 1650commit 611a5df2b4466c212ed65afc699355d1990db319 1651Author: Yoann Vandoorselaere <yoannv@gmail.com> 1652Date: Tue Dec 17 12:41:46 2013 +0100 1653 1654 Add missing Python package information 1655 1656 bindings/python/setup.py.in | 5 +++++ 1657 1 files changed, 5 insertions(+), 0 deletions(-) 1658 1659commit dd1cc76f26657645f36f7211da30fe236c0ee001 1660Author: Yoann Vandoorselaere <yoannv@gmail.com> 1661Date: Tue Dec 17 12:39:48 2013 +0100 1662 1663 Fix configure script generation, and update GnuLib code 1664 1665 Modify configure.in to fit latest autoconf / automake change. 1666 Configure script generation and make distcheck now work again. 1667 Update GnuLib code. 1668 1669 Update various autoconf macros, and gtk-doc build files. 1670 1671 INSTALL | 15 +- 1672 Makefile.am | 2 +- 1673 arg-nonnull.h | 26 - 1674 config.rpath | 106 ++- 1675 configure.in | 69 +- 1676 docs/api/Makefile.am | 47 +- 1677 docs/api/libpreludedb-docs.xml | 43 + 1678 docs/api/tmpl/preludedb-error.sgml | 5 +- 1679 docs/api/tmpl/preludedb-path-selection.sgml | 3 + 1680 docs/api/tmpl/preludedb-plugin-format.sgml | 3 + 1681 docs/api/tmpl/preludedb-plugin-sql.sgml | 3 + 1682 docs/api/tmpl/preludedb-sql-settings.sgml | 3 + 1683 docs/api/tmpl/preludedb-sql.sgml | 7 +- 1684 docs/api/tmpl/preludedb-version.sgml | 3 + 1685 docs/api/tmpl/preludedb.sgml | 5 + 1686 gtk-doc.make | 250 +++-- 1687 libmissing/Makefile.am | 573 +++++++--- 1688 libmissing/alloca.in.h | 17 +- 1689 libmissing/asnprintf.c | 5 +- 1690 libmissing/errno.in.h | 195 +++- 1691 libmissing/float+.h | 11 +- 1692 libmissing/float.c | 33 + 1693 libmissing/float.in.h | 138 +++- 1694 libmissing/glthread/lock.c | 13 +- 1695 libmissing/glthread/lock.h | 40 +- 1696 libmissing/glthread/threadlib.c | 5 +- 1697 libmissing/itold.c | 28 + 1698 libmissing/m4/00gnulib.m4 | 2 +- 1699 libmissing/m4/absolute-header.m4 | 102 ++ 1700 libmissing/m4/alloca.m4 | 86 ++- 1701 libmissing/m4/errno_h.m4 | 28 +- 1702 libmissing/m4/exponentd.m4 | 116 ++ 1703 libmissing/m4/extensions.m4 | 56 +- 1704 libmissing/m4/extern-inline.m4 | 84 ++ 1705 libmissing/m4/fdopen.m4 | 47 + 1706 libmissing/m4/float_h.m4 | 87 ++- 1707 libmissing/m4/fpieee.m4 | 54 + 1708 libmissing/m4/getpagesize.m4 | 32 + 1709 libmissing/m4/gnulib-cache.m4 | 29 +- 1710 libmissing/m4/gnulib-common.m4 | 260 +++++- 1711 libmissing/m4/gnulib-comp.m4 | 230 ++++- 1712 libmissing/m4/gnulib-tool.m4 | 2 +- 1713 libmissing/m4/include_next.m4 | 120 ++- 1714 libmissing/m4/intmax_t.m4 | 15 +- 1715 libmissing/m4/inttypes-pri.m4 | 42 + 1716 libmissing/m4/inttypes.m4 | 158 +++ 1717 libmissing/m4/inttypes_h.m4 | 19 +- 1718 libmissing/m4/lib-ld.m4 | 77 +- 1719 libmissing/m4/lib-link.m4 | 55 +- 1720 libmissing/m4/lib-prefix.m4 | 2 +- 1721 libmissing/m4/lock.m4 | 25 +- 1722 libmissing/m4/longlong.m4 | 87 +- 1723 libmissing/m4/math_h.m4 | 353 ++++++ 1724 libmissing/m4/memchr.m4 | 32 +- 1725 libmissing/m4/mmap-anon.m4 | 18 +- 1726 libmissing/m4/msvc-inval.m4 | 19 + 1727 libmissing/m4/multiarch.m4 | 11 +- 1728 libmissing/m4/off_t.m4 | 18 + 1729 libmissing/m4/onceonly.m4 | 33 +- 1730 libmissing/m4/printf.m4 | 1046 +++++++++++-------- 1731 libmissing/m4/size_max.m4 | 16 +- 1732 libmissing/m4/snprintf.m4 | 20 +- 1733 libmissing/m4/ssize_t.m4 | 23 + 1734 libmissing/m4/stdbool.m4 | 100 ++ 1735 libmissing/m4/stddef_h.m4 | 12 +- 1736 libmissing/m4/stdint.m4 | 52 +- 1737 libmissing/m4/stdint_h.m4 | 17 +- 1738 libmissing/m4/stdio_h.m4 | 105 ++- 1739 libmissing/m4/strdup.m4 | 18 +- 1740 libmissing/m4/string_h.m4 | 30 +- 1741 libmissing/m4/strndup.m4 | 32 +- 1742 libmissing/m4/strnlen.m4 | 26 +- 1743 libmissing/m4/sys_types_h.m4 | 24 + 1744 libmissing/m4/thread.m4 | 5 +- 1745 libmissing/m4/threadlib.m4 | 167 ++- 1746 libmissing/m4/time_h.m4 | 67 +- 1747 libmissing/m4/time_r.m4 | 58 +- 1748 libmissing/m4/unistd_h.m4 | 187 ++++ 1749 libmissing/m4/vasnprintf.m4 | 25 +- 1750 libmissing/m4/vsnprintf.m4 | 20 +- 1751 libmissing/m4/warn-on-use.m4 | 18 +- 1752 libmissing/m4/wchar.m4 | 150 --- 1753 libmissing/m4/wchar_h.m4 | 225 ++++ 1754 libmissing/m4/wchar_t.m4 | 14 +- 1755 libmissing/m4/wint_t.m4 | 14 +- 1756 libmissing/m4/xsize.m4 | 5 +- 1757 libmissing/m4/yield.m4 | 2 +- 1758 libmissing/memchr.c | 2 +- 1759 libmissing/printf-args.c | 5 +- 1760 libmissing/printf-args.h | 9 +- 1761 libmissing/printf-parse.c | 55 +- 1762 libmissing/printf-parse.h | 19 +- 1763 libmissing/size_max.h | 5 +- 1764 libmissing/snprintf.c | 5 +- 1765 libmissing/stddef.in.h | 20 +- 1766 libmissing/stdint.in.h | 293 ++++-- 1767 libmissing/stdio-write.c | 150 --- 1768 libmissing/stdio.in.h | 1196 ++++++++++++++++----- 1769 libmissing/strdup.c | 7 +- 1770 libmissing/string.in.h | 615 +++++++++-- 1771 libmissing/strndup.c | 7 +- 1772 libmissing/strnlen.c | 5 +- 1773 libmissing/sys_types.in.h | 51 + 1774 libmissing/tests/Makefile.am | 514 ++++++++- 1775 libmissing/tests/fdopen.c | 69 ++ 1776 libmissing/tests/fpucw.h | 108 ++ 1777 libmissing/tests/getpagesize.c | 39 + 1778 libmissing/tests/glthread/thread.c | 24 +- 1779 libmissing/tests/glthread/thread.h | 64 +- 1780 libmissing/tests/glthread/yield.h | 10 +- 1781 libmissing/tests/init.sh | 589 ++++++++++ 1782 libmissing/tests/intprops.h | 319 +++++- 1783 libmissing/tests/inttypes.in.h | 1140 ++++++++++++++++++++ 1784 libmissing/tests/macros.h | 15 +- 1785 libmissing/tests/msvc-inval.c | 129 +++ 1786 libmissing/tests/msvc-inval.h | 222 ++++ 1787 libmissing/tests/signature.h | 2 +- 1788 libmissing/tests/stdbool.in.h | 132 +++ 1789 libmissing/tests/test-alloca-opt.c | 4 +- 1790 libmissing/tests/test-errno.c | 4 +- 1791 libmissing/tests/test-fdopen.c | 56 + 1792 libmissing/tests/test-fgetc.c | 97 ++ 1793 libmissing/tests/test-float.c | 384 +++++++ 1794 libmissing/tests/test-fputc.c | 91 ++ 1795 libmissing/tests/test-fread.c | 100 ++ 1796 libmissing/tests/test-fwrite.c | 94 ++ 1797 libmissing/tests/test-init.sh | 73 ++ 1798 libmissing/tests/test-intprops.c | 275 +++++ 1799 libmissing/tests/test-inttypes.c | 118 ++ 1800 libmissing/tests/test-lock.c | 88 +- 1801 libmissing/tests/test-memchr.c | 21 +- 1802 libmissing/tests/test-snprintf.c | 20 +- 1803 libmissing/tests/test-stdbool.c | 118 ++ 1804 libmissing/tests/test-stddef.c | 16 +- 1805 libmissing/tests/test-stdint.c | 3 +- 1806 libmissing/tests/test-stdio.c | 2 +- 1807 libmissing/tests/test-string.c | 2 +- 1808 libmissing/tests/test-strnlen.c | 68 ++ 1809 libmissing/tests/test-sys_types.c | 34 + 1810 libmissing/tests/test-thread_create.c | 78 ++ 1811 libmissing/tests/test-thread_self.c | 34 + 1812 libmissing/tests/test-time.c | 10 +- 1813 libmissing/tests/test-unistd.c | 56 + 1814 libmissing/tests/test-vasnprintf.c | 65 +- 1815 libmissing/tests/test-verify.c | 69 ++ 1816 libmissing/tests/test-verify.sh | 24 + 1817 libmissing/tests/test-vsnprintf.c | 20 +- 1818 libmissing/tests/test-wchar.c | 2 +- 1819 libmissing/tests/unistd.c | 3 + 1820 libmissing/tests/unistd.in.h | 1542 +++++++++++++++++++++++++++ 1821 libmissing/tests/verify.h | 140 --- 1822 libmissing/tests/zerosize-ptr.h | 2 +- 1823 libmissing/time.in.h | 214 +++- 1824 libmissing/time_r.c | 7 +- 1825 libmissing/vasnprintf.c | 737 ++++++++------ 1826 libmissing/vasnprintf.h | 19 +- 1827 libmissing/verify.h | 279 +++++ 1828 libmissing/vsnprintf.c | 5 +- 1829 libmissing/wchar.in.h | 865 ++++++++++++++-- 1830 libmissing/xsize.c | 3 + 1831 libmissing/xsize.h | 25 +- 1832 m4/ax_c_check_flag.m4 | 89 -- 1833 m4/ax_check_compile_flag.m4 | 74 ++ 1834 m4/ax_check_link_flag.m4 | 73 ++ 1835 m4/ax_ld_check_flag.m4 | 97 -- 1836 m4/ax_lib_mysql.m4 | 28 +- 1837 m4/ax_lib_postgresql.m4 | 13 +- 1838 m4/ax_lib_sqlite3.m4 | 19 +- 1839 m4/gtk-doc.m4 | 84 +- 1840 plugins/sql/Makefile.am | 5 - 1841 snippet/arg-nonnull.h | 26 + 1842 snippet/c++defs.h | 271 +++++ 1843 snippet/warn-on-use.h | 109 ++ 1844 warn-on-use.h | 75 -- 1845 174 files changed, 15650 insertions(+), 3425 deletions(-) 1846 1847commit ca9cd1acf5f6bd5b52d26ff192fe359729dd61a1 1848Author: Antoine LUONG <antoine.luong@c-s.fr> 1849Date: Thu Sep 6 10:51:18 2012 +0200 1850 1851 Updated URL info #2 1852 1853 README | 2 +- 1854 docs/manpages/preludedb-admin.1 | 8 ++++---- 1855 2 files changed, 5 insertions(+), 5 deletions(-) 1856 1857commit 417d217f7d0e864f6733db45d309ebad0fdc9f40 1858Author: Antoine LUONG <antoine.luong@c-s.fr> 1859Date: Wed Aug 29 11:55:29 2012 +0200 1860 1861 Updated URL info 1862 1863 README | 6 +++--- 1864 1 files changed, 3 insertions(+), 3 deletions(-) 1865 1866commit c8767b0f33ff76b3b0a2e9152a3415e8f77b818c 1867Author: Antoine LUONG <antoine.luong@c-s.fr> 1868Date: Mon Aug 13 16:11:59 2012 +0200 1869 1870 Updated Free Software Foundation headers 1871 1872 COPYING | 41 ++++++++++---------- 1873 bindings/libpreludedb.i | 6 +- 1874 bindings/libpreludedb_perl.i | 6 +- 1875 bindings/libpreludedb_python.i | 6 +- 1876 bindings/perl/PreludeDB.pm | 6 +- 1877 m4/ax_c_check_flag.m4 | 7 +-- 1878 m4/ax_ld_check_flag.m4 | 7 +-- 1879 plugins/format/classic/classic-delete.c | 6 +- 1880 plugins/format/classic/classic-get.c | 6 +- 1881 plugins/format/classic/classic-insert.c | 6 +- 1882 plugins/format/classic/classic-path-resolve.c | 6 +- 1883 plugins/format/classic/classic-sql-join.c | 6 +- 1884 plugins/format/classic/classic-sql-select.c | 6 +- 1885 plugins/format/classic/classic.c | 6 +- 1886 plugins/format/classic/include/classic-delete.h | 6 +- 1887 plugins/format/classic/include/classic-get.h | 6 +- 1888 plugins/format/classic/include/classic-insert.h | 6 +- 1889 .../format/classic/include/classic-path-resolve.h | 6 +- 1890 plugins/format/classic/include/classic-sql-join.h | 6 +- 1891 .../format/classic/include/classic-sql-select.h | 6 +- 1892 plugins/sql/mysql/mysql.c | 6 +- 1893 plugins/sql/pgsql/pgsql.c | 6 +- 1894 plugins/sql/sqlite3/sqlite3.c | 6 +- 1895 preludedb-admin.c | 6 +- 1896 src/include/preludedb-error.h | 6 +- 1897 src/include/preludedb-path-selection.h | 6 +- 1898 src/include/preludedb-plugin-format-prv.h | 6 +- 1899 src/include/preludedb-plugin-format.h | 6 +- 1900 src/include/preludedb-plugin-sql.h | 6 +- 1901 src/include/preludedb-sql-settings.h | 6 +- 1902 src/include/preludedb-sql.h | 6 +- 1903 src/include/preludedb-version.h.in | 6 +- 1904 src/include/preludedb.h | 6 +- 1905 src/preludedb-error.c | 6 +- 1906 src/preludedb-path-selection.c | 6 +- 1907 src/preludedb-plugin-format.c | 6 +- 1908 src/preludedb-plugin-sql.c | 6 +- 1909 src/preludedb-sql-settings.c | 6 +- 1910 src/preludedb-sql.c | 6 +- 1911 src/preludedb-version.c | 6 +- 1912 src/preludedb.c | 6 +- 1913 41 files changed, 140 insertions(+), 143 deletions(-) 1914 1915commit d2229d0c98efb829056acff1843b41b78f925e09 1916Author: Antoine LUONG <antoine.luong@c-s.fr> 1917Date: Wed Aug 8 15:41:46 2012 +0200 1918 1919 Update NEWS, bump version 1920 1921 NEWS | 4 ++-- 1922 configure.in | 2 +- 1923 pkg/rhel6/libpreludedb.spec | 7 +++++-- 1924 3 files changed, 8 insertions(+), 5 deletions(-) 1925 1926commit 2bad4b1cba88753df952654f69a085221bc90910 1927Author: Jean-Charles ROGEZ <jean-charles.rogez@c-s.fr> 1928Date: Mon Jul 9 11:30:06 2012 +0200 1929 1930 Change TYPE to ENGINE in mysql.sql (requires MySQL >= 4.0.18) 1931 1932 NEWS | 6 +++ 1933 pkg/rhel6/libpreludedb.spec | 2 +- 1934 plugins/format/classic/mysql.sql | 72 ++++++++++++++++---------------- 1935 plugins/format/classic/mysql2pgsql.sh | 2 +- 1936 plugins/format/classic/mysql2sqlite.sh | 2 +- 1937 5 files changed, 45 insertions(+), 39 deletions(-) 1938 1939commit c56c2531048b69f3f5720f93f752af404325a388 1940Author: Jean-Charles ROGEZ <jean-charles.rogez@c-s.fr> 1941Date: Fri Jun 1 18:02:08 2012 +0200 1942 1943 Updated info URL 1944 1945 README | 9 ++++----- 1946 docs/manpages/preludedb-admin.1 | 10 +++++----- 1947 m4/libpreludedb.m4 | 2 +- 1948 pkg/rhel6/libpreludedb.spec | 4 ++-- 1949 4 files changed, 12 insertions(+), 13 deletions(-) 1950 1951commit 27465d0c37bad4d0502f0742479a310f1716e6d0 1952Author: Jean-Charles ROGEZ <jean-charles.rogez@c-s.fr> 1953Date: Fri Jun 1 17:32:40 2012 +0200 1954 1955 Update NEWS, documentation, bump version 1956 1957 NEWS | 21 + 1958 configure.in | 2 +- 1959 docs/api/libpreludedb-decl.txt | 760 +++++++++++++++++++------------------- 1960 docs/api/tmpl/preludedb-sql.sgml | 4 +- 1961 4 files changed, 404 insertions(+), 383 deletions(-) 1962 1963commit 050c2d9dffc40036efac0196edd502ff549efced 1964Author: Antoine LUONG <antoine.luong@c-s.fr> 1965Date: Fri Jun 1 14:20:32 2012 +0200 1966 1967 Copyright change for README files 1968 1969 HACKING.README | 8 ++++---- 1970 LICENSE.README | 4 ++-- 1971 README | 4 ++-- 1972 3 files changed, 8 insertions(+), 8 deletions(-) 1973 1974commit 0fd48c350dbe8ec81dbebec7bb777f8b052805a9 1975Author: root <root@localhost.localdomain> 1976Date: Fri May 11 10:05:35 2012 +0200 1977 1978 Copyright change for .h files 1979 1980 bindings/libpreludedb.i | 2 +- 1981 bindings/libpreludedb_perl.i | 2 +- 1982 bindings/libpreludedb_python.i | 2 +- 1983 bindings/perl/PreludeDB.pm | 2 +- 1984 docs/manpages/preludedb-admin.1 | 2 +- 1985 plugins/format/classic/include/classic-delete.h | 2 +- 1986 plugins/format/classic/include/classic-get.h | 2 +- 1987 .../format/classic/include/classic-path-resolve.h | 2 +- 1988 plugins/format/classic/include/classic-sql-join.h | 2 +- 1989 .../format/classic/include/classic-sql-select.h | 2 +- 1990 src/include/preludedb-error.h | 2 +- 1991 src/include/preludedb-path-selection.h | 2 +- 1992 src/include/preludedb-plugin-format-prv.h | 2 +- 1993 src/include/preludedb-plugin-format.h | 2 +- 1994 src/include/preludedb-plugin-sql.h | 2 +- 1995 src/include/preludedb-sql-settings.h | 2 +- 1996 src/include/preludedb-sql.h | 2 +- 1997 src/include/preludedb-version.h.in | 2 +- 1998 src/include/preludedb.h | 2 +- 1999 19 files changed, 19 insertions(+), 19 deletions(-) 2000 2001commit ef157e1d5f3fecb3ab7e83fd36d01de9bf16442b 2002Author: root <root@localhost.localdomain> 2003Date: Thu May 10 16:28:43 2012 +0200 2004 2005 Copyright change for .c and .py files 2006 2007 plugins/format/classic/classic-delete.c | 2 +- 2008 plugins/format/classic/classic-get.c | 2 +- 2009 plugins/format/classic/classic-insert.c | 2 +- 2010 plugins/format/classic/classic-path-resolve.c | 2 +- 2011 plugins/format/classic/classic-sql-join.c | 2 +- 2012 plugins/format/classic/classic-sql-select.c | 2 +- 2013 plugins/format/classic/classic.c | 2 +- 2014 plugins/sql/mysql/mysql.c | 2 +- 2015 plugins/sql/pgsql/pgsql.c | 2 +- 2016 plugins/sql/sqlite3/sqlite3.c | 2 +- 2017 preludedb-admin.c | 2 +- 2018 src/preludedb-error.c | 2 +- 2019 src/preludedb-path-selection.c | 2 +- 2020 src/preludedb-plugin-format.c | 2 +- 2021 src/preludedb-plugin-sql.c | 2 +- 2022 src/preludedb-sql-settings.c | 2 +- 2023 src/preludedb-sql.c | 2 +- 2024 src/preludedb-version.c | 2 +- 2025 src/preludedb.c | 2 +- 2026 19 files changed, 19 insertions(+), 19 deletions(-) 2027 2028commit c85c6169912a613e4cd89d95631787c3adc857bc 2029Author: Jean-Charles ROGEZ <jean-charles.rogez@c-s.fr> 2030Date: Mon Apr 2 15:55:45 2012 +0200 2031 2032 Added packaging for rhel6 2033 2034 pkg/rhel6/libpreludedb.spec | 264 +++++++++++++++++++++++++++++++++++++++++++ 2035 1 files changed, 264 insertions(+), 0 deletions(-) 2036 2037commit 6e02cae79e1cafdb725ed1520d13859c1e6a3944 2038Author: Yoann Vandoorselaere <yoann.v@prelude-technologies.com> 2039Date: Thu Jan 13 09:20:48 2011 +0100 2040 2041 Call prelude_transaction_abort() on empty IDMEF message. 2042 2043 When trying to insert a message containing no alert/heartbeat, 2044 the database would remain locked since preludedb_transaction_abort() 2045 was not called. 2046 2047 plugins/format/classic/classic-insert.c | 2 +- 2048 1 files changed, 1 insertions(+), 1 deletions(-) 2049 2050commit b26bab33a618cdffae4f0d9da20040d30e8fa546 2051Author: Yoann Vandoorselaere <yoann.v@prelude-technologies.com> 2052Date: Mon Oct 25 10:01:06 2010 +0200 2053 2054 Whitespace police 2055 2056 plugins/format/classic/classic.c | 718 +++++++++++++++++++------------------- 2057 1 files changed, 359 insertions(+), 359 deletions(-) 2058 2059commit 1109068059501f5e7d5fbbae6bdcc1903117813e 2060Author: Yoann Vandoorselaere <yoann.v@prelude-technologies.com> 2061Date: Tue Jun 22 12:19:52 2010 +0200 2062 2063 C++ compilation fixes 2064 2065 Include required dependencies, and add missing cast to preludedb-error.h 2066 2067 src/include/preludedb-error.h | 4 ++-- 2068 src/include/preludedb-sql.h | 3 +++ 2069 2 files changed, 5 insertions(+), 2 deletions(-) 2070 2071commit 425c4dc86168e8bf8c2c47cac2e05e78baf8e77c 2072Author: Hauke Mehrtens <hauke@hauke-m.de> 2073Date: Fri Jun 18 13:45:50 2010 +0200 2074 2075 preludedb: fix some compile errors with g++ 2076 2077 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 2078 2079 src/include/preludedb-error.h | 4 ++-- 2080 src/include/preludedb-sql.h | 4 ++-- 2081 2 files changed, 4 insertions(+), 4 deletions(-) 2082 2083commit 0364971e171bc634c0ac6028bf758ec2aeee2859 2084Author: Yoann Vandoorselaere <yoann.v@prelude-technologies.com> 2085Date: Tue Mar 16 15:55:31 2010 +0100 2086 2087 Update NEWS, bump version 2088 2089 NEWS | 5 +++++ 2090 configure.in | 2 +- 2091 2 files changed, 6 insertions(+), 1 deletions(-) 2092 2093commit 9c038260b90c3607a76276f628d9353b159c5baa 2094Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2095Date: Fri Jan 29 17:56:08 2010 +0100 2096 2097 Update NEWS, bump version 2098 2099 INSTALL | 97 +++++++++++++++++++++++++++++++++------- 2100 NEWS | 25 ++++++++++ 2101 configure.in | 10 ++-- 2102 docs/api/libpreludedb-decl.txt | 2 +- 2103 4 files changed, 111 insertions(+), 23 deletions(-) 2104 2105commit 3c9f4ebed4695392da975602422e2390e8254829 2106Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2107Date: Fri Jan 29 17:53:54 2010 +0100 2108 2109 Update GnuLib code 2110 2111 arg-nonnull.h | 26 + 2112 config.rpath | 2 +- 2113 libmissing/Makefile.am | 318 +- 2114 libmissing/alloca.in.h | 4 +- 2115 libmissing/asnprintf.c | 2 +- 2116 libmissing/errno.in.h | 2 +- 2117 libmissing/float+.h | 2 +- 2118 libmissing/float.in.h | 2 +- 2119 libmissing/getpagesize.c | 39 - 2120 libmissing/glthread/lock.c | 436 +- 2121 libmissing/glthread/lock.h | 2 +- 2122 libmissing/glthread/threadlib.c | 20 +- 2123 libmissing/m4/00gnulib.m4 | 2 +- 2124 libmissing/m4/alloca.m4 | 3 +- 2125 libmissing/m4/errno_h.m4 | 2 +- 2126 libmissing/m4/extensions.m4 | 22 +- 2127 libmissing/m4/float_h.m4 | 2 +- 2128 libmissing/m4/getpagesize.m4 | 29 - 2129 libmissing/m4/gnulib-cache.m4 | 2 +- 2130 libmissing/m4/gnulib-common.m4 | 35 +- 2131 libmissing/m4/gnulib-comp.m4 | 24 +- 2132 libmissing/m4/gnulib-tool.m4 | 2 +- 2133 libmissing/m4/include_next.m4 | 80 +- 2134 libmissing/m4/intmax_t.m4 | 3 +- 2135 libmissing/m4/inttypes_h.m4 | 2 +- 2136 libmissing/m4/lib-ld.m4 | 8 +- 2137 libmissing/m4/lib-link.m4 | 2 +- 2138 libmissing/m4/lib-prefix.m4 | 2 +- 2139 libmissing/m4/lock.m4 | 2 +- 2140 libmissing/m4/longlong.m4 | 66 +- 2141 libmissing/m4/memchr.m4 | 10 +- 2142 libmissing/m4/mmap-anon.m4 | 2 +- 2143 libmissing/m4/multiarch.m4 | 2 +- 2144 libmissing/m4/onceonly.m4 | 3 +- 2145 libmissing/m4/printf.m4 | 2 +- 2146 libmissing/m4/size_max.m4 | 2 +- 2147 libmissing/m4/snprintf.m4 | 2 +- 2148 libmissing/m4/stddef_h.m4 | 45 + 2149 libmissing/m4/stdint.m4 | 14 +- 2150 libmissing/m4/stdint_h.m4 | 2 +- 2151 libmissing/m4/stdio_h.m4 | 121 +- 2152 libmissing/m4/strdup.m4 | 2 +- 2153 libmissing/m4/string_h.m4 | 66 +- 2154 libmissing/m4/strndup.m4 | 48 +- 2155 libmissing/m4/strnlen.m4 | 3 +- 2156 libmissing/m4/thread.m4 | 2 +- 2157 libmissing/m4/threadlib.m4 | 15 +- 2158 libmissing/m4/time_h.m4 | 22 +- 2159 libmissing/m4/time_r.m4 | 21 +- 2160 libmissing/m4/unistd_h.m4 | 83 - 2161 libmissing/m4/vasnprintf.m4 | 2 +- 2162 libmissing/m4/vsnprintf.m4 | 2 +- 2163 libmissing/m4/warn-on-use.m4 | 45 + 2164 libmissing/m4/wchar.m4 | 100 +- 2165 libmissing/m4/wchar_t.m4 | 2 +- 2166 libmissing/m4/wint_t.m4 | 2 +- 2167 libmissing/m4/xsize.m4 | 2 +- 2168 libmissing/m4/yield.m4 | 2 +- 2169 libmissing/memchr.c | 26 +- 2170 libmissing/printf-args.c | 211 +- 2171 libmissing/printf-args.h | 55 +- 2172 libmissing/printf-parse.c | 940 +++--- 2173 libmissing/printf-parse.h | 21 +- 2174 libmissing/size_max.h | 2 +- 2175 libmissing/snprintf.c | 12 +- 2176 libmissing/stddef.in.h | 86 + 2177 libmissing/stdint.in.h | 10 +- 2178 libmissing/stdio-write.c | 48 +- 2179 libmissing/stdio.in.h | 849 +++-- 2180 libmissing/strdup.c | 4 +- 2181 libmissing/string.in.h | 360 +- 2182 libmissing/strndup.c | 4 +- 2183 libmissing/strnlen.c | 2 +- 2184 libmissing/tests/Makefile.am | 80 +- 2185 libmissing/tests/glthread/thread.c | 34 +- 2186 libmissing/tests/glthread/thread.h | 2 +- 2187 libmissing/tests/glthread/yield.h | 2 +- 2188 libmissing/tests/intprops.h | 50 +- 2189 libmissing/tests/macros.h | 64 + 2190 libmissing/tests/signature.h | 48 + 2191 libmissing/tests/test-alloca-opt.c | 2 +- 2192 libmissing/tests/test-errno.c | 2 +- 2193 libmissing/tests/test-lock.c | 58 +- 2194 libmissing/tests/test-memchr.c | 71 +- 2195 libmissing/tests/test-snprintf.c | 46 +- 2196 libmissing/tests/test-stddef.c | 38 + 2197 libmissing/tests/test-stdint.c | 4 +- 2198 libmissing/tests/test-stdio.c | 11 +- 2199 libmissing/tests/test-string.c | 4 +- 2200 libmissing/tests/test-time.c | 10 +- 2201 libmissing/tests/test-unistd.c | 56 - 2202 libmissing/tests/test-vasnprintf.c | 23 +- 2203 libmissing/tests/test-vsnprintf.c | 46 +- 2204 libmissing/tests/test-wchar.c | 10 +- 2205 libmissing/tests/verify.h | 6 +- 2206 libmissing/tests/zerosize-ptr.h | 10 +- 2207 libmissing/time.in.h | 34 +- 2208 libmissing/time_r.c | 2 +- 2209 libmissing/unistd.in.h | 578 --- 2210 libmissing/vasnprintf.c | 8063 ++++++++++++++++++------------------ 2211 libmissing/vasnprintf.h | 17 +- 2212 libmissing/vsnprintf.c | 12 +- 2213 libmissing/wchar.in.h | 121 +- 2214 libmissing/xsize.h | 2 +- 2215 src/Makefile.am | 2 +- 2216 warn-on-use.h | 75 + 2217 106 files changed, 6968 insertions(+), 7012 deletions(-) 2218 2219commit fb152c4c92e96a2d5a26e4307300deefbfd5e1b4 2220Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2221Date: Fri Jan 29 11:04:35 2010 +0100 2222 2223 Correctly compare table name for IDMEFTime field 2224 2225 The old implementation could use the CreateTime table, in place of 2226 the DetectTime table, when asked for the table handling a detect_time 2227 element. 2228 2229 plugins/format/classic/classic-sql-join.c | 3 ++- 2230 1 files changed, 2 insertions(+), 1 deletions(-) 2231 2232commit 3ef573868ba897dcfc817876894dd326e6964de8 2233Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2234Date: Thu Jan 21 13:32:58 2010 +0100 2235 2236 Force upgrading copied count before next database retrieval 2237 2238 This fix a problem where the offset was not correctly calculated 2239 when retrieving alert to be copied, when the previous number of 2240 events copied didn't exceed events_per_transaction. 2241 2242 preludedb-admin.c | 16 +++++++++++----- 2243 1 files changed, 11 insertions(+), 5 deletions(-) 2244 2245commit b834aa8015f1fe529cb108bf9342f0fd152f5f8a 2246Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2247Date: Thu Jan 21 13:02:53 2010 +0100 2248 2249 Do not account for EOF return in loaded messages statistics 2250 2251 preludedb-admin.c | 5 ++++- 2252 1 files changed, 4 insertions(+), 1 deletions(-) 2253 2254commit 8fd6982cab2c0eb6bbe1e269296cc7929f53bb55 2255Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2256Date: Thu Jan 21 11:43:13 2010 +0100 2257 2258 Error return propagation fix 2259 2260 Correctly propagate error return on prelude_msg_read() error, fix 2261 a possible crash in case of invalid input message. 2262 2263 preludedb-admin.c | 2 ++ 2264 1 files changed, 2 insertions(+), 0 deletions(-) 2265 2266commit e8ee0396b926e1edae26f69cf61d4cd2d3e24435 2267Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2268Date: Thu Jan 21 10:52:39 2010 +0100 2269 2270 Fix events deletion/move bugs 2271 2272 When deleting events without specifying the --count parameters, only 2273 half of the events would be deleted. 2274 2275 When moving alert, only half of the alert would be moved. 2276 2277 preludedb-admin.c | 12 ++++++------ 2278 1 files changed, 6 insertions(+), 6 deletions(-) 2279 2280commit b7d60fbb66c09f0a188b5ce6387ed53c5efdcce7 2281Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2282Date: Thu Jan 21 09:39:57 2010 +0100 2283 2284 Fixes some warnings uncovered by -Wextra 2285 2286 plugins/format/classic/classic-delete.c | 5 ++--- 2287 plugins/format/classic/classic-get.c | 2 +- 2288 plugins/format/classic/classic-path-resolve.c | 2 +- 2289 plugins/format/classic/classic-sql-select.c | 2 +- 2290 plugins/sql/mysql/mysql.c | 4 ++-- 2291 plugins/sql/pgsql/pgsql.c | 8 +++++--- 2292 plugins/sql/sqlite3/sqlite3.c | 5 +++-- 2293 preludedb-admin.c | 2 +- 2294 src/preludedb-error.c | 2 +- 2295 src/preludedb-path-selection.c | 4 ++-- 2296 src/preludedb-plugin-sql.c | 2 +- 2297 src/preludedb-sql.c | 4 ++-- 2298 src/preludedb.c | 2 +- 2299 13 files changed, 23 insertions(+), 21 deletions(-) 2300 2301commit 3cd795ae63fee8a95b05f8f925200aab42e9d26c 2302Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2303Date: Thu Jan 21 09:26:01 2010 +0100 2304 2305 Whitespace police 2306 2307 plugins/format/classic/classic-delete.c | 152 +- 2308 plugins/format/classic/classic-get.c | 3192 +++++++++++++++--------------- 2309 src/preludedb-error.c | 36 +- 2310 3 files changed, 1690 insertions(+), 1690 deletions(-) 2311 2312commit 658a85e55df3cc7b4d123cb612df6be02814aa7d 2313Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2314Date: Tue Jan 19 15:46:35 2010 +0100 2315 2316 Fixes insertion failure for ProcessEnv 2317 2318 plugins/format/classic/classic-insert.c | 2 +- 2319 1 files changed, 1 insertions(+), 1 deletions(-) 2320 2321commit ee268850d6f44f8cb2cc1594f7ec954282a7858a 2322Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2323Date: Wed Jul 15 09:50:54 2009 +0200 2324 2325 Update NEWS, bump version 2326 2327 NEWS | 5 +++++ 2328 configure.in | 2 +- 2329 2 files changed, 6 insertions(+), 1 deletions(-) 2330 2331commit b659b5dbaba9fdd0f0253d7056253dc472c77dca 2332Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2333Date: Wed Jul 15 09:48:23 2009 +0200 2334 2335 libpreludedb distribution was missing SWIG generated bindings 2336 2337 bindings/Makefile.am | 2 +- 2338 1 files changed, 1 insertions(+), 1 deletions(-) 2339 2340commit 89656057ba31c69ab0395243ff8a4c83d6952107 2341Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2342Date: Mon Jul 13 17:40:05 2009 +0200 2343 2344 Remove deprecated 2345 2346 bindings/perl/generate.sh | 3 --- 2347 bindings/python/generate.sh | 3 --- 2348 2 files changed, 0 insertions(+), 6 deletions(-) 2349 2350commit 470ece71bf055781f77bb4e38ba605b68498651c 2351Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2352Date: Mon Jul 13 11:53:14 2009 +0200 2353 2354 Update NEWS, bump version number 2355 2356 NEWS | 11 +++++++++++ 2357 configure.in | 4 ++-- 2358 2 files changed, 13 insertions(+), 2 deletions(-) 2359 2360commit 1bbcbf3dbe5b78305050c443406fc1295f3dd136 2361Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2362Date: Mon Jul 13 11:34:02 2009 +0200 2363 2364 Pass make distcheck again 2365 2366 bindings/Makefile.am | 4 ++-- 2367 1 files changed, 2 insertions(+), 2 deletions(-) 2368 2369commit c03dd0f03f8cdfe9b05a5f8018ddb1c52740f9f5 2370Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2371Date: Mon Jul 13 11:21:17 2009 +0200 2372 2373 Update gtk-doc, documentation 2374 2375 docs/api/libpreludedb-decl.txt | 840 ++++++++++++++++++++-------------------- 2376 gtk-doc.make | 47 ++- 2377 2 files changed, 455 insertions(+), 432 deletions(-) 2378 2379commit c1233caa1df20652c75ef4fec6539da8779c0007 2380Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2381Date: Mon Jul 13 11:20:43 2009 +0200 2382 2383 Fix compilation warning 2384 2385 plugins/sql/mysql/mysql.c | 2 +- 2386 1 files changed, 1 insertions(+), 1 deletions(-) 2387 2388commit df9cb12498651abfa53ee456c92d1f82da6aff7b 2389Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2390Date: Mon Jul 13 10:49:54 2009 +0200 2391 2392 Update MySQL, PostgreSQL, and SQLite3 detection method 2393 2394 Update to newer detection method based on Autoconf Macros Archives macros. 2395 This should fixes a number of detection problem (64 bits libdir), and make 2396 it easier to cross compile libpreludedb. 2397 2398 configure.in | 145 ++++++------------------------------- 2399 m4/ax_lib_mysql.m4 | 145 +++++++++++++++++++++++++++++++++++++ 2400 m4/ax_lib_postgresql.m4 | 152 ++++++++++++++++++++++++++++++++++++++ 2401 m4/ax_lib_sqlite3.m4 | 153 +++++++++++++++++++++++++++++++++++++++ 2402 plugins/sql/mysql/Makefile.am | 2 +- 2403 plugins/sql/pgsql/Makefile.am | 4 +- 2404 plugins/sql/sqlite3/Makefile.am | 2 +- 2405 7 files changed, 476 insertions(+), 127 deletions(-) 2406 2407commit ea29614ae5ac2acc345bacb7404632f2d50a86dc 2408Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2409Date: Mon Jul 13 10:36:06 2009 +0200 2410 2411 Update autoconf generated files 2412 2413 INSTALL | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++------------ 2414 1 files changed, 86 insertions(+), 21 deletions(-) 2415 2416commit 29461dbe823796af968db56c2408fbdb3efa2c8f 2417Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2418Date: Mon Jul 13 09:35:19 2009 +0200 2419 2420 Remove libmissing.h dependency 2421 2422 We used to have a single libmissing header including all GnuLib 2423 headers file. Now that GnuLib provides replacement for default 2424 system headers, there is no need to include "libmissing.h" in 2425 source code anymore. 2426 2427 plugins/format/classic/classic-delete.c | 2 +- 2428 plugins/format/classic/classic-get.c | 2 +- 2429 plugins/format/classic/classic-insert.c | 1 - 2430 plugins/format/classic/classic-path-resolve.c | 1 - 2431 plugins/format/classic/classic-sql-join.c | 2 +- 2432 plugins/format/classic/classic-sql-select.c | 2 +- 2433 plugins/format/classic/classic.c | 2 +- 2434 plugins/sql/mysql/mysql.c | 1 - 2435 plugins/sql/pgsql/pgsql.c | 1 - 2436 plugins/sql/sqlite3/sqlite3.c | 1 - 2437 src/include/Makefile.am | 2 +- 2438 src/include/libmissing.h | 33 ------------------------- 2439 src/preludedb-path-selection.c | 1 - 2440 src/preludedb-sql-settings.c | 1 - 2441 src/preludedb-sql.c | 1 - 2442 src/preludedb.c | 1 - 2443 16 files changed, 6 insertions(+), 48 deletions(-) 2444 2445commit 4ec573b0304d10d66792f22b56e372a1c3a703b4 2446Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2447Date: Fri Jul 10 14:27:04 2009 +0200 2448 2449 GnuLib update 2450 2451 libmissing/Makefile.am | 95 +++++++- 2452 libmissing/errno.in.h | 7 +- 2453 libmissing/getpagesize.c | 39 +++ 2454 libmissing/m4/errno_h.m4 | 5 +- 2455 libmissing/m4/getpagesize.m4 | 29 ++ 2456 libmissing/m4/gnulib-comp.m4 | 16 + 2457 libmissing/m4/include_next.m4 | 32 ++- 2458 libmissing/m4/lib-link.m4 | 7 +- 2459 libmissing/m4/memchr.m4 | 86 ++++++ 2460 libmissing/m4/mmap-anon.m4 | 59 ++++ 2461 libmissing/m4/size_max.m4 | 17 +- 2462 libmissing/m4/stdio_h.m4 | 5 +- 2463 libmissing/m4/string_h.m4 | 6 +- 2464 libmissing/m4/unistd_h.m4 | 83 ++++++ 2465 libmissing/memchr.c | 172 ++++++++++++ 2466 libmissing/memchr.valgrind | 14 + 2467 libmissing/stdio.in.h | 20 ++- 2468 libmissing/string.in.h | 17 +- 2469 libmissing/tests/Makefile.am | 19 ++- 2470 libmissing/tests/test-memchr.c | 130 +++++++++ 2471 libmissing/tests/test-stdio.c | 8 +- 2472 libmissing/tests/test-string.c | 8 +- 2473 libmissing/tests/test-unistd.c | 56 ++++ 2474 libmissing/tests/zerosize-ptr.h | 68 +++++ 2475 libmissing/unistd.in.h | 578 +++++++++++++++++++++++++++++++++++++++ 2476 25 files changed, 1548 insertions(+), 28 deletions(-) 2477 2478commit d1190f4b40007040c853e9d6b859a4dafc962756 2479Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2480Date: Wed May 13 11:52:08 2009 +0200 2481 2482 Fix regression introduced in libpreludedb 0.9.15: 2483 libpreludedb-config --plugin-dir would return incorrect result. 2484 2485 configure.in | 1 + 2486 1 files changed, 1 insertions(+), 0 deletions(-) 2487 2488commit d15d1cd066f5d5da409c6b0472de6766a2517bcc 2489Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2490Date: Tue May 12 18:43:48 2009 +0200 2491 2492 Add autogenerated file to the repository. 2493 2494 0 files changed, 0 insertions(+), 0 deletions(-) 2495 2496commit 540d9f3cec220325ba3a434b31411813256af769 2497Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2498Date: Tue May 12 18:37:19 2009 +0200 2499 2500 Documentation update. 2501 2502 docs/api/libpreludedb-decl.txt | 618 ++++++++++++++++++++-------------------- 2503 1 files changed, 309 insertions(+), 309 deletions(-) 2504 2505commit 4e8cf7a6d525e1a21d5a3761a56147fc830c2a7b 2506Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2507Date: Tue May 12 17:15:04 2009 +0200 2508 2509 Automatic gitignore generation. 2510 2511 Makefile.am | 23 ++++ 2512 bindings/Makefile.am | 11 ++- 2513 docs/Makefile.am | 2 + 2514 docs/api/Makefile.am | 2 + 2515 docs/manpages/Makefile.am | 2 + 2516 git.mk | 183 ++++++++++++++++++++++++++++ 2517 libmissing/Makefile.am | 2 + 2518 libmissing/tests/Makefile.am | 2 + 2519 m4/Makefile.am | 8 ++ 2520 plugins/Makefile.am | 2 + 2521 plugins/format/Makefile.am | 2 + 2522 plugins/format/classic/Makefile.am | 2 + 2523 plugins/format/classic/include/Makefile.am | 2 + 2524 plugins/sql/Makefile.am | 2 + 2525 plugins/sql/mysql/Makefile.am | 2 + 2526 plugins/sql/pgsql/Makefile.am | 2 + 2527 plugins/sql/sqlite3/Makefile.am | 2 + 2528 src/Makefile.am | 2 + 2529 src/include/Makefile.am | 2 + 2530 19 files changed, 254 insertions(+), 1 deletions(-) 2531 2532commit 931654dd6509992d872b6a155d070cb70a67858e 2533Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2534Date: Tue May 12 16:59:11 2009 +0200 2535 2536 Update autogenerated file. 2537 2538 INSTALL | 53 +++++++++++++++++++++++++++-------------------------- 2539 1 files changed, 27 insertions(+), 26 deletions(-) 2540 2541commit 34b478bfa015db5ed64f5b53706e764826b8fb94 2542Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2543Date: Tue May 12 16:58:52 2009 +0200 2544 2545 Automatically generate ChangeLog from git history. 2546 2547 ChangeLog | 1839 +---------------------------------------------------------- 2548 Makefile.am | 13 + 2549 2 files changed, 16 insertions(+), 1836 deletions(-) 2550 2551commit 8feffb192e83e004e042c2c048ab9bbe8198a9b5 2552Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2553Date: Tue May 12 15:10:21 2009 +0200 2554 2555 Update GnuLib code, add missing GnuLib generated files. 2556 2557 config.rpath | 672 ++++++++++++++++++++++++++++++ 2558 libmissing/Makefile.am | 226 +++++------ 2559 libmissing/errno.in.h | 155 +++++++ 2560 libmissing/float.in.h | 6 +- 2561 libmissing/glthread/lock.c | 5 + 2562 libmissing/glthread/lock.h | 6 +- 2563 libmissing/glthread/threadlib.c | 7 +- 2564 libmissing/m4/00gnulib.m4 | 30 ++ 2565 libmissing/m4/alloca.m4 | 6 +- 2566 libmissing/m4/eoverflow.m4 | 70 ---- 2567 libmissing/m4/errno_h.m4 | 112 +++++ 2568 libmissing/m4/extensions.m4 | 32 ++- 2569 libmissing/m4/gnulib-cache.m4 | 4 +- 2570 libmissing/m4/gnulib-common.m4 | 41 ++- 2571 libmissing/m4/gnulib-comp.m4 | 26 +- 2572 libmissing/m4/include_next.m4 | 99 ++++- 2573 libmissing/m4/intmax_t.m4 | 16 +- 2574 libmissing/m4/inttypes_h.m4 | 12 +- 2575 libmissing/m4/lib-ld.m4 | 14 +- 2576 libmissing/m4/lib-link.m4 | 56 ++- 2577 libmissing/m4/lib-prefix.m4 | 91 +++-- 2578 libmissing/m4/lock.m4 | 8 +- 2579 libmissing/m4/longlong.m4 | 8 +- 2580 libmissing/m4/malloc.m4 | 41 -- 2581 libmissing/m4/multiarch.m4 | 65 +++ 2582 libmissing/m4/printf.m4 | 249 ++++++++---- 2583 libmissing/m4/size_max.m4 | 14 +- 2584 libmissing/m4/stdint.m4 | 95 ++++- 2585 libmissing/m4/stdint_h.m4 | 12 +- 2586 libmissing/m4/stdio_h.m4 | 140 +++++--- 2587 libmissing/m4/stdlib_h.m4 | 47 --- 2588 libmissing/m4/strdup.m4 | 26 +- 2589 libmissing/m4/string_h.m4 | 9 +- 2590 libmissing/m4/strndup.m4 | 8 +- 2591 libmissing/m4/strnlen.m4 | 8 +- 2592 libmissing/m4/thread.m4 | 6 +- 2593 libmissing/m4/threadlib.m4 | 51 ++-- 2594 libmissing/m4/unistd_h.m4 | 63 --- 2595 libmissing/m4/vasnprintf.m4 | 56 ++- 2596 libmissing/m4/wchar.m4 | 62 +++- 2597 libmissing/m4/wchar_t.m4 | 10 +- 2598 libmissing/m4/wint_t.m4 | 10 +- 2599 libmissing/m4/xsize.m4 | 6 +- 2600 libmissing/m4/yield.m4 | 8 +- 2601 libmissing/malloc.c | 57 --- 2602 libmissing/stdint.in.h | 123 ++++-- 2603 libmissing/stdio-write.c | 148 +++++++ 2604 libmissing/stdio.in.h | 122 ++++++ 2605 libmissing/stdlib.in.h | 240 ----------- 2606 libmissing/string.in.h | 10 +- 2607 libmissing/tests/Makefile.am | 39 +-- 2608 libmissing/tests/glthread/thread.c | 256 ++++++------ 2609 libmissing/tests/glthread/thread.h | 23 +- 2610 libmissing/tests/test-EOVERFLOW.c | 32 -- 2611 libmissing/tests/test-errno.c | 117 ++++++ 2612 libmissing/tests/test-lock.c | 56 +++- 2613 libmissing/tests/test-stdlib.c | 37 -- 2614 libmissing/tests/test-unistd.c | 44 -- 2615 libmissing/tests/test-wchar.c | 6 +- 2616 libmissing/time.in.h | 6 +- 2617 libmissing/unistd.in.h | 340 --------------- 2618 libmissing/vasnprintf.c | 796 +++++++++++++++++++++++++++++++++--- 2619 libmissing/wchar.in.h | 225 ++++++++++- 2620 link-warning.h | 28 ++ 2621 plugins/format/classic/Makefile.am | 2 +- 2622 plugins/sql/mysql/Makefile.am | 2 +- 2623 plugins/sql/pgsql/Makefile.am | 2 +- 2624 plugins/sql/sqlite3/Makefile.am | 2 +- 2625 src/Makefile.am | 2 +- 2626 69 files changed, 3675 insertions(+), 1728 deletions(-) 2627 2628commit 408ca1ff428fcec96c3d1da0e2f8fd62a929fe01 2629Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2630Date: Tue Sep 9 12:20:59 2008 +0000 2631 2632 Tags 0.9.15.1 2633 2634commit 6cf60a6d1e69baf41228f113d6a663228402c676 2635Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2636Date: Tue Sep 9 12:20:39 2008 +0000 2637 2638 Update NEWS, bump version 2639 2640 NEWS | 5 +++++ 2641 configure.in | 4 ++-- 2642 2 files changed, 7 insertions(+), 2 deletions(-) 2643 2644commit 3cac3c8ff98b1dba737933e0d6c4b5d331cc3b2b 2645Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2646Date: Tue Sep 9 12:20:37 2008 +0000 2647 2648 Fix handling of the offset parameter. 2649 2650 preludedb-admin.c | 2 +- 2651 1 files changed, 1 insertions(+), 1 deletions(-) 2652 2653commit 17cd0b646ce73b1f1ad433d974d44187c94fdd56 2654Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2655Date: Tue Sep 9 12:20:35 2008 +0000 2656 2657 Add a THREAD_SUPPORT argument to AM_PATH_LIBPRELUDEDB() 2658 2659 m4/libpreludedb.m4 | 17 +++++++++++++---- 2660 1 files changed, 13 insertions(+), 4 deletions(-) 2661 2662commit 1f0e69fcf0c32c25f36a44e33eb00f56879c46ce 2663Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2664Date: Tue Sep 9 12:20:32 2008 +0000 2665 2666 Add optional --thread option, to pull thread dependencies. 2667 2668 libpreludedb-config.in | 43 ++++++++++++++++++++++++++++++++++++------- 2669 1 files changed, 36 insertions(+), 7 deletions(-) 2670 2671commit dea95231adde83c79de358786e9710b4aa755f11 2672Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2673Date: Tue Sep 9 12:20:29 2008 +0000 2674 2675 Explicitly disable libprelude thread dependencie. 2676 2677 configure.in | 2 +- 2678 1 files changed, 1 insertions(+), 1 deletions(-) 2679 2680commit f6f266ed31562e305869c844a676934ce89e1e47 2681Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2682Date: Tue Sep 9 12:20:27 2008 +0000 2683 2684 Update from libprelude. 2685 2686 m4/libprelude.m4 | 46 +++++++++++++++++++++++++++------------------- 2687 1 files changed, 27 insertions(+), 19 deletions(-) 2688 2689commit e1572b8a7af7c0bf4cc395305f94ddec6dbf1273 2690Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2691Date: Wed Aug 27 14:04:32 2008 +0000 2692 2693 Update NEWS, doc, bump version number. 2694 2695 NEWS | 17 +++++++++++++++++ 2696 configure.in | 6 +++--- 2697 docs/api/libpreludedb-decl.txt | 27 +-------------------------- 2698 docs/api/tmpl/libpreludedb-unused.sgml | 24 ++++++++++++++++++++++++ 2699 docs/api/tmpl/preludedb-plugin-format.sgml | 24 ------------------------ 2700 5 files changed, 45 insertions(+), 53 deletions(-) 2701 2702commit c53c47d660d7b4f904b4ee74323766b18515653c 2703Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2704Date: Wed Aug 27 13:50:27 2008 +0000 2705 2706 Add tests subdir. 2707 2708 libmissing/Makefile.am | 1 + 2709 1 files changed, 1 insertions(+), 0 deletions(-) 2710 2711commit d64277db38e5b82d923edf19342515e06eea21dc 2712Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2713Date: Wed Aug 27 13:46:47 2008 +0000 2714 2715 Add missing m4 macros. 2716 2717 m4/ax_c_check_flag.m4 | 90 ++++++++++++++++++++++++++++++++++++++++++++ 2718 m4/ax_ld_check_flag.m4 | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ 2719 2 files changed, 188 insertions(+), 0 deletions(-) 2720 2721commit c5774ec9d956a10c814df35c766614d7b5c5a91f 2722Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2723Date: Wed Aug 27 13:38:36 2008 +0000 2724 2725 Add missing m4 macro. 2726 2727 m4/as-ac-expand.m4 | 43 +++++++++++++++++++++++++++++++++++++++++++ 2728 1 files changed, 43 insertions(+), 0 deletions(-) 2729 2730commit e0c11c84f604b6293807c9e38d88b89b91e5e8b4 2731Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2732Date: Wed Aug 27 13:36:46 2008 +0000 2733 2734 Update GnuLib code. 2735 2736 libmissing/Makefile.am | 2 ++ 2737 libmissing/m4/string_h.m4 | 4 +++- 2738 libmissing/m4/thread.m4 | 3 +++ 2739 libmissing/string.in.h | 12 ++++++++++++ 2740 libmissing/tests/test-lock.c | 3 +++ 2741 5 files changed, 23 insertions(+), 1 deletions(-) 2742 2743commit 52e69fe20cde0380272cfa8731a808db8c588ffa 2744Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2745Date: Wed Aug 27 13:36:42 2008 +0000 2746 2747 Build system cleanup. 2748 2749 Makefile.am | 5 +- 2750 configure.in | 180 +++++++++++++++++++---------------- 2751 m4/ax_cflags_gcc_option.m4 | 183 ------------------------------------ 2752 m4/gtk-doc.m4 | 4 +- 2753 plugins/format/classic/Makefile.am | 2 +- 2754 plugins/sql/mysql/Makefile.am | 2 +- 2755 plugins/sql/pgsql/Makefile.am | 2 +- 2756 plugins/sql/sqlite3/Makefile.am | 2 +- 2757 src/Makefile.am | 5 +- 2758 9 files changed, 107 insertions(+), 278 deletions(-) 2759 2760commit efd3eb1a3fda21fcb560220d462d4dc8f0213635 2761Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2762Date: Wed Aug 27 13:36:38 2008 +0000 2763 2764 Add description for the count command, describe more db settings arguments. 2765 2766 preludedb-admin.c | 10 +++++++--- 2767 1 files changed, 7 insertions(+), 3 deletions(-) 2768 2769commit 9f872d210c8cab23d067f7d31a39abc16d847691 2770Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2771Date: Wed Aug 27 13:36:36 2008 +0000 2772 2773 Whitespace police. 2774 2775 NEWS | 354 +++++++++++++++++++++++++++++++++--------------------------------- 2776 1 files changed, 177 insertions(+), 177 deletions(-) 2777 2778commit 6778986e3d773315b6c6765066687ce9dc77af76 2779Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2780Date: Tue Aug 19 15:20:30 2008 +0000 2781 2782 Add missing tests. 2783 2784 libmissing/glthread/lock.c | 1053 +++++++++++++++++++++++++++++++++++++++ 2785 libmissing/glthread/lock.h | 927 ++++++++++++++++++++++++++++++++++ 2786 libmissing/glthread/threadlib.c | 69 +++ 2787 3 files changed, 2049 insertions(+), 0 deletions(-) 2788 2789commit f652acf811c34890fd8d0d53762119af8503414e 2790Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2791Date: Tue Aug 19 15:12:52 2008 +0000 2792 2793 Add GnuLib unit-tests. 2794 2795 Makefile.am | 3 +++ 2796 configure.in | 1 + 2797 2 files changed, 4 insertions(+), 0 deletions(-) 2798 2799commit e9ce210f002e3b9bfef68dbc92193512f8e38eb8 2800Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2801Date: Tue Aug 19 15:12:49 2008 +0000 2802 2803 Update GnuLib code, update lock.h inclusion path, add LTLIBTHREAD to LDFLAGS. 2804 2805 libmissing/Makefile.am | 27 +- 2806 libmissing/lock.c | 938 -------------------------- 2807 libmissing/lock.h | 1105 ------------------------------ 2808 libmissing/m4/extensions.m4 | 6 +- 2809 libmissing/m4/gnulib-cache.m4 | 15 +- 2810 libmissing/m4/gnulib-common.m4 | 30 +- 2811 libmissing/m4/gnulib-comp.m4 | 102 ++- 2812 libmissing/m4/gnulib-tool.m4 | 28 +- 2813 libmissing/m4/include_next.m4 | 4 +- 2814 libmissing/m4/lock.m4 | 313 +-------- 2815 libmissing/m4/onceonly.m4 | 90 +++ 2816 libmissing/m4/onceonly_2_57.m4 | 86 --- 2817 libmissing/m4/printf.m4 | 1309 ++++++++++++++++++++++++++++++++++++ 2818 libmissing/m4/snprintf.m4 | 15 +- 2819 libmissing/m4/stdint.m4 | 20 +- 2820 libmissing/m4/stdio_h.m4 | 14 +- 2821 libmissing/m4/stdlib_h.m4 | 9 +- 2822 libmissing/m4/string_h.m4 | 2 + 2823 libmissing/m4/strndup.m4 | 8 +- 2824 libmissing/m4/thread.m4 | 15 + 2825 libmissing/m4/threadlib.m4 | 314 +++++++++ 2826 libmissing/m4/vasnprintf.m4 | 3 +- 2827 libmissing/m4/vsnprintf.m4 | 15 +- 2828 libmissing/m4/yield.m4 | 19 + 2829 libmissing/snprintf.c | 7 +- 2830 libmissing/stdio.in.h | 20 + 2831 libmissing/stdlib.in.h | 34 +- 2832 libmissing/string.in.h | 16 + 2833 libmissing/tests/Makefile.am | 196 ++++++ 2834 libmissing/tests/glthread/thread.c | 206 ++++++ 2835 libmissing/tests/glthread/thread.h | 369 ++++++++++ 2836 libmissing/tests/glthread/yield.h | 121 ++++ 2837 libmissing/tests/intprops.h | 77 +++ 2838 libmissing/tests/test-EOVERFLOW.c | 32 + 2839 libmissing/tests/test-alloca-opt.c | 62 ++ 2840 libmissing/tests/test-lock.c | 554 +++++++++++++++ 2841 libmissing/tests/test-snprintf.c | 72 ++ 2842 libmissing/tests/test-stdint.c | 360 ++++++++++ 2843 libmissing/tests/test-stdio.c | 30 + 2844 libmissing/tests/test-stdlib.c | 37 + 2845 libmissing/tests/test-string.c | 27 + 2846 libmissing/tests/test-time.c | 29 + 2847 libmissing/tests/test-unistd.c | 44 ++ 2848 libmissing/tests/test-vasnprintf.c | 128 ++++ 2849 libmissing/tests/test-vsnprintf.c | 85 +++ 2850 libmissing/tests/test-wchar.c | 27 + 2851 libmissing/tests/verify.h | 140 ++++ 2852 libmissing/vasnprintf.c | 279 ++++++--- 2853 libmissing/vsnprintf.c | 7 +- 2854 libmissing/wchar.in.h | 11 +- 2855 src/Makefile.am | 3 +- 2856 src/preludedb-sql.c | 2 +- 2857 52 files changed, 4869 insertions(+), 2593 deletions(-) 2858 2859commit 9624d2edef0cd71d556036e56938e3bdd8ed216b 2860Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2861Date: Tue Aug 19 14:53:53 2008 +0000 2862 2863 Check PostgreSQL version and use new escape method if possible 2864 to avoid a warning. 2865 2866 configure.in | 6 ++++++ 2867 plugins/sql/pgsql/pgsql.c | 2 ++ 2868 2 files changed, 8 insertions(+), 0 deletions(-) 2869 2870commit 828a54a429f9c8c05396f25c3ae336491ed56638 2871Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2872Date: Tue Aug 19 14:53:50 2008 +0000 2873 2874 Whitespace police. 2875 2876 configure.in | 70 +++++++++++++++++++++++++++++----------------------------- 2877 1 files changed, 35 insertions(+), 35 deletions(-) 2878 2879commit 50f9becca2ba9c256f120d08af48296dde665707 2880Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2881Date: Tue Aug 19 14:41:58 2008 +0000 2882 2883 Add a count command, printing the result of a COUNT() on the database. 2884 2885 Do not fetch more than 'events-per-transaction' idents at once, work 2886 in a loop (fix #220, refs #305). 2887 2888 Code cleanup, improved handling of interrupted transaction. 2889 2890 preludedb-admin.c | 288 +++++++++++++++++++++++++++++++++++------------------ 2891 1 files changed, 192 insertions(+), 96 deletions(-) 2892 2893commit 38e83215263cec9cdf56ee3103f4919db0a3a43f 2894Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2895Date: Tue Aug 19 14:41:56 2008 +0000 2896 2897 Update gtk-doc files. 2898 2899 gtk-doc.make | 19 +++++++++---------- 2900 1 files changed, 9 insertions(+), 10 deletions(-) 2901 2902commit 510d28efe2d1c99626fe88e5ab1b6f3a8a66fec3 2903Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2904Date: Tue Aug 19 14:41:54 2008 +0000 2905 2906 Whitespace police. 2907 2908 plugins/format/classic/classic-sql-select.c | 220 +++++++++++++------------- 2909 1 files changed, 110 insertions(+), 110 deletions(-) 2910 2911commit 03cbd9eb84d3f421b4b1114e4cc86957592ddf5d 2912Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2913Date: Tue Aug 19 14:41:51 2008 +0000 2914 2915 Whitespace police. 2916 2917 plugins/format/classic/classic-sql-join.c | 386 ++++++++++++++-------------- 2918 1 files changed, 193 insertions(+), 193 deletions(-) 2919 2920commit 00232f5f713369be20e6bbab0bcfa3e8b19a47a1 2921Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2922Date: Tue Aug 19 14:41:47 2008 +0000 2923 2924 Whitespace police. 2925 2926 plugins/format/classic/classic-path-resolve.c | 346 ++++++++++++------------ 2927 1 files changed, 173 insertions(+), 173 deletions(-) 2928 2929commit a0653e72c6938dccb012a8b1b9aef1685b35771f 2930Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2931Date: Fri Jul 18 16:26:54 2008 +0000 2932 2933 Include patch from Uwe Schwartz <usx303 at googlemail.com>, 2934 fixing SQLite and MySQL detection under MacOSX. Fix #296. 2935 2936 configure.in | 8 +++++--- 2937 1 files changed, 5 insertions(+), 3 deletions(-) 2938 2939commit c8c587480b2c3972b64965970b628413c679a004 2940Author: Sebastien Tricaud <s.tricaud@inl.fr> 2941Date: Wed Apr 16 12:03:58 2008 +0000 2942 2943 changed manpage to new use 2944 2945 docs/manpages/preludedb-admin.1 | 7 +++---- 2946 1 files changed, 3 insertions(+), 4 deletions(-) 2947 2948commit d8ba0546dfd55bff66e5d8a576f6820665b00fcc 2949Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2950Date: Thu Mar 27 15:30:32 2008 +0000 2951 2952 Update gtk-doc.make. 2953 2954 gtk-doc.make | 33 ++++++++++++++++++++++++++------- 2955 1 files changed, 26 insertions(+), 7 deletions(-) 2956 2957commit 7dc760cee1c1863ab0e682f7b36d18fc0c776343 2958Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2959Date: Thu Mar 27 15:30:23 2008 +0000 2960 2961 Update gnulib code. 2962 2963 libmissing/Makefile.am | 19 ++++----- 2964 libmissing/alloca.in.h | 4 +- 2965 libmissing/m4/absolute-header.m4 | 49 ------------------------ 2966 libmissing/m4/alloca.m4 | 8 +--- 2967 libmissing/m4/gnulib-cache.m4 | 2 +- 2968 libmissing/m4/gnulib-comp.m4 | 3 +- 2969 libmissing/m4/include_next.m4 | 7 ++- 2970 libmissing/m4/lib-link.m4 | 66 +++++++++++++++++++++++--------- 2971 libmissing/m4/string_h.m4 | 10 ++++- 2972 libmissing/m4/time_r.m4 | 6 ++- 2973 libmissing/m4/unistd_h.m4 | 6 ++- 2974 libmissing/m4/vasnprintf.m4 | 20 +++++++++- 2975 libmissing/printf-parse.c | 40 +++++++++++++++++++- 2976 libmissing/stdio.in.h | 4 +- 2977 libmissing/string.in.h | 78 ++++++++++++++++++++++++++++++-------- 2978 libmissing/unistd.in.h | 22 ++++++++++- 2979 libmissing/vasnprintf.c | 55 +++++++++++++++++---------- 2980 libmissing/vasnprintf.h | 4 +- 2981 libmissing/xsize.h | 4 +- 2982 19 files changed, 266 insertions(+), 141 deletions(-) 2983 2984commit 98ab0ed10307a9eeb5996451ebe5fdee68bdda49 2985Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2986Date: Tue Feb 5 11:16:13 2008 +0000 2987 2988 Only use E'value' mode of escaping if PostgreSQL server version is 2989 higher or equal than 8.2.0. 2990 2991 plugins/sql/pgsql/pgsql.c | 6 +++++- 2992 1 files changed, 5 insertions(+), 1 deletions(-) 2993 2994commit 5fc347765517c24c39ed98fdb039906e1e8c058e 2995Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 2996Date: Thu Jan 3 10:59:21 2008 +0000 2997 2998 Update NEWS, bump version number. 2999 3000 NEWS | 5 +++++ 3001 configure.in | 2 +- 3002 2 files changed, 6 insertions(+), 1 deletions(-) 3003 3004commit 747cb4e3072bada00fe62b8e0de3e83d38bbad0a 3005Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3006Date: Thu Jan 3 10:59:12 2008 +0000 3007 3008 Gnulib code update. 3009 3010 libmissing/Makefile.am | 7 +++++++ 3011 libmissing/m4/stdlib_h.m4 | 7 ++++++- 3012 libmissing/m4/string_h.m4 | 3 +++ 3013 libmissing/m4/unistd_h.m4 | 1 + 3014 libmissing/stdint.in.h | 10 ++++++++-- 3015 libmissing/stdlib.in.h | 25 ++++++++++++++++++++++++- 3016 libmissing/string.in.h | 5 ++++- 3017 libmissing/unistd.in.h | 5 ++++- 3018 8 files changed, 57 insertions(+), 6 deletions(-) 3019 3020commit 73305d7b4529a1b4a8d004f9007d3e8bceec0bca 3021Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3022Date: Wed Jan 2 12:46:29 2008 +0000 3023 3024 Drop 'NOT NULL' constraint with a separate query (Fix #271). 3025 Thanks to Pierre Chifflier <p.chifflier@inl.fr> for pointing this out. 3026 3027 plugins/format/classic/pgsql-update-14-7.sql | 3 ++- 3028 1 files changed, 2 insertions(+), 1 deletions(-) 3029 3030commit 55e8408711050b38ef7bd378635e5e1b5b5d9f83 3031Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3032Date: Wed Dec 19 15:32:31 2007 +0000 3033 3034 Update NEWS, bump version number. 3035 3036 NEWS | 25 +++++++++++++++++++++++++ 3037 configure.in | 4 ++-- 3038 2 files changed, 27 insertions(+), 2 deletions(-) 3039 3040commit 7c47b4f30e7b1e464c1b0d0bc5e72733ad471eac 3041Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3042Date: Wed Dec 19 15:21:39 2007 +0000 3043 3044 Configure the BINDINGS_CC variable, not modified by GnuLib autoconfiguration. 3045 3046 configure.in | 5 ++++- 3047 1 files changed, 4 insertions(+), 1 deletions(-) 3048 3049commit e9cf7b9eb9d5b9a482b0020d13fed567081fd299 3050Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3051Date: Wed Dec 19 15:20:03 2007 +0000 3052 3053 Add missing sqlite-update-14-7.sql. Distribute schema update 14.7. 3054 Propagate CC variable for bindings compilation. 3055 3056 bindings/Makefile.am | 6 +++--- 3057 plugins/format/classic/Makefile.am | 5 ++++- 3058 plugins/format/classic/sqlite-update-14-7.sql | 1 + 3059 3 files changed, 8 insertions(+), 4 deletions(-) 3060 3061commit 581882da626033fdc2ce73ce767fe98f21fcbfcb 3062Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3063Date: Tue Dec 18 11:22:33 2007 +0000 3064 3065 Use the GnuLib "lock" module to provide portable recursive mutex 3066 access different architecture. We now ensure that a single query 3067 or transaction is held at a time. 3068 3069 src/preludedb-sql.c | 90 +++++++++++++++++++++++++++++++++++++------------- 3070 1 files changed, 66 insertions(+), 24 deletions(-) 3071 3072commit f25667e90f216af52034fa58d033d5e58b81cc53 3073Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3074Date: Tue Dec 18 11:22:06 2007 +0000 3075 3076 Add missing GnuLib module. 3077 3078 libmissing/lock.c | 938 ++++++++++++++++++++++++++++++++++++ 3079 libmissing/lock.h | 1105 +++++++++++++++++++++++++++++++++++++++++++ 3080 libmissing/m4/lib-ld.m4 | 110 +++++ 3081 libmissing/m4/lib-link.m4 | 709 +++++++++++++++++++++++++++ 3082 libmissing/m4/lib-prefix.m4 | 185 ++++++++ 3083 libmissing/m4/lock.m4 | 316 ++++++++++++ 3084 6 files changed, 3363 insertions(+), 0 deletions(-) 3085 3086commit a92087c4807b2232580717fc0139cc936fa6777e 3087Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3088Date: Tue Dec 18 11:19:12 2007 +0000 3089 3090 Update GnuLib code, include the lock module. 3091 3092 libmissing/Makefile.am | 31 +- 3093 libmissing/alloca.in.h | 2 +- 3094 libmissing/asnprintf.c | 2 +- 3095 libmissing/dummy.c | 42 -- 3096 libmissing/float+.h | 2 +- 3097 libmissing/float.in.h | 2 +- 3098 libmissing/m4/float_h.m4 | 4 +- 3099 libmissing/m4/gnulib-cache.m4 | 4 +- 3100 libmissing/m4/gnulib-common.m4 | 45 ++- 3101 libmissing/m4/gnulib-comp.m4 | 81 ++++- 3102 libmissing/m4/intmax_t.m4 | 12 +- 3103 libmissing/m4/longlong.m4 | 75 +++- 3104 libmissing/m4/stdio_h.m4 | 15 +- 3105 libmissing/m4/stdlib_h.m4 | 4 +- 3106 libmissing/m4/string_h.m4 | 2 - 3107 libmissing/m4/ulonglong.m4 | 51 --- 3108 libmissing/m4/unistd_h.m4 | 6 +- 3109 libmissing/m4/vasnprintf.m4 | 52 +++- 3110 libmissing/m4/wint_t.m4 | 2 +- 3111 libmissing/malloc.c | 2 +- 3112 libmissing/printf-args.c | 2 +- 3113 libmissing/printf-args.h | 2 +- 3114 libmissing/printf-parse.c | 25 +- 3115 libmissing/printf-parse.h | 2 +- 3116 libmissing/size_max.h | 2 +- 3117 libmissing/snprintf.c | 2 +- 3118 libmissing/stdint.in.h | 7 +- 3119 libmissing/stdio.in.h | 2 +- 3120 libmissing/stdlib.in.h | 9 + 3121 libmissing/strdup.c | 2 +- 3122 libmissing/string.in.h | 47 +-- 3123 libmissing/strndup.c | 2 +- 3124 libmissing/strnlen.c | 2 +- 3125 libmissing/time.in.h | 2 +- 3126 libmissing/time_r.c | 2 +- 3127 libmissing/unistd.in.h | 57 +++- 3128 libmissing/vasnprintf.c | 890 +++++++++++++++++++++++++++++++++++----- 3129 libmissing/vasnprintf.h | 2 +- 3130 libmissing/vsnprintf.c | 2 +- 3131 libmissing/wchar.in.h | 2 +- 3132 libmissing/xsize.h | 2 +- 3133 41 files changed, 1179 insertions(+), 322 deletions(-) 3134 3135commit f2579bce080c9476fd38c132ea4ade085b5dd0be 3136Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3137Date: Tue Nov 27 14:18:43 2007 +0000 3138 3139 Fix a problem handling offset when using the "load" command. 3140 3141 Additionnally, do not compute statistics by storing the number of useconds 3142 elapsed, since the statistics counter would wrap arround with long operation. 3143 3144 preludedb-admin.c | 114 +++++++++++++++++++++++++++++++++++----------------- 3145 1 files changed, 77 insertions(+), 37 deletions(-) 3146 3147commit 642d5d510b89b5e1ef024ef60c436d8574422c79 3148Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3149Date: Fri Nov 2 13:25:12 2007 +0000 3150 3151 Use TEXT in place of VARCHAR for alert.assessment.impact.description (fix #265). 3152 3153 plugins/format/classic/classic.c | 2 +- 3154 plugins/format/classic/mysql-update-14-7.sql | 6 ++++++ 3155 plugins/format/classic/mysql.sql | 4 ++-- 3156 plugins/format/classic/pgsql-update-14-7.sql | 6 ++++++ 3157 plugins/format/classic/pgsql.sql | 4 ++-- 3158 plugins/format/classic/sqlite.sql | 2 +- 3159 6 files changed, 18 insertions(+), 6 deletions(-) 3160 3161commit 706cdc84d16a879c0bfcb60bf8258cfe03c30561 3162Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3163Date: Mon Oct 29 13:36:01 2007 +0000 3164 3165 Fix OpenBSD compilation issue, thanks Alexandre Anriot <aanriot@atlantilde.com> 3166 for pointing out this (fix #227). 3167 3168 src/preludedb-plugin-sql.c | 4 ++-- 3169 1 files changed, 2 insertions(+), 2 deletions(-) 3170 3171commit bdf468e120b1797f4cb22232481af02eb7a0809a 3172Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3173Date: Thu Oct 25 13:23:45 2007 +0000 3174 3175 Update GnuLib code. 3176 3177 libmissing/Makefile.am | 146 +++++++++-- 3178 libmissing/alloca.in.h | 54 ++++ 3179 libmissing/alloca_.h | 54 ---- 3180 libmissing/dummy.c | 10 +- 3181 libmissing/float.in.h | 58 ++++ 3182 libmissing/float_.h | 59 ---- 3183 libmissing/m4/absolute-header.m4 | 49 ++++ 3184 libmissing/m4/extensions.m4 | 52 +++- 3185 libmissing/m4/gnulib-comp.m4 | 55 +++- 3186 libmissing/m4/longlong.m4 | 13 +- 3187 libmissing/m4/malloc.m4 | 41 +++ 3188 libmissing/m4/stdint.m4 | 4 +- 3189 libmissing/m4/stdio_h.m4 | 11 +- 3190 libmissing/m4/stdlib_h.m4 | 35 +++ 3191 libmissing/m4/string_h.m4 | 3 + 3192 libmissing/m4/strndup.m4 | 6 +- 3193 libmissing/m4/strnlen.m4 | 6 +- 3194 libmissing/m4/time_h.m4 | 2 +- 3195 libmissing/m4/ulonglong.m4 | 13 +- 3196 libmissing/m4/unistd_h.m4 | 56 ++++ 3197 libmissing/malloc.c | 57 ++++ 3198 libmissing/printf-parse.c | 2 +- 3199 libmissing/stdint.in.h | 513 ++++++++++++++++++++++++++++++++++ 3200 libmissing/stdint_.h | 508 ---------------------------------- 3201 libmissing/stdio.in.h | 382 ++++++++++++++++++++++++++ 3202 libmissing/stdio_.h | 312 --------------------- 3203 libmissing/stdlib.in.h | 176 ++++++++++++ 3204 libmissing/string.in.h | 563 ++++++++++++++++++++++++++++++++++++++ 3205 libmissing/string_.h | 548 ------------------------------------- 3206 libmissing/time.in.h | 114 ++++++++ 3207 libmissing/time_.h | 114 -------- 3208 libmissing/unistd.in.h | 262 ++++++++++++++++++ 3209 libmissing/vasnprintf.c | 45 +++- 3210 libmissing/wchar.in.h | 82 ++++++ 3211 libmissing/wchar_.h | 82 ------ 3212 35 files changed, 2720 insertions(+), 1767 deletions(-) 3213 3214commit 18e81ba546d6944abf4f6e490e826d110293dcb8 3215Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3216Date: Thu Oct 11 09:03:30 2007 +0000 3217 3218 Handle case where an offset is set, but no limit were specified. 3219 3220 plugins/sql/mysql/mysql.c | 3 +++ 3221 plugins/sql/pgsql/pgsql.c | 5 ++++- 3222 plugins/sql/sqlite3/sqlite3.c | 5 ++++- 3223 3 files changed, 11 insertions(+), 2 deletions(-) 3224 3225commit e16d16c7385a9910cbd29d9a5cb00c79b2692d84 3226Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3227Date: Thu Oct 11 09:03:24 2007 +0000 3228 3229 Whitespace police. 3230 3231 plugins/sql/sqlite3/sqlite3.c | 114 ++++++++++++++++++++-------------------- 3232 1 files changed, 57 insertions(+), 57 deletions(-) 3233 3234commit d7c38decdbdb33551893c599eaa7322a61639fc0 3235Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3236Date: Thu Oct 11 09:01:02 2007 +0000 3237 3238 Whitespace police. 3239 3240 plugins/sql/pgsql/pgsql.c | 46 ++++++++++++++++++++++---------------------- 3241 1 files changed, 23 insertions(+), 23 deletions(-) 3242 3243commit 3d85bf5f7eb096ffbe9db58a7284c3934b0c4e8b 3244Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3245Date: Wed Sep 12 13:52:40 2007 +0000 3246 3247 Prevent MySQL session from timing out after 8 hours of inactivity. 3248 3249 Upon connection to the MySQL server, set the wait_timeout session 3250 variable to 31536000 seconds (365 days). 3251 3252 plugins/sql/mysql/mysql.c | 9 +++++++-- 3253 1 files changed, 7 insertions(+), 2 deletions(-) 3254 3255commit 2d7b91e08e033c29937ab0af9d76b6c433c4eadb 3256Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3257Date: Wed Sep 12 13:48:17 2007 +0000 3258 3259 Whitespace police. 3260 3261 plugins/sql/mysql/mysql.c | 42 +++++++++++++++++++++--------------------- 3262 1 files changed, 21 insertions(+), 21 deletions(-) 3263 3264commit caefe944dbf6774217592c65104b10614d770dbe 3265Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3266Date: Thu Sep 6 17:35:10 2007 +0000 3267 3268 Fix postgreSQL warning when inseting binary data. 3269 3270 plugins/sql/pgsql/pgsql.c | 2 +- 3271 1 files changed, 1 insertions(+), 1 deletions(-) 3272 3273commit aadc9eb19401878f9e390e677faa46c25117cdb9 3274Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3275Date: Thu Sep 6 17:35:04 2007 +0000 3276 3277 Allow Python thread to run, while entering libpreludedb C function. 3278 3279 Avoid Python thread from stalling while blocking libpreludedb function 3280 are waiting. 3281 3282 bindings/libpreludedb_python.i | 7 +++++++ 3283 1 files changed, 7 insertions(+), 0 deletions(-) 3284 3285commit 1eb62b3c5081f048ea747007f484b277a36121db 3286Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3287Date: Mon Aug 20 15:37:25 2007 +0000 3288 3289 Update NEWS, documentation, bump version number. 3290 3291 NEWS | 25 +++++++++++++++++++++++++ 3292 configure.in | 4 ++-- 3293 docs/api/libpreludedb-decl.txt | 8 ++++---- 3294 3 files changed, 31 insertions(+), 6 deletions(-) 3295 3296commit 853bc7439c1d1ee84aeb6cc5fd7f43f54166bca9 3297Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3298Date: Mon Aug 20 15:37:19 2007 +0000 3299 3300 Make comparison for the type of operation case insensitive. Fix a typo. 3301 3302 preludedb-admin.c | 6 +++--- 3303 1 files changed, 3 insertions(+), 3 deletions(-) 3304 3305commit c332c96689f955f15b5a702d2306b97c5a80ef32 3306Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3307Date: Thu Aug 16 12:15:04 2007 +0000 3308 3309 Update GnuLib code, include missing files (fix #250). 3310 3311 libmissing/float+.h | 148 ++++++++++++ 3312 libmissing/float_.h | 59 +++++ 3313 libmissing/m4/float_h.m4 | 19 ++ 3314 libmissing/m4/include_next.m4 | 107 +++++++++ 3315 libmissing/m4/stdint.m4 | 395 ++++++++++++++++++++++++++++++++ 3316 libmissing/m4/ulonglong.m4 | 48 ++++ 3317 libmissing/m4/wchar.m4 | 54 +++++ 3318 libmissing/stdint_.h | 508 +++++++++++++++++++++++++++++++++++++++++ 3319 libmissing/wchar_.h | 82 +++++++ 3320 9 files changed, 1420 insertions(+), 0 deletions(-) 3321 3322commit 8f468f509b32a859fa79844a5e95e60f189334b8 3323Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3324Date: Fri Aug 10 12:12:42 2007 +0000 3325 3326 Give the delete table a decent size. 3327 Make count and offset 64 bits, in place of 32 bits. 3328 Stop processing on certain error. 3329 Correct preludedb-admin print example, and improve error message on 3330 invalid message type. 3331 3332 preludedb-admin.c | 89 ++++++++++++++++++++++++++++------------------------ 3333 1 files changed, 48 insertions(+), 41 deletions(-) 3334 3335commit 371cdb5da1a3095b9c1f9e98cf459631ef74a6a9 3336Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3337Date: Fri Aug 10 12:12:33 2007 +0000 3338 3339 Update GnuLib code. 3340 3341 libmissing/Makefile.am | 127 ++- 3342 libmissing/alloca_.h | 8 +- 3343 libmissing/m4/absolute-header.m4 | 44 - 3344 libmissing/m4/gnulib-cache.m4 | 2 + 3345 libmissing/m4/gnulib-comp.m4 | 14 +- 3346 libmissing/m4/longdouble.m4 | 31 - 3347 libmissing/m4/stdio_h.m4 | 42 +- 3348 libmissing/m4/string_h.m4 | 5 +- 3349 libmissing/m4/time_h.m4 | 4 +- 3350 libmissing/m4/vasnprintf.m4 | 137 ++- 3351 libmissing/m4/wint_t.m4 | 2 +- 3352 libmissing/printf-args.c | 56 +- 3353 libmissing/printf-args.h | 28 +- 3354 libmissing/printf-parse.c | 83 +- 3355 libmissing/printf-parse.h | 115 ++- 3356 libmissing/snprintf.h | 29 - 3357 libmissing/stdio_.h | 126 ++- 3358 libmissing/string_.h | 24 +- 3359 libmissing/time_.h | 19 +- 3360 libmissing/vasnprintf.c | 2955 +++++++++++++++++++++++++++++++++++--- 3361 20 files changed, 3462 insertions(+), 389 deletions(-) 3362 3363commit 2399d76f7c87daa6d9584a20b0e107cbb9602e82 3364Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3365Date: Fri Aug 10 12:12:16 2007 +0000 3366 3367 Whitespace police. 3368 3369 src/preludedb-sql.c | 184 +++++++++++++++++++++++++------------------------- 3370 1 files changed, 92 insertions(+), 92 deletions(-) 3371 3372commit d76560a6ce0697b135e67e03c0bf41e57149c3b9 3373Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3374Date: Fri Aug 10 12:11:56 2007 +0000 3375 3376 Whitespace police. 3377 3378 src/preludedb-sql-settings.c | 154 +++++++++++++++++++++--------------------- 3379 1 files changed, 77 insertions(+), 77 deletions(-) 3380 3381commit e03ba52c0d57eda3f0c40864dffa1b1b4591749c 3382Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3383Date: Fri Aug 10 12:11:47 2007 +0000 3384 3385 Whitespace police. 3386 3387 src/preludedb-plugin-sql.c | 54 ++++++++++++++++++++++---------------------- 3388 1 files changed, 27 insertions(+), 27 deletions(-) 3389 3390commit e14a5355972af7174ff7b44f20b9ba12a3424bd7 3391Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3392Date: Fri Aug 10 12:11:33 2007 +0000 3393 3394 Whitespace police. 3395 3396 src/preludedb-plugin-format.c | 26 +++++++++++++------------- 3397 1 files changed, 13 insertions(+), 13 deletions(-) 3398 3399commit fb6de82a906cb1a5e6df433150d99c64d4bbbeaf 3400Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3401Date: Fri Aug 10 12:11:23 2007 +0000 3402 3403 Whitespace police. 3404 3405 src/preludedb-path-selection.c | 224 ++++++++++++++++++++-------------------- 3406 1 files changed, 112 insertions(+), 112 deletions(-) 3407 3408commit bd051d68e4895906fa28c0f9f0a76a24f4778686 3409Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3410Date: Fri Jul 6 15:41:52 2007 +0000 3411 3412 Add mising docs/manpages/Makefile.am. 3413 3414 docs/manpages/Makefile.am | 1 + 3415 1 files changed, 1 insertions(+), 0 deletions(-) 3416 3417commit a6b13a54504530ab60dfeb4ba1fef7cc7ead51b6 3418Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3419Date: Fri Jul 6 15:41:30 2007 +0000 3420 3421 Update. 3422 3423 gtk-doc.make | 8 ++++---- 3424 1 files changed, 4 insertions(+), 4 deletions(-) 3425 3426commit b899bf33967f84d03da08a50ef81619a8bcff983 3427Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3428Date: Sat Jun 9 07:29:13 2007 +0000 3429 3430 preludedb-admin manpage, by Pierre Chifflier <chifflier@inl.fr> (fix #230). 3431 3432 configure.in | 1 + 3433 docs/Makefile.am | 2 +- 3434 docs/manpages/preludedb-admin.1 | 93 +++++++++++++++++++++++++++++++++++++++ 3435 3 files changed, 95 insertions(+), 1 deletions(-) 3436 3437commit 85824ce61165b4452f0a05fd84991a1740f20cb7 3438Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3439Date: Sat Jun 9 07:28:59 2007 +0000 3440 3441 Whitespace police. 3442 3443 src/include/preludedb.h | 32 +++--- 3444 src/preludedb.c | 332 +++++++++++++++++++++++----------------------- 3445 2 files changed, 182 insertions(+), 182 deletions(-) 3446 3447commit fc001483e8dbcc852b28823486fd3ebba77b9557 3448Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3449Date: Thu Jun 7 09:19:06 2007 +0000 3450 3451 Fix sqlite-update-14-5.sql, thanks to Pierre Chifflier <chifflier@inl.fr>. 3452 3453 plugins/format/classic/sqlite-update-14-5.sql | 2 +- 3454 1 files changed, 1 insertions(+), 1 deletions(-) 3455 3456commit 25bfcb95c932628620a84231ee0040a1c92f14ed 3457Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3458Date: Wed Jun 6 12:48:29 2007 +0000 3459 3460 Speedup / simplify PostgreSQL update, although this require newer PgSQL version. 3461 3462 plugins/format/classic/pgsql-update-14-6.sql | 28 ++++--------------------- 3463 1 files changed, 5 insertions(+), 23 deletions(-) 3464 3465commit ed003665ff18555160aa94913688e5509e48a948 3466Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3467Date: Tue Jun 5 11:30:32 2007 +0000 3468 3469 Fix multiple preludedb-admin issues 3470 3471 All command now take a type argument (value should be alert or heartbeat), 3472 This is done to have a coherent implementation of the --offset and --count options. 3473 3474 Fix --offset with the load command. 3475 3476 Whitespace police. 3477 3478 preludedb-admin.c | 509 +++++++++++++++++++++++++---------------------------- 3479 1 files changed, 244 insertions(+), 265 deletions(-) 3480 3481commit d743859eea4ecc13e9df5e013903ca584907fa0a 3482Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3483Date: Tue Jun 5 08:08:50 2007 +0000 3484 3485 Revert to schema version 14.6, which is not yet released (we 3486 previously bumped to 14.7 - that was not needed). 3487 3488 plugins/format/classic/classic.c | 2 +- 3489 plugins/format/classic/mysql.sql | 2 +- 3490 plugins/format/classic/pgsql-update-14-6.sql | 35 ++++++++++++++++++++++++ 3491 plugins/format/classic/pgsql-update-14-7.sql | 37 -------------------------- 3492 plugins/format/classic/pgsql.sql | 2 +- 3493 5 files changed, 38 insertions(+), 40 deletions(-) 3494 3495commit 319218d78ceef35bc1216b2c31850c752c14e977 3496Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3497Date: Sat May 26 06:28:43 2007 +0000 3498 3499 Patch by Pierre Chifflier <chifflier@inl.fr>, fixing 3500 type conversions preventing PostgreSQL to use indexes (fix #225). 3501 3502 Additionally, update schema version number to 14.7. 3503 3504 plugins/format/classic/classic.c | 2 +- 3505 plugins/format/classic/mysql.sql | 2 +- 3506 plugins/format/classic/mysql2pgsql.sh | 2 +- 3507 plugins/format/classic/pgsql-update-14-7.sql | 37 ++++++++++++++ 3508 plugins/format/classic/pgsql.sql | 70 +++++++++++++------------- 3509 5 files changed, 75 insertions(+), 38 deletions(-) 3510 3511commit bec7116b56f776fde6e391e8cfba8f8f481a0c68 3512Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3513Date: Tue May 22 08:49:35 2007 +0000 3514 3515 Fix compilation on system without ENOTSUP (fix #227): 3516 Include modified patch from Alexandre Anriot <aanriot@atlantilde.com>. 3517 3518 src/preludedb-plugin-sql.c | 5 +++++ 3519 1 files changed, 5 insertions(+), 0 deletions(-) 3520 3521commit 2448e136849fb5f6f8c595a9fa5e865d16cf6d8b 3522Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3523Date: Tue May 22 08:49:32 2007 +0000 3524 3525 More warnings. 3526 3527 configure.in | 2 ++ 3528 1 files changed, 2 insertions(+), 0 deletions(-) 3529 3530commit e9e8ff515ea1ecbf7c3cea755f3176db11ebae81 3531Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3532Date: Tue May 22 08:49:27 2007 +0000 3533 3534 Slight optimisation: cache path count. 3535 3536 src/preludedb-path-selection.c | 11 ++++------- 3537 1 files changed, 4 insertions(+), 7 deletions(-) 3538 3539commit ac660eef3e3210b16f3c6d8307606483ff2ca67a 3540Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3541Date: Wed May 2 12:55:55 2007 +0000 3542 3543 Fix column name. 3544 3545 plugins/format/classic/pgsql-update-14-6.sql | 4 ++-- 3546 1 files changed, 2 insertions(+), 2 deletions(-) 3547 3548commit 58e2045b5acc6c46fcabe635573d86f33ffb587a 3549Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3550Date: Wed May 2 12:37:06 2007 +0000 3551 3552 Track change in pgsql/sqlite. 3553 3554 plugins/format/classic/pgsql.sql | 522 +++++++++++++++++++++++++++++++++++++ 3555 plugins/format/classic/sqlite.sql | 485 ++++++++++++++++++++++++++++++++++ 3556 2 files changed, 1007 insertions(+), 0 deletions(-) 3557 3558commit 4792353ab6bf8d1c7363bfab15d60537c99ea620 3559Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3560Date: Wed May 2 12:36:59 2007 +0000 3561 3562 Bump schema version. Source and Target now use a 16 bits index (required for CorrelationAlert with large number of source/target). Correlation alert now use a 32 bits index (required to link large number of Alert together). 3563 3564 plugins/format/classic/Makefile.am | 5 ++- 3565 plugins/format/classic/classic.c | 2 +- 3566 plugins/format/classic/mysql-update-14-6.sql | 29 ++++++++++++++++- 3567 plugins/format/classic/mysql.sql | 44 +++++++++++++------------- 3568 plugins/format/classic/pgsql-update-14-6.sql | 25 ++++++++++++++ 3569 5 files changed, 80 insertions(+), 25 deletions(-) 3570 3571commit 236f78baa6c025df292fa1c4a03364da6c3d8369 3572Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3573Date: Wed May 2 12:36:52 2007 +0000 3574 3575 Fix some convertion. 3576 3577 plugins/format/classic/mysql-update-14-6.sql | 2 ++ 3578 plugins/format/classic/mysql2pgsql.sh | 6 +++--- 3579 plugins/format/classic/pgsql-update-14-6.sql | 9 +++++++++ 3580 plugins/format/classic/sqlite-update-14-6.sql | 1 + 3581 4 files changed, 15 insertions(+), 3 deletions(-) 3582 3583commit 974734120dc70c7133ee23681a5b75eb079446fc 3584Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3585Date: Sat Apr 14 10:42:35 2007 +0000 3586 3587 Module path migration: move /trunk/libpreludedb /libpreludedb/trunk 3588 3589commit 9c3a46a4f8c46de0756530a2254070ee47bec47e 3590Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3591Date: Sat Mar 17 15:19:38 2007 +0000 3592 3593 Update NEWS, doc. Bump version number. 3594 3595 NEWS | 25 ++++++++++++++++++++++++- 3596 configure.in | 4 ++-- 3597 docs/api/libpreludedb-decl.txt | 4 ++-- 3598 3 files changed, 28 insertions(+), 5 deletions(-) 3599 3600commit eeba8ab0f098497f1c0e197d67f2cf7590588daf 3601Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3602Date: Sat Mar 17 12:11:46 2007 +0000 3603 3604 Update GnuLib code. 3605 3606 libmissing/Makefile.am | 79 ++++++- 3607 libmissing/dummy.c | 16 ++- 3608 libmissing/m4/gnulib-comp.m4 | 15 +- 3609 libmissing/m4/minmax.m4 | 41 ---- 3610 libmissing/m4/snprintf.m4 | 24 ++- 3611 libmissing/m4/stdio_h.m4 | 43 ++++ 3612 libmissing/m4/string_h.m4 | 46 ++-- 3613 libmissing/m4/time_h.m4 | 76 +++++++ 3614 libmissing/m4/time_r.m4 | 10 +- 3615 libmissing/m4/vasnprintf.m4 | 31 ++- 3616 libmissing/m4/vsnprintf.m4 | 24 ++- 3617 libmissing/minmax.h | 60 ----- 3618 libmissing/snprintf.c | 7 +- 3619 libmissing/stdio_.h | 192 ++++++++++++++++ 3620 libmissing/string_.h | 183 +++++++++++----- 3621 libmissing/time_.h | 107 +++++++++ 3622 libmissing/time_r.c | 4 +- 3623 libmissing/time_r.h | 52 ----- 3624 libmissing/vasnprintf.c | 512 +++++++++++++++++++++++++++++++++++++++++- 3625 libmissing/vasnprintf.h | 10 +- 3626 libmissing/vsnprintf.c | 7 +- 3627 libmissing/vsnprintf.h | 31 --- 3628 src/include/libmissing.h | 5 +- 3629 23 files changed, 1263 insertions(+), 312 deletions(-) 3630 3631commit e32aa1966c56621a5f7e41e621200fa03efc546b 3632Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3633Date: Sat Mar 17 10:33:39 2007 +0000 3634 3635 Patch from Rob Holand <rob@inversepath.com>: The \? and + syntax for sed is not supported using "basic regular expressions" on at least Darwin and 3636 DragonFly BSD (I didn't test other OS). You can use the \{0,1\} and \{1,\} syntax to achieve the desired result. 3637 3638 plugins/format/classic/mysql2pgsql.sh | 6 +++--- 3639 plugins/format/classic/mysql2sqlite.sh | 6 +++--- 3640 2 files changed, 6 insertions(+), 6 deletions(-) 3641 3642commit 233cafa668d343dd32259176b5dda174b0710884 3643Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3644Date: Sat Mar 17 09:43:43 2007 +0000 3645 3646 Fix a field shift bug that happened after trying to retrieve an empty time field. 3647 3648 plugins/format/classic/classic.c | 14 +++++++++----- 3649 1 files changed, 9 insertions(+), 5 deletions(-) 3650 3651commit e5a5f68f5536a6cd908a12f218e972eab215d019 3652Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3653Date: Fri Mar 16 18:06:58 2007 +0000 3654 3655 Handle case-insensitive regex using lower(). 3656 3657 plugins/sql/sqlite3/sqlite3.c | 3 +++ 3658 1 files changed, 3 insertions(+), 0 deletions(-) 3659 3660commit 86baa2c01b3a5d5950072f1ed41a02d4bdcfa1b5 3661Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3662Date: Fri Mar 16 16:53:40 2007 +0000 3663 3664 Function declaration fix. 3665 3666 src/include/preludedb-path-selection.h | 2 +- 3667 src/preludedb-path-selection.c | 2 +- 3668 2 files changed, 2 insertions(+), 2 deletions(-) 3669 3670commit 692b7c3f48d0c259362b1d676dc667518c7598cd 3671Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3672Date: Fri Mar 16 16:46:23 2007 +0000 3673 3674 Check format string if the compiler support it. 3675 3676 src/include/preludedb-sql.h | 21 +++++++++++++++++++-- 3677 1 files changed, 19 insertions(+), 2 deletions(-) 3678 3679commit b9eb4f22eb3d335cee5c0b40c251024339c9914a 3680Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3681Date: Fri Mar 16 16:45:21 2007 +0000 3682 3683 When a given SQL function is not implemented by the driver, return an error with the missing function. 3684 3685 src/preludedb-plugin-sql.c | 19 +++++++++++++++++++ 3686 1 files changed, 19 insertions(+), 0 deletions(-) 3687 3688commit 16f070a0d73aca17908a6cedb223e8aa9065694b 3689Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3690Date: Fri Mar 16 16:44:00 2007 +0000 3691 3692 Doc update. 3693 3694 src/preludedb.c | 4 ++-- 3695 1 files changed, 2 insertions(+), 2 deletions(-) 3696 3697commit 587487f8c06ff2c1b2ccfdf3c873e73b1fa51332 3698Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3699Date: Fri Mar 16 16:43:29 2007 +0000 3700 3701 Make preludedb_sql_query() return the number of rows instead of 1. Ability to build LIKE value from AdditionalData. 3702 3703 src/preludedb-sql.c | 41 ++++++++++++++++++++++++++++++----------- 3704 1 files changed, 30 insertions(+), 11 deletions(-) 3705 3706commit 5ed6913e069157161ec0c47ceb34b6728d25fe81 3707Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3708Date: Fri Mar 16 15:56:18 2007 +0000 3709 3710 Implement loading of multiple file. Improved error/information reporting. 3711 3712 preludedb-admin.c | 117 ++++++++++++++++++++++++++++------------------------ 3713 1 files changed, 63 insertions(+), 54 deletions(-) 3714 3715commit 9884dc61ed4f2c7c09b67b4967b20decf28bc8a0 3716Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3717Date: Fri Mar 16 14:47:14 2007 +0000 3718 3719 Implement Python only preludedb_get_values2, preludedb_get_heartbeat_idents2, preludedb_get_alert_idents2. Return rows and number of rows in a tupple. 3720 3721 bindings/libpreludedb_python.i | 102 ++++++++++++++++++++++++++++++++++++++++ 3722 1 files changed, 102 insertions(+), 0 deletions(-) 3723 3724commit 628ee985fbe60fd65ccb2ace5ffb230a17dfdc23 3725Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3726Date: Fri Mar 16 11:08:30 2007 +0000 3727 3728 Fix insertion issue for ProcessArg and File Linkage. 3729 3730 plugins/format/classic/classic-insert.c | 6 +++--- 3731 1 files changed, 3 insertions(+), 3 deletions(-) 3732 3733commit 94f707c8d9d3f001470ff4e2b7b9d584d655ffe2 3734Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3735Date: Tue Mar 6 21:09:53 2007 +0000 3736 3737 Fix error handling. 3738 3739 plugins/format/classic/classic-get.c | 28 ++++++++++++++-------------- 3740 1 files changed, 14 insertions(+), 14 deletions(-) 3741 3742commit 39de088c79b43d615b28fbc84968ef6f2a13574a 3743Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3744Date: Mon Feb 19 10:27:33 2007 +0000 3745 3746 Make sure we have an exception to process. This fix a crash with Python bindings upon signal reception. Fix #200. 3747 3748 bindings/libpreludedb_python.i | 6 ++++-- 3749 1 files changed, 4 insertions(+), 2 deletions(-) 3750 3751commit 75c1e95ff7cabb3cb3a69d1f73065ac247317465 3752Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3753Date: Wed Feb 7 16:05:04 2007 +0000 3754 3755 Update NEWS. Bump version number. 3756 3757 NEWS | 7 +++++++ 3758 configure.in | 2 +- 3759 2 files changed, 8 insertions(+), 1 deletions(-) 3760 3761commit 3e052759eaf9d58aa89ab823d78f04792930ad73 3762Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3763Date: Wed Feb 7 14:29:00 2007 +0000 3764 3765 Update GnuLib code. 3766 3767 libmissing/Makefile.am | 64 +++++- 3768 libmissing/m4/absolute-header.m4 | 44 ++++ 3769 libmissing/m4/gnulib-common.m4 | 22 ++ 3770 libmissing/m4/gnulib-comp.m4 | 38 +--- 3771 libmissing/m4/strdup.m4 | 11 +- 3772 libmissing/m4/string_h.m4 | 80 +++++++ 3773 libmissing/m4/strndup.m4 | 9 +- 3774 libmissing/m4/strnlen.m4 | 14 +- 3775 libmissing/m4/wint_t.m4 | 14 +- 3776 libmissing/printf-args.c | 12 +- 3777 libmissing/printf-args.h | 26 +- 3778 libmissing/printf-parse.c | 20 +- 3779 libmissing/strdup.c | 8 +- 3780 libmissing/strdup.h | 39 ---- 3781 libmissing/string_.h | 467 ++++++++++++++++++++++++++++++++++++++ 3782 libmissing/strndup.c | 8 +- 3783 libmissing/strndup.h | 32 --- 3784 libmissing/strnlen.c | 4 +- 3785 libmissing/strnlen.h | 32 --- 3786 libmissing/vasnprintf.c | 36 ++-- 3787 src/include/libmissing.h | 3 +- 3788 21 files changed, 775 insertions(+), 208 deletions(-) 3789 3790commit f9979f90421296d3de515cc53fab5f81171c9ae4 3791Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3792Date: Wed Feb 7 14:28:33 2007 +0000 3793 3794 Correct libmissing inclusion path. 3795 3796 plugins/format/classic/Makefile.am | 2 +- 3797 plugins/sql/mysql/Makefile.am | 4 ++-- 3798 plugins/sql/pgsql/Makefile.am | 2 +- 3799 plugins/sql/sqlite3/Makefile.am | 2 +- 3800 src/Makefile.am | 2 +- 3801 5 files changed, 6 insertions(+), 6 deletions(-) 3802 3803commit 27140a6978a450a47ed08417b312e9fc0207d95a 3804Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3805Date: Wed Feb 7 14:12:13 2007 +0000 3806 3807 Fix copy / move operation. 3808 3809 preludedb-admin.c | 22 ++++++++++++---------- 3810 1 files changed, 12 insertions(+), 10 deletions(-) 3811 3812commit 1fb11c35ae460d91178163133d70b74bb75c4382 3813Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3814Date: Wed Feb 7 14:07:55 2007 +0000 3815 3816 Fix possible NULL free(). 3817 3818 plugins/sql/sqlite3/sqlite3.c | 6 ++++-- 3819 1 files changed, 4 insertions(+), 2 deletions(-) 3820 3821commit 24db0addb87a48c214d74d03ebbc3ca837ad9e6e 3822Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3823Date: Mon Jan 8 13:34:28 2007 +0000 3824 3825 Version bump. 3826 3827 NEWS | 7 ++++++- 3828 configure.in | 2 +- 3829 2 files changed, 7 insertions(+), 2 deletions(-) 3830 3831commit beb163f8a1c816f7ac865999bc9f11bc99c1d9f7 3832Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3833Date: Mon Jan 8 13:23:53 2007 +0000 3834 3835 Fix make installation error when Perl bindings are disabled. 3836 3837 bindings/Makefile.am | 2 +- 3838 1 files changed, 1 insertions(+), 1 deletions(-) 3839 3840commit 4273738e9ec2999ec003a07b2952b5dcc815d8d8 3841Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3842Date: Fri Jan 5 17:20:54 2007 +0000 3843 3844 Forgot to update NEWS. 3845 3846 NEWS | 16 ++++++++++++++++ 3847 1 files changed, 16 insertions(+), 0 deletions(-) 3848 3849commit 3dd55f6b5dc11f6742b3b0b851e2021d43d2d531 3850Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3851Date: Fri Jan 5 17:17:17 2007 +0000 3852 3853 Update NEWS, documentation, Gnulib code. Bump version number. 3854 3855 configure.in | 4 ++-- 3856 libmissing/Makefile.am | 2 +- 3857 libmissing/m4/gnulib-cache.m4 | 2 +- 3858 libmissing/m4/gnulib-comp.m4 | 28 +++++++++++++++++++++++++++- 3859 4 files changed, 31 insertions(+), 5 deletions(-) 3860 3861commit fb67aaece41e17d4c89bbba6833f5ccc5de4a814 3862Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3863Date: Fri Jan 5 17:13:28 2007 +0000 3864 3865 Fix make -j compilation. New configure --with-perl-installdirs flags: might be used to override default site perl installation. 3866 3867 bindings/Makefile.am | 34 +++++++++++++++------------------- 3868 configure.in | 14 ++++++++++++++ 3869 2 files changed, 29 insertions(+), 19 deletions(-) 3870 3871commit d1ba937f985dc5d3fb83215bb50173ae7e0a6ecc 3872Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3873Date: Thu Jan 4 21:46:18 2007 +0000 3874 3875 Small definition fix. 3876 3877 plugins/sql/mysql/mysql.c | 2 +- 3878 1 files changed, 1 insertions(+), 1 deletions(-) 3879 3880commit 148e166757b9a940a49c7ad95cfec7d55600391f 3881Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3882Date: Sat Dec 30 14:57:31 2006 +0000 3883 3884 Ignore inline keyword to prevent error with old SWIG version. Prevent preludedb_error_t redefinition error. 3885 3886 bindings/libpreludedb.i | 3 +++ 3887 docs/api/libpreludedb-decl.txt | 10 +--------- 3888 docs/api/libpreludedb-sections.txt | 1 - 3889 docs/api/tmpl/libpreludedb-unused.sgml | 9 +++++++++ 3890 docs/api/tmpl/preludedb-sql.sgml | 9 --------- 3891 5 files changed, 13 insertions(+), 19 deletions(-) 3892 3893commit 8af470fac935adb497737f19b4b2761790b6c6da 3894Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3895Date: Fri Dec 29 12:51:17 2006 +0000 3896 3897 Ooops. 3898 3899 src/preludedb-sql.c | 4 ++-- 3900 1 files changed, 2 insertions(+), 2 deletions(-) 3901 3902commit d9dacbd965b7de5ff8ccddd1fc3890115918144b 3903Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3904Date: Fri Dec 29 12:46:24 2006 +0000 3905 3906 Make preludedb_sql_status_t a private bitfield, so that we can store multiple state. 3907 x 3908 3909 src/include/preludedb-sql.h | 8 +---- 3910 src/preludedb-sql.c | 73 +++++++++++++++++++++++-------------------- 3911 2 files changed, 40 insertions(+), 41 deletions(-) 3912 3913commit 7e21c2819b1f6acd6c01cd7d9d191f0e0d385d93 3914Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3915Date: Fri Dec 29 12:43:59 2006 +0000 3916 3917 Generate bindings for the error handling API. 3918 3919 bindings/libpreludedb.i | 5 +---- 3920 1 files changed, 1 insertions(+), 4 deletions(-) 3921 3922commit 18067e6413e7a22732f5fefec5d7cd402bce4cad 3923Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3924Date: Wed Dec 27 12:44:15 2006 +0000 3925 3926 Don't duplicate call to update_sql_from_errno() and assert_connected, for function which call preludedb_sql_query() and preludedb_sql_escape(). 3927 3928 src/preludedb-sql.c | 32 +++++++------------------------- 3929 1 files changed, 7 insertions(+), 25 deletions(-) 3930 3931commit de8f023ea8897cb8630d7e0fe329ac36ea6aaa23 3932Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3933Date: Tue Dec 26 14:29:12 2006 +0000 3934 3935 Fix possible memory leak on query error with transaction enabled. In case ROLLBACK fail, provide the original error as well as the ROLLBACK error. 3936 3937 src/preludedb-sql.c | 17 +++++++++-------- 3938 1 files changed, 9 insertions(+), 8 deletions(-) 3939 3940commit de9b8d30a4f31d787dea92735ff748e190ed8f8c 3941Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3942Date: Thu Dec 21 09:06:38 2006 +0000 3943 3944 Small Perl/Python detection improvement. Fix #182. 3945 3946 configure.in | 19 +++++++++++++------ 3947 1 files changed, 13 insertions(+), 6 deletions(-) 3948 3949commit 1b51637e71ba5df2856b1ed30b61746b00e54daa 3950Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3951Date: Wed Dec 20 20:33:59 2006 +0000 3952 3953 Update GnuLib code, NEWS, documentation. Version bump. 3954 3955 NEWS | 13 +++++++++++++ 3956 configure.in | 4 ++-- 3957 docs/api/libpreludedb-decl.txt | 2 +- 3958 libmissing/strdup.h | 12 +++++++++++- 3959 4 files changed, 27 insertions(+), 4 deletions(-) 3960 3961commit b290f98e0c647b9fe122102bb35610805e986b2e 3962Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3963Date: Wed Dec 20 17:50:06 2006 +0000 3964 3965 Enable -no-cpp-precomp on Dawin. Add a few check. 3966 3967 configure.in | 29 +++++++++++++++++++++++++++++ 3968 1 files changed, 29 insertions(+), 0 deletions(-) 3969 3970commit b2f3d48b5264f09522b0bef3b08f58abf56beed3 3971Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3972Date: Wed Dec 20 17:49:19 2006 +0000 3973 3974 Remove deprecated, unportable inttypes.h inclusion. Fixe time.h inclusion. 3975 3976 plugins/format/classic/classic-delete.c | 2 -- 3977 plugins/format/classic/classic-get.c | 1 - 3978 plugins/format/classic/classic-insert.c | 1 - 3979 plugins/format/classic/classic.c | 1 - 3980 plugins/sql/mysql/mysql.c | 2 -- 3981 plugins/sql/pgsql/pgsql.c | 2 -- 3982 plugins/sql/sqlite3/sqlite3.c | 1 - 3983 src/preludedb-sql.c | 14 +++++++++++--- 3984 src/preludedb.c | 1 - 3985 9 files changed, 11 insertions(+), 14 deletions(-) 3986 3987commit f1c0cdab056419c81caaafeacc7e462171daa807 3988Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3989Date: Sun Dec 17 10:08:23 2006 +0000 3990 3991 Missing regexp include (no longer included from libmissing). 3992 3993 plugins/sql/sqlite3/sqlite3.c | 1 + 3994 1 files changed, 1 insertions(+), 0 deletions(-) 3995 3996commit 3209101d8ba4210de0ffee8951ee4d6f4b24928e 3997Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 3998Date: Sun Dec 17 10:05:42 2006 +0000 3999 4000 Update. 4001 4002 src/include/libmissing.h | 17 ----------------- 4003 1 files changed, 0 insertions(+), 17 deletions(-) 4004 4005commit 350d4d472fa855efd29402990f2c86f53ddd5c3f 4006Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4007Date: Sun Dec 17 09:57:09 2006 +0000 4008 4009 Update GnuLib code, remove un-needed dependencies. 4010 4011 libmissing/Makefile.am | 164 +- 4012 libmissing/alloca.c | 489 ----- 4013 libmissing/dummy.c | 30 + 4014 libmissing/gettext.h | 242 --- 4015 libmissing/m4/absolute-header.m4 | 44 - 4016 libmissing/m4/alloca.m4 | 28 +- 4017 libmissing/m4/codeset.m4 | 21 - 4018 libmissing/m4/eoverflow.m4 | 12 +- 4019 libmissing/m4/extensions.m4 | 64 +- 4020 libmissing/m4/gnulib-cache.m4 | 4 +- 4021 libmissing/m4/gnulib-comp.m4 | 87 +- 4022 libmissing/m4/longlong.m4 | 32 +- 4023 libmissing/m4/mbchar.m4 | 23 - 4024 libmissing/m4/mbiter.m4 | 17 - 4025 libmissing/m4/mbrtowc.m4 | 31 - 4026 libmissing/m4/memchr.m4 | 18 - 4027 libmissing/m4/regex.m4 | 199 -- 4028 libmissing/m4/signed.m4 | 18 - 4029 libmissing/m4/size_max.m4 | 76 +- 4030 libmissing/m4/ssize_t.m4 | 21 - 4031 libmissing/m4/stdbool.m4 | 115 - 4032 libmissing/m4/stdint.m4 | 361 ---- 4033 libmissing/m4/strcase.m4 | 39 - 4034 libmissing/m4/vasnprintf.m4 | 11 +- 4035 libmissing/m4/wcwidth.m4 | 30 - 4036 libmissing/malloc.c | 35 - 4037 libmissing/mbchar.c | 36 - 4038 libmissing/mbchar.h | 478 ----- 4039 libmissing/mbuiter.h | 203 -- 4040 libmissing/memchr.c | 201 -- 4041 libmissing/printf-args.c | 4 +- 4042 libmissing/printf-args.h | 10 +- 4043 libmissing/printf-parse.c | 25 +- 4044 libmissing/regcomp.c | 3858 --------------------------------- 4045 libmissing/regex.c | 71 - 4046 libmissing/regex.h | 668 ------ 4047 libmissing/regex_internal.c | 1742 --------------- 4048 libmissing/regex_internal.h | 865 -------- 4049 libmissing/regexec.c | 4398 -------------------------------------- 4050 libmissing/stdbool_.h | 115 - 4051 libmissing/stdint_.h | 456 ---- 4052 libmissing/strcase.h | 48 - 4053 libmissing/strcasecmp.c | 103 - 4054 libmissing/strdup.c | 4 +- 4055 libmissing/strncasecmp.c | 63 - 4056 libmissing/strnlen1.c | 36 - 4057 libmissing/strnlen1.h | 40 - 4058 libmissing/vasnprintf.c | 12 +- 4059 libmissing/wcwidth.h | 77 - 4060 49 files changed, 296 insertions(+), 15428 deletions(-) 4061 4062commit b39e98fab3d6cffdf4fa394c555515fa45518141 4063Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4064Date: Sun Dec 17 08:25:59 2006 +0000 4065 4066 Map ssize_t to avoid a memory leak when calling preludedb_delete_alert|heartbeat_from_list(). 4067 4068 bindings/libpreludedb_python.i | 15 +++++++++++++++ 4069 1 files changed, 15 insertions(+), 0 deletions(-) 4070 4071commit 3f8160f25830ffb898a8b05a67540d7e2453ff11 4072Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4073Date: Mon Nov 13 17:18:38 2006 +0000 4074 4075 Print the filename... Not the file descriptor. 4076 4077 src/preludedb-sql.c | 2 +- 4078 1 files changed, 1 insertions(+), 1 deletions(-) 4079 4080commit 339f49816abc4f2f1a5c11b87d86c5c0f86573ac 4081Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4082Date: Fri Oct 27 16:30:55 2006 +0000 4083 4084 Apply modified patch from Alexandre Anriot <aanriot@atlantilde.com>: avoid using GNU sed extension. 4085 4086 plugins/format/classic/mysql2sqlite.sh | 2 +- 4087 1 files changed, 1 insertions(+), 1 deletions(-) 4088 4089commit 4663eed4708290fc68f9233efd750ab60148571a 4090Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4091Date: Fri Oct 6 13:56:03 2006 +0000 4092 4093 Update NEWS, documentation. Version bump. 4094 4095 NEWS | 9 +++ 4096 configure.in | 4 +- 4097 docs/api/libpreludedb-decl.txt | 6 +- 4098 docs/api/libpreludedb-sections.txt | 12 ++++ 4099 docs/api/tmpl/preludedb-plugin-format.sgml | 78 ++++++++++++++++++++++++++++ 4100 docs/api/tmpl/preludedb.sgml | 42 +++++++++++++++ 4101 6 files changed, 146 insertions(+), 5 deletions(-) 4102 4103commit 6efd5200706e5448c32ae3c3217ee4fa3593d9c5 4104Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4105Date: Thu Oct 5 15:41:42 2006 +0000 4106 4107 Fix parameter name. 4108 4109 src/include/preludedb.h | 4 ++-- 4110 1 files changed, 2 insertions(+), 2 deletions(-) 4111 4112commit 71d0d2ebf9e37bc6b1c56c2c49bff83a5e00059e 4113Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4114Date: Thu Oct 5 12:34:12 2006 +0000 4115 4116 Update gnulib code. 4117 4118 libmissing/Makefile.am | 79 ++++++- 4119 libmissing/alloca.c | 4 +- 4120 libmissing/asnprintf.c | 6 +- 4121 libmissing/m4/absolute-header.m4 | 44 ++++ 4122 libmissing/m4/codeset.m4 | 6 +- 4123 libmissing/m4/extensions.m4 | 42 ++-- 4124 libmissing/m4/gnulib-cache.m4 | 2 + 4125 libmissing/m4/gnulib-comp.m4 | 6 + 4126 libmissing/m4/intmax_t.m4 | 6 +- 4127 libmissing/m4/inttypes_h.m4 | 6 +- 4128 libmissing/m4/longlong.m4 | 6 +- 4129 libmissing/m4/mbchar.m4 | 13 +- 4130 libmissing/m4/regex.m4 | 38 +++- 4131 libmissing/m4/restrict.m4 | 38 ---- 4132 libmissing/m4/signed.m4 | 7 +- 4133 libmissing/m4/stdint.m4 | 361 ++++++++++++++++++++++++++++++ 4134 libmissing/m4/stdint_h.m4 | 6 +- 4135 libmissing/m4/strdup.m4 | 6 +- 4136 libmissing/m4/strndup.m4 | 9 +- 4137 libmissing/m4/strnlen.m4 | 6 +- 4138 libmissing/m4/time_r.m4 | 4 +- 4139 libmissing/malloc.c | 7 +- 4140 libmissing/mbchar.c | 6 +- 4141 libmissing/mbchar.h | 5 +- 4142 libmissing/memchr.c | 4 +- 4143 libmissing/printf-args.c | 4 +- 4144 libmissing/printf-parse.c | 6 +- 4145 libmissing/regex.c | 4 +- 4146 libmissing/regex_internal.c | 121 ++++++++-- 4147 libmissing/regex_internal.h | 4 +- 4148 libmissing/snprintf.c | 14 +- 4149 libmissing/stdint_.h | 456 ++++++++++++++++++++++++++++++++++++++ 4150 libmissing/strcasecmp.c | 6 +- 4151 libmissing/strdup.c | 9 +- 4152 libmissing/strncasecmp.c | 6 +- 4153 libmissing/strndup.c | 43 +--- 4154 libmissing/strndup.h | 20 +- 4155 libmissing/strnlen.c | 4 +- 4156 libmissing/strnlen1.c | 23 +- 4157 libmissing/strnlen1.h | 17 +- 4158 libmissing/time_r.c | 4 +- 4159 libmissing/vasnprintf.c | 26 +-- 4160 libmissing/vsnprintf.c | 35 +++- 4161 src/include/libmissing.h | 21 +- 4162 44 files changed, 1241 insertions(+), 299 deletions(-) 4163 4164commit 89d3a6ab6ee431d2cd53e7c2474cf5963d574b4d 4165Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4166Date: Tue Sep 12 10:27:23 2006 +0000 4167 4168 plugins/format/classic/pgsql-update-14-5.sql | 2 -- 4169 1 files changed, 0 insertions(+), 2 deletions(-) 4170 4171commit 29a07e230a454ac16e90867469bb6f9f8cb4f2b7 4172Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4173Date: Mon Sep 11 15:08:33 2006 +0000 4174 4175 Only export symbol starting with preludedb_ 4176 4177 src/Makefile.am | 7 ++++++- 4178 1 files changed, 6 insertions(+), 1 deletions(-) 4179 4180commit 79a89b8be6c765c9ba88287f0594073db2df22ef 4181Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4182Date: Mon Sep 11 15:07:36 2006 +0000 4183 4184 Verbose error reporting in case of libpreludedb initialization failure. 4185 4186 preludedb-admin.c | 10 ++++++---- 4187 1 files changed, 6 insertions(+), 4 deletions(-) 4188 4189commit c0d95b6fb1c51119c5b8bf1ca6894a5b0261b588 4190Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4191Date: Fri Aug 11 16:05:22 2006 +0000 4192 4193 Warning fix. 4194 4195 preludedb-admin.c | 8 ++++---- 4196 1 files changed, 4 insertions(+), 4 deletions(-) 4197 4198commit feb50aa0944c9ab52e5f1cd2b245cdead250c97c 4199Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4200Date: Fri Aug 11 15:16:10 2006 +0000 4201 4202 Update documentation, GnuLib code, NEWS. Bump version number. 4203 4204 NEWS | 14 +++ 4205 configure.in | 10 +- 4206 docs/api/libpreludedb-decl.txt | 68 +++++++++++- 4207 docs/api/tmpl/preludedb-plugin-format.sgml | 4 + 4208 gtk-doc.make | 12 +- 4209 libmissing/Makefile.am | 7 +- 4210 libmissing/gettext.h | 166 +++++++++++++++++++++++++++- 4211 libmissing/m4/gnulib-cache.m4 | 3 +- 4212 libmissing/m4/gnulib-comp.m4 | 4 +- 4213 libmissing/m4/mbchar.m4 | 6 +- 4214 libmissing/m4/onceonly_2_57.m4 | 12 +- 4215 libmissing/m4/regex.m4 | 9 +- 4216 libmissing/m4/strndup.m4 | 14 ++- 4217 libmissing/m4/time_r.m4 | 2 +- 4218 libmissing/m4/wcwidth.m4 | 12 ++- 4219 libmissing/mbchar.h | 121 ++++++++++++++++++++ 4220 libmissing/printf-args.c | 10 ++- 4221 libmissing/regex.h | 11 +-- 4222 libmissing/regex_internal.c | 26 +++-- 4223 libmissing/regex_internal.h | 5 +- 4224 libmissing/snprintf.c | 32 ++++-- 4225 libmissing/wcwidth.h | 9 ++- 4226 22 files changed, 486 insertions(+), 71 deletions(-) 4227 4228commit a171c4d9fbb0f62808319e64f8094b5dd5b45243 4229Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4230Date: Fri Aug 11 14:55:49 2006 +0000 4231 4232 Datatype fixes. Error handling fixes. 4233 4234 preludedb-admin.c | 46 ++++++++++++++++++++++++++-------------------- 4235 1 files changed, 26 insertions(+), 20 deletions(-) 4236 4237commit 704a00a5cdbe18735a7c77806711d4e25e43afb8 4238Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4239Date: Fri Aug 11 14:55:09 2006 +0000 4240 4241 Handle empty result idents case. 4242 4243 plugins/format/classic/classic-delete.c | 13 +++++++++---- 4244 1 files changed, 9 insertions(+), 4 deletions(-) 4245 4246commit 1637c78988faef5c486a03f4a9b3b1052b5da4b0 4247Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4248Date: Fri Aug 11 14:54:34 2006 +0000 4249 4250 Return 0 if preludedb_delete_alert|heartbeat_from_list() size argument is 0. 4251 4252 src/preludedb.c | 8 +++++++- 4253 1 files changed, 7 insertions(+), 1 deletions(-) 4254 4255commit 0e03e8b48a7921cc24ca7e23d471beb0f11bb4ac 4256Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4257Date: Fri Aug 11 14:31:53 2006 +0000 4258 4259 Build compatibility fix for SWIG > 1.3.27. 4260 4261 bindings/libpreludedb_python.i | 3 +++ 4262 1 files changed, 3 insertions(+), 0 deletions(-) 4263 4264commit 2c32643ae1655f588e597971c00cd21b339ce86a 4265Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4266Date: Fri Aug 11 13:22:27 2006 +0000 4267 4268 Improved statistic handling. Use preludedb_alert|heartbeat_delete_from_list() to benefit 4269 from list deletion performance improvement. 4270 4271 preludedb-admin.c | 378 +++++++++++++++++++++++++++-------------------------- 4272 1 files changed, 192 insertions(+), 186 deletions(-) 4273 4274commit 1e55c0435e46234d912a53c37beb5c4d912d45a0 4275Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4276Date: Fri Aug 11 13:20:20 2006 +0000 4277 4278 Delete from list function return ssize_t 4279 4280 src/include/preludedb.h | 8 ++++---- 4281 src/preludedb.c | 8 ++++---- 4282 2 files changed, 8 insertions(+), 8 deletions(-) 4283 4284commit fc28ff6d3f8ba6b558f792167a6484f7818c6435 4285Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4286Date: Fri Aug 11 10:11:45 2006 +0000 4287 4288 Code documentation fixes: alert->heartbeat. 4289 4290 src/preludedb.c | 4 ++-- 4291 1 files changed, 2 insertions(+), 2 deletions(-) 4292 4293commit ec82223508786cfa1b9d8a218d4619eae906d73b 4294Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4295Date: Fri Aug 11 09:48:56 2006 +0000 4296 4297 Implement an idea from Lex van Roon <r3boot@r3blog.nl.eu.org> to make it possible 4298 to delete a list of ident in a given table, rather than iterating ident and droping 4299 one ident per table at a time. 4300 4301 This introduce 4 new API function: 4302 - preludedb_delete_alert_from_list() / preludedb_delete_heartbeat_from_list() 4303 - preludedb_delete_alert_from_result_idents() / preludedb_delete_heartbeat_from_result_idents() 4304 4305 Implement workaround to revert to the old implementation in case the format plugin in use does 4306 not export the necessary function. Using these function to delete list of alert/heartbeat increase 4307 delete time by about 3000%. 4308 4309 These functions still need to be hooked in preludedb-admin and prewikka so that the user might 4310 see the deletion performance improvement. 4311 4312 bindings/libpreludedb_python.i | 21 ++ 4313 plugins/format/classic/classic-delete.c | 273 ++++++++++++++++++----- 4314 plugins/format/classic/classic.c | 9 +- 4315 plugins/format/classic/include/classic-delete.h | 8 + 4316 src/include/preludedb-plugin-format-prv.h | 4 + 4317 src/include/preludedb-plugin-format.h | 32 +++- 4318 src/include/preludedb.h | 9 + 4319 src/preludedb-plugin-format.c | 114 ++++++++++ 4320 src/preludedb.c | 65 ++++++- 4321 9 files changed, 478 insertions(+), 57 deletions(-) 4322 4323commit 1865f49bd1f3dd0564cbca7e4e62eaf38638a332 4324Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4325Date: Wed Aug 2 06:25:44 2006 +0000 4326 4327 Fix --with-(perl|python|swig) detection path ordering 4328 4329 configure.in | 6 +++--- 4330 1 files changed, 3 insertions(+), 3 deletions(-) 4331 4332commit 1ee9323a571479d32209d2aa551481475dd26a75 4333Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4334Date: Wed Aug 2 06:18:49 2006 +0000 4335 4336 Coding style fixes. 4337 4338 src/preludedb-sql-settings.c | 5 ++--- 4339 1 files changed, 2 insertions(+), 3 deletions(-) 4340 4341commit 635a916af7e722efdd2a6c8207eeac47bcc6a0be 4342Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4343Date: Wed Aug 2 06:14:35 2006 +0000 4344 4345 Coding styles fixes. Error reporting fixes. 4346 4347 src/preludedb-sql.c | 14 +++++++------- 4348 1 files changed, 7 insertions(+), 7 deletions(-) 4349 4350commit f88a762b86f8f461d4501bcb9ba3cbe710166a88 4351Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4352Date: Wed Aug 2 06:09:13 2006 +0000 4353 4354 Slight optimisations. Improved error reporting. Coding style fixes. 4355 4356 src/preludedb-path-selection.c | 86 +++++++++++++++++---------------------- 4357 1 files changed, 38 insertions(+), 48 deletions(-) 4358 4359commit 3eb7976847fcfb6b6c75db739e5b11a50527970a 4360Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4361Date: Wed Aug 2 05:54:49 2006 +0000 4362 4363 Verbose error reporting on logfile open problem 4364 4365 src/preludedb-sql.c | 3 ++- 4366 1 files changed, 2 insertions(+), 1 deletions(-) 4367 4368commit 3b8a6cd2036807f7c66587567bfd8485a7cd2e8e 4369Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4370Date: Wed Aug 2 05:53:43 2006 +0000 4371 4372 Fix warnings. 4373 4374 plugins/format/classic/classic-insert.c | 3 ++- 4375 plugins/sql/sqlite3/sqlite3.c | 4 ++-- 4376 src/preludedb-plugin-sql.c | 2 +- 4377 3 files changed, 5 insertions(+), 4 deletions(-) 4378 4379commit 55688ef553351d9e209cf5f27d8cb35900dd262f 4380Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4381Date: Thu Jul 27 10:28:40 2006 +0000 4382 4383 Since we don't generate binding for prelude-inttypes, bind prelude_bool_t manually. 4384 4385 bindings/libpreludedb.i | 9 ++++++--- 4386 1 files changed, 6 insertions(+), 3 deletions(-) 4387 4388commit 34a48ccec0934be4230af7b75198ceb38d69b860 4389Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4390Date: Tue Jul 4 08:33:05 2006 +0000 4391 4392 Bump version number, update NEWS/documentation. 4393 4394 NEWS | 5 +++++ 4395 configure.in | 2 +- 4396 docs/api/libpreludedb-decl.txt | 2 +- 4397 3 files changed, 7 insertions(+), 2 deletions(-) 4398 4399commit d81e94a5fccd3f2472edaa3dbc03987464625579 4400Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4401Date: Mon Jul 3 05:53:22 2006 +0000 4402 4403 Update GnuLib code 4404 4405 libmissing/Makefile.am | 15 +++++++++ 4406 libmissing/alloca_.h | 26 ++++++++------- 4407 libmissing/m4/gnulib-comp.m4 | 3 ++ 4408 libmissing/m4/longlong.m4 | 39 ++++++++++++++++++----- 4409 libmissing/m4/size_max.m4 | 45 ++++++++++++++------------- 4410 libmissing/m4/ssize_t.m4 | 21 ++++++++++++ 4411 libmissing/m4/wcwidth.m4 | 26 +++++++++++++++ 4412 libmissing/mbchar.h | 4 ++- 4413 libmissing/size_max.h | 6 +++- 4414 libmissing/wcwidth.h | 70 ++++++++++++++++++++++++++++++++++++++++++ 4415 10 files changed, 210 insertions(+), 45 deletions(-) 4416 4417commit 6fd0a04f4fc4810911208f922c0a836c4f225208 4418Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4419Date: Mon Jul 3 05:52:22 2006 +0000 4420 4421 Patch from Christian Wiese <cw@ixplanet.de>: update MySQL template schema version (fix #159) 4422 4423 plugins/format/classic/mysql.sql | 2 +- 4424 1 files changed, 1 insertions(+), 1 deletions(-) 4425 4426commit a22c0d36c626c52a88f4ee9b0c9b26a70bba1324 4427Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4428Date: Tue Jun 6 08:46:07 2006 +0000 4429 4430 Update GnuLib code, documentation, NEWS. Bump version number. 4431 4432 NEWS | 18 + 4433 configure.in | 4 +- 4434 docs/api/libpreludedb-decl.txt | 2 +- 4435 docs/api/tmpl/preludedb-plugin-sql.sgml | 3 - 4436 libmissing/Makefile.am | 12 +- 4437 libmissing/m4/extensions.m4 | 3 + 4438 libmissing/m4/gnulib-cache.m4 | 3 +- 4439 libmissing/m4/gnulib-comp.m4 | 5 +- 4440 libmissing/m4/longdouble.m4 | 7 +- 4441 libmissing/m4/regex.m4 | 8 +- 4442 libmissing/m4/stdbool.m4 | 4 +- 4443 libmissing/m4/strndup.m4 | 36 ++- 4444 libmissing/m4/time_r.m4 | 3 +- 4445 libmissing/printf-args.c | 21 +- 4446 libmissing/regcomp.c | 627 ++++++++++++++++------------- 4447 libmissing/regex.c | 7 +- 4448 libmissing/regex.h | 500 +++++++++-------------- 4449 libmissing/regex_internal.c | 271 +++++++------ 4450 libmissing/regex_internal.h | 195 ++++------ 4451 libmissing/regexec.c | 669 +++++++++++++++++-------------- 4452 libmissing/strndup.c | 4 +- 4453 21 files changed, 1244 insertions(+), 1158 deletions(-) 4454 4455commit 53af12f93200992ff3a0a32f9f3646fdc437e39c 4456Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4457Date: Tue Jun 6 08:42:36 2006 +0000 4458 4459 Fix pgsql requirement check 4460 4461 configure.in | 2 +- 4462 1 files changed, 1 insertions(+), 1 deletions(-) 4463 4464commit e619b38a332e672c6a3a4cc2e086195752438dd2 4465Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4466Date: Tue Jun 6 08:25:02 2006 +0000 4467 4468 Update requirement, fix sqlite3/pgsql detection 4469 4470 configure.in | 4 +++- 4471 1 files changed, 3 insertions(+), 1 deletions(-) 4472 4473commit a358cd4a30e8082e5a11074084f288c3eacfc49c 4474Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4475Date: Fri Jun 2 08:48:56 2006 +0000 4476 4477 Use --with instead of --enable for activating different component. Sanitisation work 4478 4479 configure.in | 255 +++++++++++++++++++++++++++++---------------------------- 4480 1 files changed, 130 insertions(+), 125 deletions(-) 4481 4482commit 475ba1397aceac1aa59b2c31f0ccf3ecf5b92d1b 4483Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4484Date: Fri Jun 2 07:43:51 2006 +0000 4485 4486 Update libprelude* m4 4487 4488 m4/libprelude.m4 | 6 +++--- 4489 m4/libpreludedb.m4 | 4 ++-- 4490 2 files changed, 5 insertions(+), 5 deletions(-) 4491 4492commit ecdf1c27540e167cbffbfc529dbf0449deba6999 4493Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4494Date: Fri Jun 2 07:38:56 2006 +0000 4495 4496 Add update code for constraint check. 4497 4498 plugins/format/classic/pgsql-update-14-5.sql | 5 ++++- 4499 1 files changed, 4 insertions(+), 1 deletions(-) 4500 4501commit 99caf1902b27a8c31aaaa2e02145a0799c5000cb 4502Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4503Date: Thu Jun 1 15:38:23 2006 +0000 4504 4505 Update for 14-5 4506 4507 plugins/format/classic/Makefile.am | 5 ++++- 4508 1 files changed, 4 insertions(+), 1 deletions(-) 4509 4510commit 583639aab5074e217bbb6272d632392c2dc53c6a 4511Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4512Date: Thu Jun 1 14:49:04 2006 +0000 4513 4514 Some more fixes. 4515 4516 plugins/format/classic/classic-insert.c | 8 ++++++-- 4517 1 files changed, 6 insertions(+), 2 deletions(-) 4518 4519commit d3ea5b1fb281a6975bfd13dd6ed19f096fd72fc6 4520Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4521Date: Thu Jun 1 14:27:04 2006 +0000 4522 4523 Always use prelude_escape_binary() when we're inserting additional data. This is 4524 important even in case we're inserting a string, since the database field might be 4525 of a type that require binary kind of escaping. Fix #143. 4526 4527 plugins/format/classic/classic-insert.c | 31 ++++++++++++------------------- 4528 1 files changed, 12 insertions(+), 19 deletions(-) 4529 4530commit d80cef0ee99a2d1aa29da563fb559b27bbd45295 4531Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4532Date: Thu Jun 1 14:25:23 2006 +0000 4533 4534 Remove deprecated code. 4535 4536 plugins/sql/pgsql/pgsql.c | 16 +++++----------- 4537 1 files changed, 5 insertions(+), 11 deletions(-) 4538 4539commit d84f39edfed8a945fa5ffeeeaddf93387c53e5ec 4540Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4541Date: Wed Apr 26 09:48:30 2006 +0000 4542 4543 PostgreSQL typing fix. 4544 4545 plugins/format/classic/pgsql-update-14-5.sql | 11 +++++++---- 4546 1 files changed, 7 insertions(+), 4 deletions(-) 4547 4548commit 43da98073db04f258b526e677aed87736b146c92 4549Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4550Date: Fri Apr 21 09:13:59 2006 +0000 4551 4552 Update for IDMEFv16 SnmpService class modification. 4553 Fix a bug where Service->ip_version would not be read from database. 4554 4555 plugins/format/classic/classic-get.c | 39 ++++++++++++++++-------- 4556 plugins/format/classic/classic-insert.c | 22 +++++++------ 4557 plugins/format/classic/classic.c | 2 +- 4558 plugins/format/classic/mysql-update-14-5.sql | 6 ++++ 4559 plugins/format/classic/mysql.sql | 4 ++- 4560 plugins/format/classic/pgsql-update-14-5.sql | 6 ++++ 4561 plugins/format/classic/sqlite-update-14-5.sql | 25 ++++++++++++++++ 4562 7 files changed, 79 insertions(+), 25 deletions(-) 4563 4564commit bc89d514ed8354b57a90aa4859019351df8259a4 4565Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4566Date: Wed Apr 19 12:24:13 2006 +0000 4567 4568 Fix warning 4569 4570 plugins/sql/pgsql/pgsql.c | 66 ++++++++++++++++++++++---------------------- 4571 1 files changed, 33 insertions(+), 33 deletions(-) 4572 4573commit 47c08769b528ed3d79e81390196b88f569eaa53c 4574Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4575Date: Mon Apr 10 12:35:12 2006 +0000 4576 4577 Return meaningful error in case of parsing problem. 4578 4579 src/preludedb-sql.c | 2 +- 4580 1 files changed, 1 insertions(+), 1 deletions(-) 4581 4582commit f5aaef0fa5eac6a7ea338bee46c54e1e54e96b48 4583Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4584Date: Mon Apr 10 12:33:15 2006 +0000 4585 4586 Upon connection to the database, set default date style to ISO (SET DATESTYLE TO 'ISO'). 4587 This is needed since libpreludedb assume ISO format to parse database timestamp. 4588 4589 Not doing this resulted in error when trying to read data from postgreSQL database 4590 if the user used specific lc_time setting in postgresql.conf. 4591 4592 Fix #140. 4593 4594 plugins/sql/pgsql/pgsql.c | 2 +- 4595 1 files changed, 1 insertions(+), 1 deletions(-) 4596 4597commit dd6be853e9783e65dce82f7059fd869a4539c290 4598Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4599Date: Thu Mar 30 09:38:51 2006 +0000 4600 4601 Update documentation, Gnulib code. Bump version number. 4602 4603 NEWS | 9 +++++++++ 4604 configure.in | 4 ++-- 4605 docs/api/libpreludedb-decl.txt | 6 +++--- 4606 libmissing/m4/regex.m4 | 36 ++++++++++++++++++------------------ 4607 libmissing/time_r.c | 8 -------- 4608 5 files changed, 32 insertions(+), 31 deletions(-) 4609 4610commit 8a21a148c7c54b9df54ec228293633d50f024d06 4611Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4612Date: Thu Mar 30 09:01:46 2006 +0000 4613 4614 Replace --disable-global-transaction with --events-per-transaction. 4615 Restore global transaction on insert, but add a default global limit of 1000 events 4616 per transaction. 4617 4618 preludedb-admin.c | 83 +++++++++++++++++++++++++++++++++++++++-------------- 4619 1 files changed, 61 insertions(+), 22 deletions(-) 4620 4621commit 4f74c354962082c289b44d17e20cd199468d0c3e 4622Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4623Date: Wed Mar 29 13:38:23 2006 +0000 4624 4625 Formatting tweak. 4626 4627 src/preludedb-sql.c | 1 + 4628 1 files changed, 1 insertions(+), 0 deletions(-) 4629 4630commit c32edbff2852ec900aabd375fd55cc7eef77bc8a 4631Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4632Date: Wed Mar 29 08:47:57 2006 +0000 4633 4634 Flush the log descriptor. 4635 4636 src/preludedb-sql.c | 1 + 4637 1 files changed, 1 insertions(+), 0 deletions(-) 4638 4639commit 18b4ad38a33e207c5a6d42a9827bd5244a91a815 4640Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4641Date: Tue Mar 28 17:25:13 2006 +0000 4642 4643 Disable global transaction on insertion since it might get to heavy on memory. 4644 4645 preludedb-admin.c | 12 +----------- 4646 1 files changed, 1 insertions(+), 11 deletions(-) 4647 4648commit 8504edfd73f6e0fafbf0ef595016044ccbb59b25 4649Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4650Date: Fri Mar 24 17:54:10 2006 +0000 4651 4652 Update NEWS, bump version number. 4653 4654 NEWS | 24 ++++++++++++++++++++++++ 4655 configure.in | 8 ++++---- 4656 docs/api/libpreludedb-decl.txt | 21 ++++++++++++++++++--- 4657 docs/api/libpreludedb-sections.txt | 3 +++ 4658 docs/api/tmpl/preludedb.sgml | 27 +++++++++++++++++++++++++++ 4659 gtk-doc.make | 12 ++++++------ 4660 6 files changed, 82 insertions(+), 13 deletions(-) 4661 4662commit b75c3d76ebe7e60e66d0b1ac465ccaba507fdacd 4663Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4664Date: Fri Mar 24 16:58:32 2006 +0000 4665 4666 Dynamic PostgreSQL schema generation (this fix certain inefficient 4667 datatype that were used in the old version). Update schema would be hard 4668 to do for all postgreSQL version, thus using preludedb-admin copy for 4669 the update is required. 4670 4671 plugins/format/classic/Makefile.am | 8 +- 4672 plugins/format/classic/mysql2pgsql.sh | 22 ++ 4673 plugins/format/classic/pgsql.sql | 520 --------------------------------- 4674 3 files changed, 28 insertions(+), 522 deletions(-) 4675 4676commit c72ddc000e4940cad564612a5105146f192768e2 4677Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4678Date: Fri Mar 24 15:25:27 2006 +0000 4679 4680 Fix invalid query, reported when using PostgreSQL. 4681 4682 plugins/format/classic/classic-get.c | 3 +-- 4683 1 files changed, 1 insertions(+), 2 deletions(-) 4684 4685commit b49ee18fcf1438c5803a02706f36502af45a216e 4686Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4687Date: Fri Mar 24 10:06:43 2006 +0000 4688 4689 Use a global transaction surrounding all database operation rather than a per 4690 events transaction. Also add a --disable-global-transaction option to cancel 4691 this behavior. 4692 4693 preludedb-admin.c | 43 +++++++++++++++++++++++++++++++------------ 4694 1 files changed, 31 insertions(+), 12 deletions(-) 4695 4696commit e4db32aa25f518b4fd4664cfd2754ad0ea877ddb 4697Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4698Date: Thu Mar 23 10:20:46 2006 +0000 4699 4700 Wrap insert and delete in one big transaction. Should speed up preludedb-admin operation. 4701 4702 preludedb-admin.c | 63 ++++++++++++++++++++++++++++++++++++++++------------ 4703 1 files changed, 48 insertions(+), 15 deletions(-) 4704 4705commit b931ad50c920d777b3ef46e6809979422c632164 4706Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4707Date: Wed Mar 22 17:45:00 2006 +0000 4708 4709 Update GnuLib code. 4710 4711 libmissing/m4/regex.m4 | 41 +++++++++-------------------------------- 4712 libmissing/regex.h | 14 ++++++++------ 4713 libmissing/time_r.c | 14 +------------- 4714 libmissing/time_r.h | 21 ++++++++------------- 4715 4 files changed, 26 insertions(+), 64 deletions(-) 4716 4717commit 069ce06e479a4ec3cdc4de3698504769232a5dad 4718Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4719Date: Wed Mar 22 17:42:36 2006 +0000 4720 4721 Newer API permitting the caller to override default transaction handling 4722 (useful to speed up batch processing of events). 4723 4724 src/include/preludedb.h | 10 ++++ 4725 src/preludedb-sql.c | 115 ++++++++++++++++++++++++++++++++++------------- 4726 src/preludedb.c | 84 ++++++++++++++++++++++++++++++++++ 4727 3 files changed, 178 insertions(+), 31 deletions(-) 4728 4729commit d21288b344f0d6623cc7653c20c4a4b804049ceb 4730Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4731Date: Tue Mar 21 16:25:24 2006 +0000 4732 4733 We can't conditionally define the size of uint64_t since the typedef are directly 4734 handled by swig when generating the resulting source code. Thus revert to statically 4735 mapping int64_t to long long since it seem to work for everyone. 4736 4737 bindings/libpreludedb.i | 9 ++------- 4738 1 files changed, 2 insertions(+), 7 deletions(-) 4739 4740commit 7247b5f7d8612ed3552f641d4f13caee2da48ffd 4741Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4742Date: Mon Mar 20 16:47:46 2006 +0000 4743 4744 Wrap preludedb_check_version(). 4745 4746 bindings/libpreludedb.i | 2 ++ 4747 1 files changed, 2 insertions(+), 0 deletions(-) 4748 4749commit 510f7e38df1d606f8fc11caf12a9fe3ccc9e93a2 4750Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4751Date: Mon Mar 20 15:40:41 2006 +0000 4752 4753 Use new IDMEF_LIST_APPEND primitive, require libprelude 0.9.6. 4754 4755 configure.in | 2 +- 4756 plugins/format/classic/classic-get.c | 28 ++++++++++++++-------------- 4757 2 files changed, 15 insertions(+), 15 deletions(-) 4758 4759commit de60ad6224985eb90ac80ea2d357f5f91faba428 4760Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4761Date: Thu Mar 16 09:59:48 2006 +0000 4762 4763 Add libprelude dependencie, since these plugin depend on libprelude symbols. 4764 4765 plugins/sql/mysql/Makefile.am | 4 ++-- 4766 plugins/sql/pgsql/Makefile.am | 4 ++-- 4767 plugins/sql/sqlite3/Makefile.am | 4 ++-- 4768 3 files changed, 6 insertions(+), 6 deletions(-) 4769 4770commit 24cb595e53c18c53eca856799a4f42827d022f8a 4771Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4772Date: Wed Mar 8 11:54:09 2006 +0000 4773 4774 Update GnuLib code, NEWS, bump version number. 4775 4776 NEWS | 11 +++++++++++ 4777 configure.in | 2 +- 4778 libmissing/m4/extensions.m4 | 2 +- 4779 3 files changed, 13 insertions(+), 2 deletions(-) 4780 4781commit 3cb387b0cad4f1bda174d776201c05865b9de17e 4782Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4783Date: Wed Mar 8 11:27:45 2006 +0000 4784 4785 Update base schema version number to 14.4, thanks to Sebastien Tricaud <sebastien.tricaud@wengo.fr> 4786 for reporting this. 4787 4788 plugins/format/classic/mysql.sql | 2 +- 4789 plugins/format/classic/pgsql.sql | 2 +- 4790 2 files changed, 2 insertions(+), 2 deletions(-) 4791 4792commit 5928739d221383cc5276330ecef6f29ba720624e 4793Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4794Date: Mon Mar 6 11:41:47 2006 +0000 4795 4796 Prelude_AdditionalData data field is not NULL. 4797 4798 plugins/format/classic/Makefile.am | 5 ++++- 4799 plugins/format/classic/classic.c | 2 +- 4800 plugins/format/classic/mysql-update-14-4.sql | 2 ++ 4801 plugins/format/classic/mysql.sql | 3 ++- 4802 plugins/format/classic/pgsql-update-14-4.sql | 2 ++ 4803 plugins/format/classic/pgsql.sql | 3 ++- 4804 plugins/format/classic/sqlite-update-14-4.sql | 20 ++++++++++++++++++++ 4805 7 files changed, 33 insertions(+), 4 deletions(-) 4806 4807commit bc53a048e9230b825c887c94e95a98cb9199c28e 4808Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4809Date: Mon Mar 6 10:26:15 2006 +0000 4810 4811 Set libprelude include path. 4812 4813 bindings/Makefile.am | 4 ++-- 4814 1 files changed, 2 insertions(+), 2 deletions(-) 4815 4816commit 57d9906cec1c47ba2c238f78d72be63bae8d61ba 4817Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4818Date: Mon Mar 6 10:25:36 2006 +0000 4819 4820 Rely on prelude-inttypes.h for type mapping. 4821 4822 bindings/libpreludedb.i | 15 ++++++++++++--- 4823 1 files changed, 12 insertions(+), 3 deletions(-) 4824 4825commit 06a8edb3d24d5b514907fdd5348fb12f2cde929c 4826Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4827Date: Mon Mar 6 10:24:30 2006 +0000 4828 4829 Fix query time calculation. 4830 4831 src/preludedb-sql.c | 10 ++++++---- 4832 1 files changed, 6 insertions(+), 4 deletions(-) 4833 4834commit 54f65e740ae01d858217b3e5732f2e76a735c8dc 4835Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4836Date: Tue Feb 28 09:29:42 2006 +0000 4837 4838 Revert [7799], replace it with a configure time check. Fix PostgreSQL compile issue (#136). 4839 4840 configure.in | 4 ++++ 4841 plugins/sql/pgsql/pgsql.c | 2 +- 4842 2 files changed, 5 insertions(+), 1 deletions(-) 4843 4844commit dfb18de1663f06dd54adea9da4a82be6ba95603f 4845Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4846Date: Wed Feb 22 21:45:43 2006 +0000 4847 4848 Bump version to 0.9.5.1, bug fix release. 4849 4850 NEWS | 5 +++++ 4851 configure.in | 4 ++-- 4852 docs/api/libpreludedb-decl.txt | 2 +- 4853 3 files changed, 8 insertions(+), 3 deletions(-) 4854 4855commit 56e3416524faa6e83c27dbe62d9b90544cbfa3be 4856Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4857Date: Wed Feb 22 21:42:47 2006 +0000 4858 4859 Correctly read database schema version. 4860 4861 plugins/format/classic/classic.c | 2 +- 4862 1 files changed, 1 insertions(+), 1 deletions(-) 4863 4864commit e24da3028439bb6b8f36f6f8912dee36395c6cb7 4865Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4866Date: Wed Feb 22 18:19:34 2006 +0000 4867 4868 Update NEWS, documentation, bump version number. 4869 4870 NEWS | 14 ++++++++++++++ 4871 configure.in | 4 ++-- 4872 docs/api/libpreludedb-decl.txt | 2 +- 4873 3 files changed, 17 insertions(+), 3 deletions(-) 4874 4875commit 3863f38b45a0758006bb9e651b2c4f3554eac0c9 4876Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4877Date: Wed Feb 22 18:13:34 2006 +0000 4878 4879 Use %g for double formatting. 4880 4881 plugins/format/classic/classic.c | 8 ++++---- 4882 1 files changed, 4 insertions(+), 4 deletions(-) 4883 4884commit 0fa9fa06e0a22e0c9d7561fcd2500ab5ecfaade5 4885Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4886Date: Wed Feb 22 17:51:53 2006 +0000 4887 4888 Only start incrementing count when we are at the provided offset. 4889 4890 preludedb-admin.c | 36 ++++++++++++++++++------------------ 4891 1 files changed, 18 insertions(+), 18 deletions(-) 4892 4893commit 4373964996f5be2cda06516590bf783a80c4afd1 4894Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4895Date: Wed Feb 22 17:45:59 2006 +0000 4896 4897 Remove unused typemap. 4898 4899 bindings/libpreludedb_python.i | 62 ---------------------------------------- 4900 1 files changed, 0 insertions(+), 62 deletions(-) 4901 4902commit a8f8bbe01ccc354e1d4adf937df3bee8a9377725 4903Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4904Date: Wed Feb 22 17:41:43 2006 +0000 4905 4906 Remove unreachable code. 4907 4908 plugins/format/classic/classic.c | 3 --- 4909 1 files changed, 0 insertions(+), 3 deletions(-) 4910 4911commit e0e4b166c823edc8185d138a385703d3bc3de47a 4912Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4913Date: Wed Feb 22 17:35:10 2006 +0000 4914 4915 Fix a possible leak. Make schema version error verbose. 4916 4917 plugins/format/classic/classic.c | 20 +++++++++++++++----- 4918 1 files changed, 15 insertions(+), 5 deletions(-) 4919 4920commit 16a7306520eb6539053cc0ca014fa6d1594f75e7 4921Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4922Date: Sun Feb 19 22:27:08 2006 +0000 4923 4924 Define type within libpreludedb.i to avoid duplication. 4925 4926 bindings/libpreludedb.i | 35 +++++++++++++++++++++++++++++++++++ 4927 bindings/libpreludedb_perl.i | 35 ----------------------------------- 4928 bindings/libpreludedb_python.i | 35 ----------------------------------- 4929 3 files changed, 35 insertions(+), 70 deletions(-) 4930 4931commit 25ddd248f0ca912e5792700de0f014980e243132 4932Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4933Date: Sun Feb 19 22:16:14 2006 +0000 4934 4935 Remove unused definition. 4936 4937 src/preludedb-sql.c | 3 --- 4938 1 files changed, 0 insertions(+), 3 deletions(-) 4939 4940commit 18cf360223b1bc5bb7c21753c7372dcd3b856e2f 4941Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4942Date: Sat Feb 18 01:49:03 2006 +0000 4943 4944 Fix important memory leak on Python preludedb_result_values_get_next(). 4945 4946 bindings/libpreludedb_python.i | 5 +++-- 4947 1 files changed, 3 insertions(+), 2 deletions(-) 4948 4949commit b8c7eb94de74c5a1bb49a565696c0826e09188a6 4950Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4951Date: Tue Feb 14 12:42:56 2006 +0000 4952 4953 Include message count on error. 4954 4955 preludedb-admin.c | 6 +++--- 4956 1 files changed, 3 insertions(+), 3 deletions(-) 4957 4958commit ef916b944ddf48e6c072afbfe4941b3cf04ff0cf 4959Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4960Date: Tue Feb 14 01:28:35 2006 +0000 4961 4962 Include patch from Emmanuel Saracco <esaracco@free.fr> to fix PostgreSQL 4963 header path. 4964 4965 plugins/sql/pgsql/pgsql.c | 2 +- 4966 1 files changed, 1 insertions(+), 1 deletions(-) 4967 4968commit 9cdab2f9156faf3ec654a7e1afd5aec75579664d 4969Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4970Date: Wed Feb 8 11:28:44 2006 +0000 4971 4972 Update documentation, NEWS, bump version number 4973 4974 NEWS | 23 +++++++++++++++++++++++ 4975 configure.in | 10 +++++----- 4976 docs/api/libpreludedb-decl.txt | 22 ++++++---------------- 4977 docs/api/libpreludedb-sections.txt | 5 +---- 4978 docs/api/tmpl/libpreludedb-unused.sgml | 16 ++++++++++++++++ 4979 docs/api/tmpl/preludedb-error.sgml | 8 ++++---- 4980 docs/api/tmpl/preludedb-plugin-sql.sgml | 21 ++------------------- 4981 7 files changed, 57 insertions(+), 48 deletions(-) 4982 4983commit f7ea6529741fe9a1b67e3ce1ffb6180b33939841 4984Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4985Date: Wed Feb 8 11:02:57 2006 +0000 4986 4987 Update GnuLib code. 4988 4989 libmissing/m4/extensions.m4 | 13 +++++++++++-- 4990 1 files changed, 11 insertions(+), 2 deletions(-) 4991 4992commit 15eb07778e861c9e1d3533af02696d905d5fee34 4993Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 4994Date: Wed Feb 8 10:55:17 2006 +0000 4995 4996 More fix for #129. 4997 4998 src/preludedb-sql.c | 4 ++-- 4999 1 files changed, 2 insertions(+), 2 deletions(-) 5000 5001commit 3b6e9319b3c5fd406c6652a40110aecdd5a98efc 5002Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5003Date: Wed Feb 8 10:45:28 2006 +0000 5004 5005 Cleanup, fix #129. 5006 5007 src/preludedb-sql.c | 44 ++++++++++++++++++++++++-------------------- 5008 1 files changed, 24 insertions(+), 20 deletions(-) 5009 5010commit 9cc58bc1651eb6dce641b9410395f0ea8c5f2210 5011Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5012Date: Tue Feb 7 15:09:21 2006 +0000 5013 5014 Remove old bindings workaround used to catch preludedb error. This is un-needed 5015 since the latest error handling change introducing preludedb_strerror(). Error 5016 handling from bindings now work as expected. 5017 5018 bindings/libpreludedb_perl.i | 17 ---- 5019 bindings/libpreludedb_python.i | 169 +--------------------------------------- 5020 2 files changed, 2 insertions(+), 184 deletions(-) 5021 5022commit c66ba825f049658addfafbb2eebce2bac584c7d8 5023Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5024Date: Tue Feb 7 15:03:07 2006 +0000 5025 5026 Restore preludedb_sql_plugin_get_error() for API compatibility purpose. Mark it as deprecated. 5027 5028 src/include/preludedb-sql.h | 7 ++++++- 5029 src/preludedb-sql.c | 19 +++++++++++++++++++ 5030 2 files changed, 25 insertions(+), 1 deletions(-) 5031 5032commit 3c4b81d6f3230f709cba80f6ace6cfcd1eb36496 5033Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5034Date: Tue Feb 7 14:56:28 2006 +0000 5035 5036 Fix unused. 5037 5038 preludedb-admin.c | 3 +-- 5039 1 files changed, 1 insertions(+), 2 deletions(-) 5040 5041commit 29654feba144ca462fdd6405e81318720ff007c8 5042Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5043Date: Tue Feb 7 13:51:23 2006 +0000 5044 5045 Use preludedb_strerror() in place of errbuf. 5046 5047 preludedb-admin.c | 9 +++------ 5048 1 files changed, 3 insertions(+), 6 deletions(-) 5049 5050commit a023cb7c7d5a0fdf333acc3178dc0bda56201465 5051Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5052Date: Tue Feb 7 13:49:05 2006 +0000 5053 5054 Check whether errbuf is set. 5055 5056 src/preludedb.c | 7 ++++--- 5057 1 files changed, 4 insertions(+), 3 deletions(-) 5058 5059commit b6592d4524ee9520d5a3b6b0b0876f7050d931e6 5060Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5061Date: Tue Feb 7 13:47:35 2006 +0000 5062 5063 Rework error handling plugin API, so that it is suitable for any kind of driver, 5064 and provide more control over what's going on. The library API remain compatible, 5065 although the caller might now use preludedb_strerror() in order to get a detailed 5066 error instead of relying on errbuf or preludedb_get_error(). 5067 5068 plugins/sql/mysql/mysql.c | 85 +++++++++++++++++++----------------- 5069 plugins/sql/pgsql/pgsql.c | 61 +++++++++++++------------- 5070 plugins/sql/sqlite3/sqlite3.c | 41 +++++++---------- 5071 src/include/preludedb-plugin-sql.h | 9 +--- 5072 src/include/preludedb-sql.h | 2 - 5073 src/preludedb-plugin-sql.c | 21 +-------- 5074 src/preludedb-sql.c | 81 ++++++++++++++-------------------- 5075 src/preludedb.c | 25 +++-------- 5076 8 files changed, 137 insertions(+), 188 deletions(-) 5077 5078commit ed718d2efdb2c7c178d7a1e546d5fdb1f637bf51 5079Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5080Date: Tue Feb 7 13:40:56 2006 +0000 5081 5082 Untabify. 5083 5084 src/preludedb-sql.c | 642 +++++++++++++++++++++++++------------------------- 5085 1 files changed, 321 insertions(+), 321 deletions(-) 5086 5087commit 381d16f92f5ec262c719f87035b339fd6f3b5bba 5088Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5089Date: Tue Feb 7 02:13:31 2006 +0000 5090 5091 Handle NULL logfile. 5092 5093 src/preludedb-sql.c | 2 +- 5094 1 files changed, 1 insertions(+), 1 deletions(-) 5095 5096commit 0894c3605db721b2c99d91a420482ad8843652c1 5097Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5098Date: Tue Feb 7 01:58:24 2006 +0000 5099 5100 Documentation update. 5101 5102 docs/api/libpreludedb-decl.txt | 584 ++++++++++++++++------------ 5103 docs/api/libpreludedb-sections.txt | 54 ++- 5104 docs/api/tmpl/preludedb-plugin-format.sgml | 195 ++++++---- 5105 docs/api/tmpl/preludedb-plugin-sql.sgml | 355 ++++++++++++++---- 5106 docs/api/tmpl/preludedb-sql-settings.sgml | 26 ++ 5107 docs/api/tmpl/preludedb-sql.sgml | 1 + 5108 6 files changed, 819 insertions(+), 396 deletions(-) 5109 5110commit eaca1c0be3da3267c40fe14792ef9180b13eb586 5111Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5112Date: Tue Feb 7 01:58:08 2006 +0000 5113 5114 Implement "move" command. Make argument to --query-logging option optional: 5115 if no argument is provided, logging happen on stdout. "-" is also decoded as stdout. 5116 5117 preludedb-admin.c | 154 +++++++++++++++++++++++++++++++++++++++-------------- 5118 1 files changed, 114 insertions(+), 40 deletions(-) 5119 5120commit ab9b4738b1323c44559f939ebfb83e133c95a9c1 5121Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5122Date: Tue Feb 7 01:57:02 2006 +0000 5123 5124 If argument is NULL, log to stdout. 5125 5126 src/preludedb-sql.c | 17 ++++++++++++----- 5127 1 files changed, 12 insertions(+), 5 deletions(-) 5128 5129commit 3ff3b84d250731e847fee7d69e818175fb0cf511 5130Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5131Date: Mon Feb 6 15:54:07 2006 +0000 5132 5133 Log query time. 5134 5135 src/preludedb-sql.c | 24 +++++++++++------------- 5136 1 files changed, 11 insertions(+), 13 deletions(-) 5137 5138commit 117ed71fecc97e90826bcee6b86d55c2b795291e 5139Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5140Date: Mon Feb 6 12:16:07 2006 +0000 5141 5142 Dynamic plugin allocation, since plugin structure is now opaque. 5143 5144 plugins/format/classic/classic-insert.c | 15 +++--- 5145 plugins/format/classic/classic.c | 45 +++++++++------- 5146 plugins/sql/mysql/mysql.c | 51 ++++++++++-------- 5147 plugins/sql/pgsql/pgsql.c | 56 ++++++++++++-------- 5148 plugins/sql/sqlite3/sqlite3.c | 87 ++++++++++--------------------- 5149 5 files changed, 120 insertions(+), 134 deletions(-) 5150 5151commit 84c20125fbe42c505ab93e165644f6b9e6c86ed5 5152Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5153Date: Mon Feb 6 12:15:31 2006 +0000 5154 5155 Add sqlite3 plugin to list of dlopened object (for pre-opening support). 5156 Make the plugins structure opaque, so that better binary compatibility is achieved. 5157 Add extern C declaration to all public header files. 5158 5159 Modify preludedb_sql_time_to_timestamp() so that it take a preludedb_sql_t object as input, 5160 since the timestamp format depend on the implementation. 5161 5162 Implement default fallback for escape, timestamp function. 5163 Verbose error reporting. 5164 5165 src/Makefile.am | 10 +- 5166 src/include/Makefile.am | 2 +- 5167 src/include/preludedb-plugin-format-prv.h | 48 ++++ 5168 src/include/preludedb-plugin-format.h | 118 +++++---- 5169 src/include/preludedb-plugin-sql.h | 187 +++++++++----- 5170 src/include/preludedb-sql.h | 12 +- 5171 src/preludedb-plugin-format.c | 139 +++++++++++ 5172 src/preludedb-plugin-sql.c | 387 +++++++++++++++++++++++++++++ 5173 src/preludedb-sql.c | 133 ++++------ 5174 src/preludedb.c | 28 ++- 5175 10 files changed, 849 insertions(+), 215 deletions(-) 5176 5177commit 5dc29d8229387d280e7baf0eb3a7d9908bc324ec 5178Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5179Date: Sun Feb 5 22:15:53 2006 +0000 5180 5181 Add extern C. 5182 5183 src/include/preludedb-path-selection.h | 8 ++++++++ 5184 src/include/preludedb-sql-settings.h | 9 +++++++++ 5185 2 files changed, 17 insertions(+), 0 deletions(-) 5186 5187commit b6ad85657ee9dafee9e6dae7008926037c21fceb 5188Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5189Date: Sun Feb 5 22:15:25 2006 +0000 5190 5191 Add extern C. Fix recursive header inclusion. 5192 5193 src/include/preludedb-version.h.in | 8 ++++++++ 5194 src/include/preludedb.h | 9 ++++++++- 5195 2 files changed, 16 insertions(+), 1 deletions(-) 5196 5197commit a257771e6a1c57f2d382268fd5139811d4ba8a4e 5198Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5199Date: Sun Feb 5 22:14:40 2006 +0000 5200 5201 Verbose error handling. 5202 5203 src/preludedb-error.c | 5 ++++- 5204 1 files changed, 4 insertions(+), 1 deletions(-) 5205 5206commit f0f480a0fa99385501780b89fc9f49017cd7aadc 5207Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5208Date: Sun Feb 5 22:14:16 2006 +0000 5209 5210 Implement preludedb_error_verbose(). Add extern C. 5211 5212 src/include/preludedb-error.h | 23 +++++++++++++++++++++++ 5213 1 files changed, 23 insertions(+), 0 deletions(-) 5214 5215commit a6bbb28be34668458a805ca7f8c85b9881083c31 5216Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5217Date: Sun Feb 5 22:00:36 2006 +0000 5218 5219 Update gnulib code. 5220 5221 libmissing/m4/stdbool.m4 | 31 +++++++++++++++++++++++++++++-- 5222 libmissing/stdbool_.h | 38 ++++++++++++++++++++++++++++++-------- 5223 libmissing/strndup.c | 23 ++++++++++++++++++----- 5224 libmissing/strnlen.c | 27 ++++++--------------------- 5225 libmissing/vasnprintf.c | 46 ++++++++++++++++++++++++---------------------- 5226 5 files changed, 107 insertions(+), 58 deletions(-) 5227 5228commit bf73bc3e8013e9c99a54f39d79b22d0b7523b76c 5229Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5230Date: Thu Feb 2 14:19:13 2006 +0000 5231 5232 Fix cast. 5233 5234 plugins/format/classic/classic-get.c | 5 +++-- 5235 1 files changed, 3 insertions(+), 2 deletions(-) 5236 5237commit 2a31db4128fbf29a0e162f3216e87158eed5ed37 5238Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5239Date: Thu Feb 2 13:46:53 2006 +0000 5240 5241 Do not mangle the pos argument (resulting in it being uninitialized) for IDMEF function 5242 that support it. This fix a bug where retrieved object where un-ordered. 5243 5244 plugins/format/classic/classic-get.c | 87 ++++++++++++++++++++++++---------- 5245 1 files changed, 61 insertions(+), 26 deletions(-) 5246 5247commit a891a01b83f306f2f76e1c605219d5f2e8d45f06 5248Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5249Date: Thu Feb 2 12:21:32 2006 +0000 5250 5251 Enforce list ordering. 5252 5253 plugins/format/classic/classic-get.c | 58 +++++++++++++++++++++++----------- 5254 1 files changed, 39 insertions(+), 19 deletions(-) 5255 5256commit cf6bb290688a2b1687996caccc159efe4b4ac1ea 5257Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5258Date: Mon Jan 16 12:40:26 2006 +0000 5259 5260 Version bump. 5261 5262 INSTALL | 69 ++++++++++++++++++++++------------------ 5263 NEWS | 14 ++++++++ 5264 configure.in | 6 ++-- 5265 docs/api/libpreludedb-decl.txt | 14 ++++++++ 5266 4 files changed, 69 insertions(+), 34 deletions(-) 5267 5268commit e99708159ba4904faf77a83c2607d2cb52442173 5269Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5270Date: Mon Jan 16 12:30:45 2006 +0000 5271 5272 Update gnulib code. 5273 5274 libmissing/Makefile.am | 53 +- 5275 libmissing/alloca.c | 491 +++++ 5276 libmissing/gettext.h | 78 + 5277 libmissing/m4/codeset.m4 | 21 + 5278 libmissing/m4/gnulib-cache.m4 | 6 +- 5279 libmissing/m4/gnulib-comp.m4 | 41 +- 5280 libmissing/m4/mbchar.m4 | 20 + 5281 libmissing/m4/mbiter.m4 | 17 + 5282 libmissing/m4/mbrtowc.m4 | 31 + 5283 libmissing/m4/memchr.m4 | 18 + 5284 libmissing/m4/regex.m4 | 187 ++ 5285 libmissing/m4/stdbool.m4 | 88 + 5286 libmissing/m4/strcase.m4 | 39 + 5287 libmissing/malloc.c | 36 + 5288 libmissing/mbchar.c | 38 + 5289 libmissing/mbchar.h | 352 ++++ 5290 libmissing/mbuiter.h | 203 ++ 5291 libmissing/memchr.c | 201 ++ 5292 libmissing/regcomp.c | 3779 +++++++++++++++++++++++++++++++++++ 5293 libmissing/regex.c | 68 + 5294 libmissing/regex.h | 769 ++++++++ 5295 libmissing/regex_internal.c | 1656 ++++++++++++++++ 5296 libmissing/regex_internal.h | 915 +++++++++ 5297 libmissing/regexec.c | 4333 +++++++++++++++++++++++++++++++++++++++++ 5298 libmissing/stdbool_.h | 93 + 5299 libmissing/strcase.h | 48 + 5300 libmissing/strcasecmp.c | 105 + 5301 libmissing/strncasecmp.c | 65 + 5302 libmissing/strnlen1.c | 39 + 5303 libmissing/strnlen1.h | 41 + 5304 30 files changed, 13826 insertions(+), 5 deletions(-) 5305 5306commit dff7456c82cf0065d2a9f0cee8040aa60c44babe 5307Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5308Date: Mon Jan 16 12:30:21 2006 +0000 5309 5310 Remove hard <regex.h> dependencies, use libmissing provided dependencie/fallback rather. 5311 5312 plugins/sql/sqlite3/sqlite3.c | 1 - 5313 src/include/libmissing.h | 17 +++++++++++++++++ 5314 2 files changed, 17 insertions(+), 1 deletions(-) 5315 5316commit d6e488071c22b86b9839a2aa4de3738a30698715 5317Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5318Date: Sat Jan 14 09:43:29 2006 +0000 5319 5320 Included modified SQLite3 patch from Rob Holland <rob@inversepath.com>, 5321 which implement the REGEXP operator, and SQLite3 compatible time constraint. 5322 5323 plugins/sql/sqlite3/sqlite3.c | 106 +++++++++++++++++++++++------------------ 5324 1 files changed, 60 insertions(+), 46 deletions(-) 5325 5326commit 04a3740f86eefb686ff67006f1fbf975fae16d4c 5327Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5328Date: Sat Jan 14 08:26:09 2006 +0000 5329 5330 Fix sqlite3 check. 5331 5332 configure.in | 2 +- 5333 1 files changed, 1 insertions(+), 1 deletions(-) 5334 5335commit 764992cb2224335fb0c018d5b51eae9dfe6eb006 5336Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5337Date: Thu Jan 12 20:22:57 2006 +0000 5338 5339 Correctly use prelude_option_read() return value as the index for un-handled arguments. 5340 5341 preludedb-admin.c | 66 +++++++++++++++++++++++++++------------------------- 5342 1 files changed, 34 insertions(+), 32 deletions(-) 5343 5344commit 9c0fbe80ec4a6a96680b47c952fdf47a1098dbfe 5345Author: Rob Holand <rob@inversepath.com> 5346Date: Wed Jan 11 18:34:12 2006 +0000 5347 5348 working extract code 5349 5350 plugins/sql/sqlite3/sqlite3.c | 20 ++++++++++---------- 5351 1 files changed, 10 insertions(+), 10 deletions(-) 5352 5353commit 98e2d268e61252fd4b96a04faf0fdae51f7a690e 5354Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5355Date: Tue Jan 10 08:52:48 2006 +0000 5356 5357 Automatic sqlite.sql generation. 5358 5359 plugins/format/classic/Makefile.am | 9 ++++----- 5360 1 files changed, 4 insertions(+), 5 deletions(-) 5361 5362commit 13ad7cc80094c37e49cf3e5de0dd57aa558716fb 5363Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5364Date: Mon Jan 9 15:32:40 2006 +0000 5365 5366 Fix mysql2sqlite.sh 5367 5368 plugins/format/classic/mysql2sqlite.sh | 3 +-- 5369 1 files changed, 1 insertions(+), 2 deletions(-) 5370 5371commit 5d7b444f6c461af755f65e2ab775c3784fb2dfb3 5372Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5373Date: Mon Jan 9 15:31:00 2006 +0000 5374 5375 Slight cleanup. 5376 5377 plugins/sql/sqlite3/sqlite3.c | 13 ++++++++----- 5378 1 files changed, 8 insertions(+), 5 deletions(-) 5379 5380commit 5e062bad10d674f54a26477d7356d6f8560d5a1c 5381Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5382Date: Tue Jan 3 23:41:19 2006 +0000 5383 5384 Clearly state that linking from a GPL compatible program is okay. 5385 5386 LICENSE.README | 13 +++++++------ 5387 1 files changed, 7 insertions(+), 6 deletions(-) 5388 5389commit bdd541cb21f9ee81ae0ed94edfc269015175fd54 5390Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5391Date: Wed Dec 21 10:09:43 2005 +0000 5392 5393 New experimental SQLite3 plugin, original implementation by 5394 Rob Holland <rob@inversepath.com>, with further work done by me. 5395 5396 configure.in | 46 +++ 5397 plugins/format/classic/Makefile.am | 15 +- 5398 plugins/format/classic/mysql2sqlite.sh | 13 + 5399 plugins/sql/Makefile.am | 2 +- 5400 plugins/sql/sqlite3/Makefile.am | 11 + 5401 plugins/sql/sqlite3/sqlite3.c | 620 ++++++++++++++++++++++++++++++++ 5402 6 files changed, 704 insertions(+), 3 deletions(-) 5403 5404commit 43c41a34aece249dcced79d5e588922dcd50e87a 5405Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5406Date: Fri Dec 16 18:20:41 2005 +0000 5407 5408 Use db_error() for accurate error reporting. 5409 5410 preludedb-admin.c | 15 ++++++--------- 5411 1 files changed, 6 insertions(+), 9 deletions(-) 5412 5413commit 828e2d2725850bc3c1aa004bdd894fb33cdfa150 5414Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5415Date: Fri Dec 16 17:35:33 2005 +0000 5416 5417 Oops 5418 5419 src/preludedb.c | 2 +- 5420 1 files changed, 1 insertions(+), 1 deletions(-) 5421 5422commit 95b5b40c44de33e26c1010f01701cd78971f7dae 5423Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5424Date: Fri Dec 16 17:33:06 2005 +0000 5425 5426 Don't return NULL incase the buffer is too small. Truncate the error instead. 5427 5428 src/preludedb.c | 14 +++++++------- 5429 1 files changed, 7 insertions(+), 7 deletions(-) 5430 5431commit 7d2edf114f9e9e302f84eccab7949d885ee651d7 5432Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5433Date: Fri Dec 16 11:17:54 2005 +0000 5434 5435 Implement "file" setting, for file based database (sqlite for example). 5436 5437 src/include/preludedb-sql-settings.h | 4 ++++ 5438 src/preludedb-sql-settings.c | 1 + 5439 2 files changed, 5 insertions(+), 0 deletions(-) 5440 5441commit 34c13d5dc4519b38208265bcc2e5e4ccb7ae51f6 5442Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5443Date: Fri Dec 16 11:14:54 2005 +0000 5444 5445 Avoid un-necessary call to strlen(). 5446 5447 src/preludedb-sql.c | 11 +++++------ 5448 1 files changed, 5 insertions(+), 6 deletions(-) 5449 5450commit b18b2296ec846d707b25582ea76476b4a5e4e1b5 5451Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5452Date: Wed Dec 14 10:14:32 2005 +0000 5453 5454 Schema sanitization and cleanup from Rob Holland <tigger@gentoo.org>. 5455 5456 plugins/format/classic/mysql.sql | 123 +++++++++++++++++++------------------- 5457 plugins/format/classic/pgsql.sql | 103 ++++++++++++++++---------------- 5458 2 files changed, 113 insertions(+), 113 deletions(-) 5459 5460commit d9ec22cb726b1c77c9b11f08c2b6fc9014db1f00 5461Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5462Date: Mon Dec 12 09:28:13 2005 +0000 5463 5464 Bump version number, update NEWS, documentation. 5465 5466 NEWS | 7 +++++++ 5467 configure.in | 2 +- 5468 docs/api/libpreludedb-decl.txt | 2 +- 5469 3 files changed, 9 insertions(+), 2 deletions(-) 5470 5471commit e18309dede223e3feb0bee5cf2f66f59b503729f 5472Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5473Date: Mon Dec 12 09:16:30 2005 +0000 5474 5475 Set library soname. 5476 5477 configure.in | 9 +++++++++ 5478 src/Makefile.am | 2 +- 5479 2 files changed, 10 insertions(+), 1 deletions(-) 5480 5481commit 637e1b415276c58de3487b4e8c1f0dde56b88f4d 5482Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5483Date: Tue Dec 6 19:40:07 2005 +0000 5484 5485 Fix character escape issue with multiple consecutive backslash. Keep 5486 a consistant state. 5487 5488 src/preludedb-sql.c | 25 ++++++++++++------------- 5489 1 files changed, 12 insertions(+), 13 deletions(-) 5490 5491commit 12c767d395a6687a62e19b6dd818d6b5af494a55 5492Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5493Date: Mon Nov 28 14:23:51 2005 +0000 5494 5495 Update NEWS. Bump version number. 5496 5497 NEWS | 14 ++++++++++++++ 5498 configure.in | 2 +- 5499 docs/api/libpreludedb-decl.txt | 2 +- 5500 libmissing/m4/gnulib-comp.m4 | 1 + 5501 4 files changed, 17 insertions(+), 2 deletions(-) 5502 5503commit c00be489418d01976d390c0dce097941f1eab111 5504Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5505Date: Mon Nov 28 14:04:21 2005 +0000 5506 5507 Fix command help, and allow the save command to be used without specifying 5508 an output filename. 5509 5510 preludedb-admin.c | 20 ++++++++++++-------- 5511 1 files changed, 12 insertions(+), 8 deletions(-) 5512 5513commit b6ab92119acdfd9c628c40fa5dd8a94c747149ee 5514Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5515Date: Sun Nov 27 12:59:17 2005 +0000 5516 5517 For automated build. 5518 5519 autogen.sh | 2 ++ 5520 1 files changed, 2 insertions(+), 0 deletions(-) 5521 5522commit 10804d320f09c599789abc264e5cb4623f697128 5523Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5524Date: Wed Nov 16 16:07:40 2005 +0000 5525 5526 Fix path. 5527 5528 src/include/preludedb.h | 10 +++++----- 5529 1 files changed, 5 insertions(+), 5 deletions(-) 5530 5531commit a1a212edb5314fd3471c246d104b8a1a374bf2bd 5532Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5533Date: Wed Nov 16 16:04:24 2005 +0000 5534 5535 Include standard libpreludedb headers. 5536 5537 src/include/preludedb.h | 6 ++++++ 5538 1 files changed, 6 insertions(+), 0 deletions(-) 5539 5540commit 12f9a445edf0c7b459e6c3fbde8a97547bfdac3c 5541Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5542Date: Sun Nov 13 13:01:59 2005 +0000 5543 5544 Make sure we return PRELUDEDB_ERROR_CONNECTION when the SQL query function 5545 return a server connection problem. So that the upper layer can trigger 5546 reconnection to the database. 5547 5548 plugins/sql/mysql/mysql.c | 29 +++++++++++++++++++++++++++-- 5549 plugins/sql/pgsql/pgsql.c | 4 +++- 5550 2 files changed, 30 insertions(+), 3 deletions(-) 5551 5552commit d858d2a380f12a7a1001d5ead6afd45b6a06b756 5553Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5554Date: Sun Nov 13 12:30:21 2005 +0000 5555 5556 Untabify. 5557 5558 plugins/sql/mysql/mysql.c | 312 ++++++++++++++++++++++---------------------- 5559 plugins/sql/pgsql/pgsql.c | 312 ++++++++++++++++++++++---------------------- 5560 2 files changed, 312 insertions(+), 312 deletions(-) 5561 5562commit 8e7d697da718bacc1808b95987734a3b1751ff96 5563Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5564Date: Thu Nov 3 12:37:52 2005 +0000 5565 5566 Make the delete command safer to use: forbid deletion until a criteria is provided. 5567 5568 preludedb-admin.c | 33 +++++++++++++++++++++------------ 5569 1 files changed, 21 insertions(+), 12 deletions(-) 5570 5571commit 1dbff223cfb5bb1cd139f5bec8ab97360f73696d 5572Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5573Date: Sat Oct 8 09:10:03 2005 +0000 5574 5575 Oops 5576 5577 bindings/perl/Makefile.PL.in | 2 +- 5578 1 files changed, 1 insertions(+), 1 deletions(-) 5579 5580commit c07424f51f7a1b47dc0044014ba1061aab3c0114 5581Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5582Date: Sat Oct 8 09:03:20 2005 +0000 5583 5584 Patch from Daniel Black <dragonheart@gentoo.org> to workaround invalid library run path added through MakeMaker? generated Makefile. 5585 5586 bindings/perl/Makefile.PL.in | 2 +- 5587 1 files changed, 1 insertions(+), 1 deletions(-) 5588 5589commit 787bc8ae05c7d6b459b9465c739b384f4746bf26 5590Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5591Date: Fri Oct 7 13:53:17 2005 +0000 5592 5593 Patch from Daniel Black <dragonheart@gentoo.org> to fix Perl bindings Makefile 5594 generated with DESTDIR appended twice. 5595 5596 bindings/perl/Makefile.PL.in | 2 +- 5597 1 files changed, 1 insertions(+), 1 deletions(-) 5598 5599commit 05e9bd0d1164582beda487b1c0f9810f2718536c 5600Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5601Date: Mon Oct 3 09:14:47 2005 +0000 5602 5603 Patch from Daniel Black <dragonheart@gentoo.org> to workaround invalid library run path added through MakeMaker generated Makefile. 5604 5605 bindings/Makefile.am | 6 +++--- 5606 1 files changed, 3 insertions(+), 3 deletions(-) 5607 5608commit a6637d4b2c1267daa8d92b1cbfd56e952a51215f 5609Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5610Date: Tue Sep 20 20:10:24 2005 +0000 5611 5612 Bump to 0.9.0 5613 5614 NEWS | 7 +++++++ 5615 configure.in | 2 +- 5616 docs/api/libpreludedb-decl.txt | 2 +- 5617 3 files changed, 9 insertions(+), 2 deletions(-) 5618 5619commit 06cdd614be9122f9b9fedff3593002859f65180c 5620Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5621Date: Mon Sep 19 20:38:09 2005 +0000 5622 5623 Update GnuLib code. 5624 5625 libmissing/m4/gnulib-cache.m4 | 3 +-- 5626 libmissing/m4/gnulib-comp.m4 | 2 -- 5627 libmissing/strndup.c | 2 +- 5628 libmissing/strnlen.c | 2 +- 5629 libmissing/time_r.c | 2 +- 5630 5 files changed, 4 insertions(+), 7 deletions(-) 5631 5632commit 14e7c345aab64ed8b5fb8925e678c836f21d870f 5633Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5634Date: Sun Sep 18 20:35:30 2005 +0000 5635 5636 More arguments checkings. 5637 5638 bindings/libpreludedb_perl.i | 65 +++++++++++++++++++++++++++------------ 5639 bindings/libpreludedb_python.i | 56 +++++++++++++++++++++++++--------- 5640 2 files changed, 86 insertions(+), 35 deletions(-) 5641 5642commit 13f707e51359f96b9239087c6d576b57e65dcba2 5643Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5644Date: Thu Sep 15 17:40:30 2005 +0000 5645 5646 Version bump. 5647 5648 NEWS | 12 ++++++++++++ 5649 configure.in | 2 +- 5650 docs/api/libpreludedb-decl.txt | 7 +------ 5651 docs/api/tmpl/libpreludedb-unused.sgml | 9 +++++++++ 5652 docs/api/tmpl/preludedb-error.sgml | 10 ---------- 5653 5 files changed, 23 insertions(+), 17 deletions(-) 5654 5655commit 4e59dad796190626beb80a112c701324aa4e05be 5656Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5657Date: Thu Sep 15 12:58:09 2005 +0000 5658 5659 Fix warnings. 5660 5661 src/preludedb-sql-settings.c | 4 ++-- 5662 1 files changed, 2 insertions(+), 2 deletions(-) 5663 5664commit 6893aacc48bace28cc884a4cb87fabe100efcace 5665Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5666Date: Thu Sep 15 12:52:32 2005 +0000 5667 5668 Include config.h 5669 5670 src/preludedb-error.c | 1 + 5671 1 files changed, 1 insertions(+), 0 deletions(-) 5672 5673commit 9a1cbe051ed6b632d23f81954b77b5768f08fde8 5674Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5675Date: Thu Sep 15 12:52:07 2005 +0000 5676 5677 Fix warning. 5678 5679 src/include/preludedb-error.h | 2 +- 5680 1 files changed, 1 insertions(+), 1 deletions(-) 5681 5682commit dc3d11b0e45e278d7a78050afad0d8664246f23a 5683Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5684Date: Thu Sep 15 12:51:35 2005 +0000 5685 5686 Include libmissing.h 5687 5688 plugins/format/classic/classic-delete.c | 2 ++ 5689 plugins/format/classic/classic-get.c | 2 ++ 5690 plugins/format/classic/classic-sql-join.c | 2 ++ 5691 plugins/format/classic/classic-sql-select.c | 2 ++ 5692 plugins/format/classic/classic.c | 2 ++ 5693 5 files changed, 10 insertions(+), 0 deletions(-) 5694 5695commit af964c5f15a9b2154aa216f302242139cecd8a54 5696Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5697Date: Thu Sep 15 11:58:29 2005 +0000 5698 5699 Compiler used to build Perl module might be different than compiler used to build libprelude. 5700 5701 bindings/Makefile.am | 2 +- 5702 1 files changed, 1 insertions(+), 1 deletions(-) 5703 5704commit a00287424a237bb0ad06f4ae1de5f6fc62ae16be 5705Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5706Date: Wed Sep 14 15:01:46 2005 +0000 5707 5708 Build fixes. 5709 5710 bindings/perl/Makefile.PL.in | 2 +- 5711 1 files changed, 1 insertions(+), 1 deletions(-) 5712 5713commit c67165ef0ee39361e4332768d7ff070c5d06a8ce 5714Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5715Date: Mon Sep 12 14:41:17 2005 +0000 5716 5717 Slight improvement. 5718 5719 autogen.sh | 18 +++++++++++++++++- 5720 1 files changed, 17 insertions(+), 1 deletions(-) 5721 5722commit fac1214828ac3821310f551f02e8cceaeb23c69c 5723Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5724Date: Thu Sep 8 21:47:49 2005 +0000 5725 5726 Trick to avoid overwritting exception on error. 5727 5728 bindings/libpreludedb_python.i | 21 ++++++++++++++------- 5729 1 files changed, 14 insertions(+), 7 deletions(-) 5730 5731commit 2cdc9f3972477c4fb99fc53e15f09e8cc15cd277 5732Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5733Date: Wed Sep 7 12:52:31 2005 +0000 5734 5735 Enforce --lgpl use when calling gnulib-tool. 5736 5737 libmissing/Makefile.am | 9 +++- 5738 libmissing/alloca_.h | 6 +- 5739 libmissing/asnprintf.c | 8 ++-- 5740 libmissing/m4/gnulib-cache.m4 | 29 ++++++++++++ 5741 libmissing/m4/gnulib-comp.m4 | 95 +++++++++++++++++++++++++++++++++++++++++ 5742 libmissing/m4/gnulib-tool.m4 | 33 ++++++++++++++ 5743 libmissing/m4/gnulib.m4 | 54 ----------------------- 5744 libmissing/m4/minmax.m4 | 17 ++++--- 5745 libmissing/minmax.h | 8 ++-- 5746 libmissing/printf-args.c | 8 ++-- 5747 libmissing/printf-args.h | 8 ++-- 5748 libmissing/printf-parse.c | 8 ++-- 5749 libmissing/printf-parse.h | 8 ++-- 5750 libmissing/size_max.h | 8 ++-- 5751 libmissing/snprintf.c | 8 ++-- 5752 libmissing/snprintf.h | 8 ++-- 5753 libmissing/strdup.c | 8 ++-- 5754 libmissing/strdup.h | 8 ++-- 5755 libmissing/strndup.c | 8 ++-- 5756 libmissing/strndup.h | 8 ++-- 5757 libmissing/strnlen.c | 8 ++-- 5758 libmissing/strnlen.h | 8 ++-- 5759 libmissing/time_r.c | 8 ++-- 5760 libmissing/time_r.h | 8 ++-- 5761 libmissing/vasnprintf.c | 8 ++-- 5762 libmissing/vasnprintf.h | 8 ++-- 5763 libmissing/vsnprintf.c | 8 ++-- 5764 libmissing/vsnprintf.h | 8 ++-- 5765 libmissing/xsize.h | 8 ++-- 5766 src/include/libmissing.h | 1 + 5767 30 files changed, 266 insertions(+), 154 deletions(-) 5768 5769commit 1a5bd62d48848755548413910ba994412a0041ab 5770Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5771Date: Wed Sep 7 12:52:03 2005 +0000 5772 5773 Some reformatting. 5774 5775 preludedb-admin.c | 2 +- 5776 1 files changed, 1 insertions(+), 1 deletions(-) 5777 5778commit c06ee3f8bf664193c694cb9c91963da6592b65f6 5779Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5780Date: Mon Sep 5 16:39:31 2005 +0000 5781 5782 - Stats beautification. 5783 - Fix saving of alerts. 5784 - Fix help. 5785 5786 preludedb-admin.c | 17 ++++++++++------- 5787 1 files changed, 10 insertions(+), 7 deletions(-) 5788 5789commit 5db7dd0faa6965cfc5cc51f03345ec1f573f414e 5790Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5791Date: Mon Sep 5 09:12:07 2005 +0000 5792 5793 Add Copyright / License notice. 5794 5795 HACKING.README | 16 ++++++++++++++++ 5796 LICENSE.README | 19 +++++++++++++++++++ 5797 Makefile.am | 1 + 5798 3 files changed, 36 insertions(+), 0 deletions(-) 5799 5800commit dbd31b9d46677cb62421b83a7a8fdb9b09cb38cc 5801Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5802Date: Thu Aug 25 02:02:35 2005 +0000 5803 5804 Bump version number 5805 5806 NEWS | 7 +++++++ 5807 configure.in | 2 +- 5808 docs/api/libpreludedb-decl.txt | 2 +- 5809 3 files changed, 9 insertions(+), 2 deletions(-) 5810 5811commit 95254184afc0f506d6609652be331c8edf3f4289 5812Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5813Date: Thu Aug 25 01:41:49 2005 +0000 5814 5815 Remove pthread dependencies. 5816 5817 bindings/libpreludedb.i | 1 - 5818 src/preludedb-sql.c | 1 - 5819 2 files changed, 0 insertions(+), 2 deletions(-) 5820 5821commit 6a974733dbd85d3e2ae6dfe46db5c5f75cc338df 5822Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5823Date: Thu Aug 25 01:41:27 2005 +0000 5824 5825 Update GnuLib code. 5826 5827 libmissing/m4/gnulib.m4 | 3 +++ 5828 libmissing/m4/onceonly_2_57.m4 | 4 ++-- 5829 libmissing/m4/strndup.m4 | 6 ++---- 5830 libmissing/m4/strnlen.m4 | 10 +++++++--- 5831 libmissing/strndup.c | 10 +++------- 5832 libmissing/strnlen.h | 32 ++++++++++++++++++++++++++++++++ 5833 6 files changed, 49 insertions(+), 16 deletions(-) 5834 5835commit 9304f9a44a45324b14683b17c5df3ed8cfd4297c 5836Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5837Date: Wed Aug 24 15:44:10 2005 +0000 5838 5839 Make sure we link correctly the Perl bindings to libpreludedb. 5840 5841 bindings/Makefile.am | 2 +- 5842 bindings/perl/Makefile.PL.in | 4 ++-- 5843 2 files changed, 3 insertions(+), 3 deletions(-) 5844 5845commit fd37f89a54fb7558e100b1ca5dcdf1d35b82faad 5846Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5847Date: Sun Aug 21 23:32:05 2005 +0000 5848 5849 Fix broken compare. 5850 5851 plugins/format/classic/classic-path-resolve.c | 8 ++++---- 5852 1 files changed, 4 insertions(+), 4 deletions(-) 5853 5854commit 775015125de2b00b6c334966aa29a198dd488b0d 5855Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5856Date: Sun Aug 21 17:48:22 2005 +0000 5857 5858 Get rid of the gtk-doc dependencies for generating the configure script. 5859 5860 gtk-doc.make | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5861 1 files changed, 153 insertions(+), 0 deletions(-) 5862 5863commit c58998745522a9bb9aff4f2f9ad139a115e5c69f 5864Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5865Date: Sun Aug 21 17:35:49 2005 +0000 5866 5867 Add gtk-doc.m4, to avoid external dependencies. 5868 5869 m4/gtk-doc.m4 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 5870 1 files changed, 53 insertions(+), 0 deletions(-) 5871 5872commit fae94009a914aa1c079e2e21e103eeddee0b28c3 5873Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5874Date: Sun Aug 21 11:06:17 2005 +0000 5875 5876 Empty additional data are valid. 5877 5878 plugins/format/classic/classic-get.c | 5 +---- 5879 1 files changed, 1 insertions(+), 4 deletions(-) 5880 5881commit 30b76c89c80fd2632d04b27755273349316d2fe5 5882Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5883Date: Sun Aug 21 11:03:30 2005 +0000 5884 5885 Oops, use prelude_error_get_code(). 5886 5887 plugins/format/classic/classic-sql-join.c | 2 +- 5888 1 files changed, 1 insertions(+), 1 deletions(-) 5889 5890commit 4b68c13543d421d7947db0582da5805519571df9 5891Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5892Date: Sun Aug 21 11:02:29 2005 +0000 5893 5894 Remove deprecated. 5895 5896 configure.in | 2 +- 5897 1 files changed, 1 insertions(+), 1 deletions(-) 5898 5899commit 790fa357fcbf33d193886c7d2a19f8e7658d7249 5900Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5901Date: Sat Aug 20 17:56:18 2005 +0000 5902 5903 Cleanup resolve_indexes() factor out some code. 5904 5905 plugins/format/classic/classic-sql-join.c | 49 ++++++++++++++++------------- 5906 1 files changed, 27 insertions(+), 22 deletions(-) 5907 5908commit ffec9fe5d9af71d3ebfa85ec5e2f1d698f8bca39 5909Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5910Date: Sat Aug 20 17:54:16 2005 +0000 5911 5912 Forgot to commit old version bump. 5913 5914 NEWS | 5 +++++ 5915 configure.in | 2 +- 5916 2 files changed, 6 insertions(+), 1 deletions(-) 5917 5918commit d4bb1a11fbb7c23ed4269e89a51a667ebba47d91 5919Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5920Date: Wed Aug 17 08:35:15 2005 +0000 5921 5922 Explicit link from preludedb-admin to libprelude. 5923 5924 Makefile.am | 4 +++- 5925 1 files changed, 3 insertions(+), 1 deletions(-) 5926 5927commit 014cac81cb52a32538d988853281f353c418d48b 5928Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5929Date: Tue Aug 16 23:26:54 2005 +0000 5930 5931 Version bump. 5932 5933 NEWS | 22 ++++ 5934 configure.in | 2 +- 5935 docs/api/libpreludedb-decl.txt | 161 +++++++++++++---------------- 5936 docs/api/libpreludedb-sections.txt | 25 ++--- 5937 docs/api/tmpl/libpreludedb-unused.sgml | 127 +++++++++++++++++++++++ 5938 docs/api/tmpl/preludedb-plugin-sql.sgml | 146 ++------------------------ 5939 docs/api/tmpl/preludedb-sql-settings.sgml | 52 +++++++++ 5940 docs/api/tmpl/preludedb-sql.sgml | 9 -- 5941 8 files changed, 289 insertions(+), 255 deletions(-) 5942 5943commit 8b9c7e23d7a57e078542d65e9ae18ca505c10eef 5944Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5945Date: Tue Aug 16 23:11:54 2005 +0000 5946 5947 Make sure the path have a minimum depth of 2. 5948 5949 plugins/format/classic/classic-sql-join.c | 6 +++++- 5950 1 files changed, 5 insertions(+), 1 deletions(-) 5951 5952commit e28cc881a93b4903fdf3c5fd4d4767d02ade4d24 5953Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5954Date: Tue Aug 16 16:43:28 2005 +0000 5955 5956 Fix typos. 5957 5958 bindings/libpreludedb_python.i | 4 ++-- 5959 1 files changed, 2 insertions(+), 2 deletions(-) 5960 5961commit a6dee5f52ed1ec760944143247f96436b6fad16f 5962Author: Rob Holand <rob@inversepath.com> 5963Date: Tue Aug 16 12:48:22 2005 +0000 5964 5965 Allow useful exceptions to be raised on preludedb errors 5966 5967 bindings/libpreludedb_python.i | 138 +++++++++++++++++++++++++++++++++++++++- 5968 1 files changed, 137 insertions(+), 1 deletions(-) 5969 5970commit a5a26b427d9263a027f278ea529ac667d5a0e3b1 5971Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5972Date: Tue Aug 16 10:46:41 2005 +0000 5973 5974 Re-establish signal handler for older *nix. Print statistics on SIGQUIT. 5975 5976 preludedb-admin.c | 15 ++++++++++++--- 5977 1 files changed, 12 insertions(+), 3 deletions(-) 5978 5979commit f23678cde0ff55687a4323265503de5f14c9be14 5980Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5981Date: Tue Aug 16 09:55:04 2005 +0000 5982 5983 Fix error check. 5984 5985 preludedb-admin.c | 4 ++-- 5986 1 files changed, 2 insertions(+), 2 deletions(-) 5987 5988commit c9ad056d2f7dc37abdcedc7394fa1cf29f6ecf5c 5989Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5990Date: Tue Aug 16 09:07:04 2005 +0000 5991 5992 Fix FileAccess_Permission insertion. 5993 5994 plugins/format/classic/classic-insert.c | 5 ++--- 5995 1 files changed, 2 insertions(+), 3 deletions(-) 5996 5997commit ebe5303d738db3e14d6ad736c92315c469ae1f3f 5998Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 5999Date: Tue Aug 16 08:52:31 2005 +0000 6000 6001 Get user_id tty when retrieving user_id. 6002 6003 plugins/format/classic/classic-get.c | 8 ++++++-- 6004 1 files changed, 6 insertions(+), 2 deletions(-) 6005 6006commit d3293556ee2c82af172b7e9592bb1e9e5b0b1c91 6007Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6008Date: Mon Aug 15 19:53:01 2005 +0000 6009 6010 Always pre-process substr. 6011 6012 src/preludedb-sql.c | 4 ++-- 6013 1 files changed, 2 insertions(+), 2 deletions(-) 6014 6015commit 6238aec400f6726a72e267d5aac741437b84f6f5 6016Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6017Date: Mon Aug 15 19:41:50 2005 +0000 6018 6019 Always dump stats on success. 6020 6021 preludedb-admin.c | 3 +-- 6022 1 files changed, 1 insertions(+), 2 deletions(-) 6023 6024commit e02270c89cf45362dc46cd5ac018ba4f29cdb5e1 6025Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6026Date: Mon Aug 15 19:00:57 2005 +0000 6027 6028 Fine grained libprelude operator now allow us to have similar behavior 6029 between different database implementation. 6030 6031 MySQL: Default match become case insensitive, Implement REGEX matching. 6032 Implement case insensitive behavior for regexp/substr operation. 6033 6034 PostgreSQL: Implement case insensitive behavior for the support operators, 6035 implement regexp() matching. 6036 6037 Fix invalid UTC offset applied to broken down time match. 6038 6039 plugins/sql/mysql/mysql.c | 64 +++++++++++++++------ 6040 plugins/sql/pgsql/pgsql.c | 69 +++++++++++++++++------ 6041 src/include/preludedb-plugin-sql.h | 7 +- 6042 src/include/preludedb-sql.h | 2 - 6043 src/preludedb-sql.c | 109 +++++++++++++++++++----------------- 6044 5 files changed, 160 insertions(+), 91 deletions(-) 6045 6046commit 0c27b1e05a8d112ac3f2376895cb7c34e7e9ec91 6047Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6048Date: Mon Aug 15 17:11:49 2005 +0000 6049 6050 Improve error reporting. 6051 6052 preludedb-admin.c | 69 ++++++++++++++++++++++++++++++++-------------------- 6053 1 files changed, 42 insertions(+), 27 deletions(-) 6054 6055commit 1143dee5f6cebfaa98787ee28ffca88fc50e894d 6056Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6057Date: Mon Aug 15 16:24:57 2005 +0000 6058 6059 Dump more statistics. Implement a print() command. Bug fixes. 6060 6061 preludedb-admin.c | 272 ++++++++++++++++++++++++++++++++++++++++++++-------- 6062 1 files changed, 230 insertions(+), 42 deletions(-) 6063 6064commit e9b7d7fa79fec7b79199facc26f86d04bffe5372 6065Author: Rob Holand <rob@inversepath.com> 6066Date: Mon Aug 15 13:31:00 2005 +0000 6067 6068 fix include paths 6069 6070 preludedb-admin.c | 10 +++++----- 6071 1 files changed, 5 insertions(+), 5 deletions(-) 6072 6073commit df985e8c71d4d31ec7ee6bc35734d327835b231d 6074Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6075Date: Mon Aug 15 12:52:44 2005 +0000 6076 6077 Fix include path. 6078 6079 Makefile.am | 1 + 6080 1 files changed, 1 insertions(+), 0 deletions(-) 6081 6082commit cd4600bff4ea0a1205a5e175da96d7004a180f77 6083Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6084Date: Fri Aug 12 08:36:25 2005 +0000 6085 6086 Move idmef_criterion_operator_t to database operator translation to the SQL 6087 plugins, since these operator are not portable accross database. Implement 6088 the regex operator (which is different accros implementation and could not 6089 be done without this change). 6090 6091 plugins/sql/mysql/mysql.c | 35 ++++++++++++++- 6092 plugins/sql/pgsql/pgsql.c | 32 +++++++++++++- 6093 src/include/preludedb-plugin-sql.h | 87 +++++++++++++++++++++-------------- 6094 src/include/preludedb-sql.h | 2 +- 6095 src/preludedb-sql.c | 33 +++----------- 6096 5 files changed, 123 insertions(+), 66 deletions(-) 6097 6098commit 8a71d8853e76a56e05103ed6e5d0a2fecb6e9fbe 6099Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6100Date: Wed Aug 10 10:37:59 2005 +0000 6101 6102 Handle SIGINT and SIGTERM so that the current transaction is terminated before 6103 processing the signal. Print a specific message when exiting because we were interupted by a signal, and provide the necessary offset to be used to resume the transaction. 6104 6105 Add a --offset option, to skip processing of events until the provided offset is reached. This is useful for resuming failed/interupted transaction. 6106 6107 Implement the offset and count limit to the load operation. 6108 6109 Fix memory leak on database copy. 6110 6111 preludedb-admin.c | 132 +++++++++++++++++++++++++++++++++++++++-------------- 6112 1 files changed, 97 insertions(+), 35 deletions(-) 6113 6114commit 2904bf4e96a22e47832f1b63df7713ce1dbc2ac2 6115Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6116Date: Mon Aug 8 21:14:22 2005 +0000 6117 6118 New preludedb-admin tool. Allow save/load/delete/copy of PreludeDB database. 6119 6120 Makefile.am | 5 +- 6121 preludedb-admin.c | 639 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 6122 2 files changed, 643 insertions(+), 1 deletions(-) 6123 6124commit 15031149de1e2e83474804908c92a594b425c339 6125Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6126Date: Mon Aug 8 21:12:47 2005 +0000 6127 6128 Handle type/query logging provided from SQL settings. 6129 6130 src/preludedb-sql.c | 15 ++++++++++++--- 6131 1 files changed, 12 insertions(+), 3 deletions(-) 6132 6133commit 569e3f96ddb2ed69520d9099da18098251f96e67 6134Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6135Date: Mon Aug 8 21:11:40 2005 +0000 6136 6137 Fix broken user/pass defaulting to "prelude". This forbid the user to have, for 6138 example, an empty database password. Plus this is not intuitive for the user. 6139 6140 Provide a way to set the type of database through preludedb_sql_settings_t. Ditto 6141 for the query logging feature. 6142 6143 src/include/preludedb-sql-settings.h | 8 ++++++++ 6144 src/preludedb-sql-settings.c | 6 ++++-- 6145 2 files changed, 12 insertions(+), 2 deletions(-) 6146 6147commit 236bc04a5bd3ce9027a50894586b3cd6d60b704d 6148Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6149Date: Tue Aug 2 10:42:55 2005 +0000 6150 6151 Include missing schema. Bump version number. 6152 6153 NEWS | 5 +++++ 6154 configure.in | 2 +- 6155 plugins/format/classic/Makefile.am | 5 +++-- 6156 plugins/format/classic/mysql-update-14-3.sql | 2 +- 6157 4 files changed, 10 insertions(+), 4 deletions(-) 6158 6159commit 196e151f76e7e853a293f32773546b681f573fd1 6160Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6161Date: Mon Aug 1 21:37:10 2005 +0000 6162 6163 Update documentation, NEWS. Bump version number. 6164 6165 NEWS | 11 +++++++++++ 6166 configure.in | 2 +- 6167 docs/api/libpreludedb-decl.txt | 2 +- 6168 docs/api/tmpl/preludedb-error.sgml | 3 +++ 6169 docs/api/tmpl/preludedb-path-selection.sgml | 3 +++ 6170 docs/api/tmpl/preludedb-plugin-format.sgml | 3 +++ 6171 docs/api/tmpl/preludedb-plugin-sql.sgml | 3 +++ 6172 docs/api/tmpl/preludedb-sql-settings.sgml | 3 +++ 6173 docs/api/tmpl/preludedb-sql.sgml | 3 +++ 6174 docs/api/tmpl/preludedb-version.sgml | 3 +++ 6175 docs/api/tmpl/preludedb.sgml | 3 +++ 6176 11 files changed, 37 insertions(+), 2 deletions(-) 6177 6178commit 59aa5f7eb28bf5848ea50008a0461c9422fc183f 6179Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6180Date: Mon Aug 1 16:40:31 2005 +0000 6181 6182 Remode prelude-db-create reference. 6183 6184 Makefile.am | 2 +- 6185 1 files changed, 1 insertions(+), 1 deletions(-) 6186 6187commit 68cb74c9a2a0b20f94ffa3c877ec5994d69f6157 6188Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6189Date: Mon Aug 1 16:39:54 2005 +0000 6190 6191 Remove obsolete prelude-db-create script. 6192 6193 configure.in | 3 - 6194 prelude-db-create.sh.in | 405 ----------------------------------------------- 6195 2 files changed, 0 insertions(+), 408 deletions(-) 6196 6197commit 49d7a24100ed92e2b658496ff4468dcd890d38dc 6198Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6199Date: Mon Aug 1 16:35:08 2005 +0000 6200 6201 Update GnuLib code. 6202 6203 libmissing/Makefile.am | 5 ++--- 6204 libmissing/m4/gnulib.m4 | 3 ++- 6205 libmissing/m4/size_max.m4 | 10 +++++----- 6206 libmissing/size_max.h | 27 +++++++++++++++++++++++++++ 6207 libmissing/time_r.h | 13 ++++++++++++- 6208 5 files changed, 48 insertions(+), 10 deletions(-) 6209 6210commit cf0c360c2d40035d50ae81973e74a15204f0faf2 6211Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6212Date: Mon Aug 1 16:31:02 2005 +0000 6213 6214 Rename Prelude_SNMPService to Prelude_SnmpService to avoid special case at place where 6215 we use this table. Fix SNMP table insertion error. 6216 6217 Fix libpreludedb mapping for IDMEF FileAccess->permission member. 6218 Fix libpreludedb mapping for IDMEF WebService->arg member. 6219 6220 Bump classic version to 14.3. 6221 6222 6223 Include MySQL and PostgreSQL schema upgrade by Sebastien Tricaud <toady@gscore.org>. 6224 6225 plugins/format/classic/classic-delete.c | 2 +- 6226 plugins/format/classic/classic-get.c | 2 +- 6227 plugins/format/classic/classic-insert.c | 4 +- 6228 plugins/format/classic/classic-path-resolve.c | 32 ++++++++++++++++++++++++- 6229 plugins/format/classic/classic.c | 2 +- 6230 plugins/format/classic/mysql-update-14-3.sql | 3 ++ 6231 plugins/format/classic/mysql.sql | 6 ++-- 6232 plugins/format/classic/pgsql-update-14-3.sql | 3 ++ 6233 plugins/format/classic/pgsql.sql | 6 ++-- 6234 9 files changed, 48 insertions(+), 12 deletions(-) 6235 6236commit 6d978394ab1c5d452c72971fbf7936da5238b04c 6237Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6238Date: Mon Aug 1 14:50:39 2005 +0000 6239 6240 Set FD_CLOEXEC on preludedb logfile. 6241 6242 src/preludedb-sql.c | 16 +++++++++++++++- 6243 1 files changed, 15 insertions(+), 1 deletions(-) 6244 6245commit 928b2f652bb8b38f9a68b064e3d1fe47d0cad1a1 6246Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6247Date: Fri Jul 22 11:18:52 2005 +0000 6248 6249 Escape '%' character, since the caller is expected to use '*'. 6250 6251 src/preludedb-sql.c | 35 +++++++++++++++++++++-------------- 6252 1 files changed, 21 insertions(+), 14 deletions(-) 6253 6254commit 746c3a59bd1d7eaa7789ee355a621bc7e0fda262 6255Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6256Date: Mon Jul 11 15:17:55 2005 +0000 6257 6258 Forgot to check in rc8 bump. 6259 6260 NEWS | 13 +++++++++++++ 6261 configure.in | 2 +- 6262 docs/api/libpreludedb-decl.txt | 2 +- 6263 3 files changed, 15 insertions(+), 2 deletions(-) 6264 6265commit 992729e9aae214984bc0b63d6fc7bb399bd5be12 6266Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6267Date: Thu Jul 7 16:05:43 2005 +0000 6268 6269 Update GnuLib code. Include time_r module. 6270 6271 libmissing/Makefile.am | 10 +++++- 6272 libmissing/m4/extensions.m4 | 30 ++++++++++++++++++ 6273 libmissing/m4/gnulib.m4 | 8 ++++- 6274 libmissing/m4/restrict.m4 | 38 +++++++++++++++++++++++ 6275 libmissing/m4/time_r.m4 | 38 +++++++++++++++++++++++ 6276 libmissing/time_r.c | 69 +++++++++++++++++++++++++++++++++++++++++++ 6277 libmissing/time_r.h | 46 ++++++++++++++++++++++++++++ 6278 src/include/libmissing.h | 28 +++++++++++++++++ 6279 8 files changed, 263 insertions(+), 4 deletions(-) 6280 6281commit 18a5b1db737254d6fecbd45c50c46cdf951f8d4e 6282Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6283Date: Sun Jul 3 10:52:44 2005 +0000 6284 6285 Workaround MakeMaker issue where generated Perl Makefile would be invalid 6286 when UTF-8 is enabled. 6287 6288 bindings/Makefile.am | 15 ++++++++++++--- 6289 1 files changed, 12 insertions(+), 3 deletions(-) 6290 6291commit db5680d6604322165cf107cf6a8db76e70e9dbe1 6292Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6293Date: Fri Jul 1 08:35:08 2005 +0000 6294 6295 Build/Link libmissing. 6296 6297 Makefile.am | 2 +- 6298 configure.in | 1 + 6299 src/Makefile.am | 2 +- 6300 src/include/Makefile.am | 3 +-- 6301 4 files changed, 4 insertions(+), 4 deletions(-) 6302 6303commit a36ace390420e87567f4020ff71248bf2cc4c597 6304Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6305Date: Fri Jul 1 08:24:11 2005 +0000 6306 6307 Support GnuLib for portability. 6308 6309 Makefile.am | 2 +- 6310 configure.in | 20 +- 6311 libmissing/Makefile.am | 74 ++ 6312 libmissing/alloca_.h | 52 ++ 6313 libmissing/asnprintf.c | 37 + 6314 libmissing/m4/alloca.m4 | 42 ++ 6315 libmissing/m4/eoverflow.m4 | 64 ++ 6316 libmissing/m4/gnulib.m4 | 46 ++ 6317 libmissing/m4/intmax_t.m4 | 61 ++ 6318 libmissing/m4/inttypes_h.m4 | 26 + 6319 libmissing/m4/longdouble.m4 | 28 + 6320 libmissing/m4/longlong.m4 | 23 + 6321 libmissing/m4/minmax.m4 | 38 + 6322 libmissing/m4/onceonly_2_57.m4 | 86 +++ 6323 libmissing/m4/signed.m4 | 17 + 6324 libmissing/m4/size_max.m4 | 59 ++ 6325 libmissing/m4/snprintf.m4 | 15 + 6326 libmissing/m4/stdint_h.m4 | 26 + 6327 libmissing/m4/strdup.m4 | 17 + 6328 libmissing/m4/strndup.m4 | 23 + 6329 libmissing/m4/strnlen.m4 | 25 + 6330 libmissing/m4/vasnprintf.m4 | 58 ++ 6331 libmissing/m4/vsnprintf.m4 | 15 + 6332 libmissing/m4/wchar_t.m4 | 20 + 6333 libmissing/m4/wint_t.m4 | 20 + 6334 libmissing/m4/xsize.m4 | 13 + 6335 libmissing/minmax.h | 60 ++ 6336 libmissing/printf-args.c | 118 ++++ 6337 libmissing/printf-args.h | 136 ++++ 6338 libmissing/printf-parse.c | 536 +++++++++++++++ 6339 libmissing/printf-parse.h | 74 ++ 6340 libmissing/snprintf.c | 60 ++ 6341 libmissing/snprintf.h | 29 + 6342 libmissing/strdup.c | 56 ++ 6343 libmissing/strdup.h | 29 + 6344 libmissing/strndup.c | 55 ++ 6345 libmissing/strndup.h | 30 + 6346 libmissing/strnlen.c | 48 ++ 6347 libmissing/vasnprintf.c | 901 +++++++++++++++++++++++++ 6348 libmissing/vasnprintf.h | 77 +++ 6349 libmissing/vsnprintf.c | 58 ++ 6350 libmissing/vsnprintf.h | 31 + 6351 libmissing/xsize.h | 108 +++ 6352 plugins/format/classic/Makefile.am | 2 +- 6353 plugins/format/classic/classic-insert.c | 3 + 6354 plugins/format/classic/classic-path-resolve.c | 3 + 6355 plugins/sql/mysql/Makefile.am | 2 +- 6356 plugins/sql/mysql/mysql.c | 5 +- 6357 plugins/sql/pgsql/Makefile.am | 2 +- 6358 plugins/sql/pgsql/pgsql.c | 1 + 6359 src/Makefile.am | 2 +- 6360 src/include/libmissing.h | 11 + 6361 src/preludedb-path-selection.c | 3 + 6362 src/preludedb-sql-settings.c | 26 +- 6363 src/preludedb-sql.c | 2 + 6364 src/preludedb.c | 5 +- 6365 56 files changed, 3345 insertions(+), 35 deletions(-) 6366 6367commit 06edfde3637b8728e773edc5adbc388eb4ecefdd 6368Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6369Date: Sun Jun 19 16:16:33 2005 +0000 6370 6371 Fix PRELUDE_PRIu64 usage. 6372 6373 plugins/format/classic/classic-get.c | 2 +- 6374 1 files changed, 1 insertions(+), 1 deletions(-) 6375 6376commit 778e572bf0aa690563aad2d8d92eba03cb13bd21 6377Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6378Date: Fri Jun 10 12:56:07 2005 +0000 6379 6380 gcc4 shut up. 6381 6382 plugins/format/classic/classic-get.c | 2 +- 6383 plugins/format/classic/classic-insert.c | 4 ++-- 6384 plugins/format/classic/classic.c | 3 ++- 6385 plugins/sql/mysql/mysql.c | 2 +- 6386 src/preludedb-sql-settings.c | 2 +- 6387 5 files changed, 7 insertions(+), 6 deletions(-) 6388 6389commit 509e5e0d6215a4eabdaee328eb72257883f108ea 6390Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6391Date: Fri Jun 10 12:55:45 2005 +0000 6392 6393 gcc4 shut up. Fix a possible memory leak. 6394 6395 plugins/sql/pgsql/pgsql.c | 8 ++++---- 6396 1 files changed, 4 insertions(+), 4 deletions(-) 6397 6398commit 5693cc43c478257d129a18743dccb1662b444111 6399Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6400Date: Fri Jun 10 12:54:49 2005 +0000 6401 6402 Remove file installed in platform specific prefix. 6403 6404 bindings/python/setup.py.in | 7 +++++-- 6405 1 files changed, 5 insertions(+), 2 deletions(-) 6406 6407commit 5028ed9412a99ed0940afc639c92ede4ccb015ba 6408Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6409Date: Fri Jun 3 11:43:48 2005 +0000 6410 6411 Remove debug spew. 6412 6413 src/preludedb-sql.c | 2 -- 6414 1 files changed, 0 insertions(+), 2 deletions(-) 6415 6416commit bbfc09a64fe191850d253b3d8ec73c9b336c7fe6 6417Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6418Date: Thu Jun 2 17:38:19 2005 +0000 6419 6420 Handle broken down criteria match. 6421 6422 src/preludedb-sql.c | 117 +++++++++++++++++++++++++++++++++++++++++++++++--- 6423 1 files changed, 110 insertions(+), 7 deletions(-) 6424 6425commit 604a252e30cf3768ea159268060f0612b5650170 6426Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6427Date: Thu Jun 2 08:01:57 2005 +0000 6428 6429 Improve error reporing in case plugin directory does not exist. 6430 6431 src/preludedb.c | 6 +++--- 6432 1 files changed, 3 insertions(+), 3 deletions(-) 6433 6434commit cc3d253accdf0d427cd94c852b5c91f3b1acb8d7 6435Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6436Date: Wed Jun 1 08:05:48 2005 +0000 6437 6438 Forgot to commit last libpreludedb version bump. 6439 6440 NEWS | 5 +++++ 6441 configure.in | 2 +- 6442 docs/api/libpreludedb-decl.txt | 2 +- 6443 3 files changed, 7 insertions(+), 2 deletions(-) 6444 6445commit f7428369affe3b9b6872390482a54c6831f41b5e 6446Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6447Date: Mon May 30 14:11:27 2005 +0000 6448 6449 Missing comma. 6450 6451 plugins/format/classic/classic-delete.c | 2 +- 6452 1 files changed, 1 insertions(+), 1 deletions(-) 6453 6454commit ed04747a7f3b32703aca406749f0a915daa3e972 6455Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6456Date: Mon May 30 14:09:34 2005 +0000 6457 6458 Bump version number. Update docs. 6459 6460 NEWS | 22 ++++++++++++++++++++++ 6461 configure.in | 2 +- 6462 docs/api/libpreludedb-decl.txt | 2 +- 6463 3 files changed, 24 insertions(+), 2 deletions(-) 6464 6465commit 05831c4146ebd24def6faa92c52619f0b839da2e 6466Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6467Date: Mon May 30 07:39:13 2005 +0000 6468 6469 Untabify. 6470 6471 src/preludedb-sql-settings.c | 62 +++++++++++++++++++++--------------------- 6472 1 files changed, 31 insertions(+), 31 deletions(-) 6473 6474commit 87bfb3cb355af9107984de71379ad8c5ff991048 6475Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6476Date: Mon May 30 07:38:40 2005 +0000 6477 6478 Fix warnings. Cleanup. 6479 6480 src/preludedb-sql-settings.c | 34 +++++++++++++++++++++++++++++----- 6481 1 files changed, 29 insertions(+), 5 deletions(-) 6482 6483commit e3f75aaf12b63957b1acdfa9e4de97bd0bf95e20 6484Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6485Date: Mon May 30 06:38:37 2005 +0000 6486 6487 Cleanup default_table_name_resolver(), make it faster. 6488 Use time_without_usec_field_name_resolver() for Prelude_File time member. 6489 6490 plugins/format/classic/classic-path-resolve.c | 57 ++++++++++++++++-------- 6491 1 files changed, 38 insertions(+), 19 deletions(-) 6492 6493commit 250cd79ac86620951c792d1d3866cb75e9a328cd 6494Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6495Date: Sun May 29 15:04:13 2005 +0000 6496 6497 Fix warnings. 6498 6499 src/preludedb-sql.c | 8 ++++---- 6500 1 files changed, 4 insertions(+), 4 deletions(-) 6501 6502commit daa271663107b48cac106eb6f7ad58657c494e2c 6503Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6504Date: Thu May 26 16:56:36 2005 +0000 6505 6506 Patch from Cedric Foll <cedric.foll@ac-rouen.fr>, that should reduce 6507 DELETE operation by a factor of 2. 6508 6509 plugins/format/classic/classic-delete.c | 18 +++++++++--------- 6510 1 files changed, 9 insertions(+), 9 deletions(-) 6511 6512commit 0ab0316af2910a0f4feddd0f0532f43ceab4e868 6513Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6514Date: Thu May 19 10:49:15 2005 +0000 6515 6516 Patch from Nicolas Delon, fixing DetectTime SQL join generation. DetectTime 6517 has no parent_type. 6518 6519 plugins/format/classic/classic-sql-join.c | 8 ++++++-- 6520 1 files changed, 6 insertions(+), 2 deletions(-) 6521 6522commit feb064203b40923b786cebc73b7b573904da980c 6523Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6524Date: Wed May 18 16:49:06 2005 +0000 6525 6526 Remove duplicate inode_number get. 6527 Handle file_type insertion. 6528 6529 plugins/format/classic/classic-insert.c | 18 +++++++++++++----- 6530 1 files changed, 13 insertions(+), 5 deletions(-) 6531 6532commit 512804c36339f2a1f8df1e0d1629a16ce4f7a935 6533Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6534Date: Wed May 18 16:47:27 2005 +0000 6535 6536 Handle file_type get. s/and/AND/. 6537 6538 plugins/format/classic/classic-get.c | 8 ++++++-- 6539 1 files changed, 6 insertions(+), 2 deletions(-) 6540 6541commit b8c195f5da1c31cc712b2eed2438500ee59a24e6 6542Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6543Date: Wed May 18 16:46:33 2005 +0000 6544 6545 Update. 6546 6547 plugins/format/classic/Makefile.am | 7 ++++++- 6548 1 files changed, 6 insertions(+), 1 deletions(-) 6549 6550commit c1ea555d0be53a05e06732d77ebf560e06bc04eb 6551Author: Sebastien Tricaud <s.tricaud@inl.fr> 6552Date: Wed May 18 16:41:44 2005 +0000 6553 6554 database upgrade and missing fields added to pgsql.sql 6555 6556 ChangeLog | 8 + 6557 plugins/format/classic/classic.c | 2 +- 6558 plugins/format/classic/mysql-update-14-2.sql | 29 +++ 6559 plugins/format/classic/mysql.sql | 5 +- 6560 plugins/format/classic/pgsql-update-14-2.sql | 295 ++++++++++++++++++++++++++ 6561 plugins/format/classic/pgsql.sql | 115 +++++----- 6562 6 files changed, 393 insertions(+), 61 deletions(-) 6563 6564commit a00eb7c7306215f17f5637ccb9b6383dadcfb6a4 6565Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6566Date: Wed May 18 15:35:38 2005 +0000 6567 6568 Fix portability problem with generated request. PostgreSQL might fail if the 6569 operator is not separated from operand. 6570 6571 plugins/format/classic/classic-sql-join.c | 4 ++-- 6572 1 files changed, 2 insertions(+), 2 deletions(-) 6573 6574commit 6315f2bba9cc969e7e15d4907323889cd4c1b7ac 6575Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6576Date: Thu May 12 15:45:42 2005 +0000 6577 6578 Remove trailing \n from PgSQL error return. 6579 6580 plugins/sql/pgsql/pgsql.c | 25 ++++++++++++++++++++++--- 6581 1 files changed, 22 insertions(+), 3 deletions(-) 6582 6583commit b93eac614c903dcb5ba2ea33678cc7e663a043a0 6584Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6585Date: Mon May 9 08:09:05 2005 +0000 6586 6587 Avoid not portable %hh convertion specifier. 6588 6589 plugins/format/classic/classic-insert.c | 14 +++++++++++- 6590 src/preludedb-sql.c | 37 +++++++++++++++++++++++++------ 6591 2 files changed, 43 insertions(+), 8 deletions(-) 6592 6593commit eb05e2a3aecbc2eee3e9f1da5eadcce6dbe259d9 6594Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6595Date: Sat Apr 23 12:11:48 2005 +0000 6596 6597 Fix insertion of Prelude_FileAccess. 6598 6599 plugins/format/classic/classic-insert.c | 4 ++-- 6600 1 files changed, 2 insertions(+), 2 deletions(-) 6601 6602commit 7a32e8d784b7f9338487dd5b3d619d88d0bd8160 6603Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6604Date: Tue Apr 19 14:39:01 2005 +0000 6605 6606 fix bad indexes 6607 6608 plugins/format/classic/mysql.sql | 27 ++++++++++++++++----------- 6609 1 files changed, 16 insertions(+), 11 deletions(-) 6610 6611commit ed6b53aab22364d7d77822b31c504eae117aac03 6612Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6613Date: Sun Apr 17 23:10:29 2005 +0000 6614 6615 Bump version number, update documentation. 6616 6617 NEWS | 15 +++++++++++++++ 6618 configure.in | 7 ++++--- 6619 docs/api/libpreludedb-decl.txt | 2 +- 6620 3 files changed, 20 insertions(+), 4 deletions(-) 6621 6622commit 5af875120bae895afb9ebe396686ef77fab5bf8f 6623Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6624Date: Thu Apr 14 16:07:43 2005 +0000 6625 6626 fix duplicated code 6627 6628 plugins/format/classic/classic-get.c | 10 ---------- 6629 1 files changed, 0 insertions(+), 10 deletions(-) 6630 6631commit 039a881efc81681b2f9a0532142621463282fdf5 6632Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6633Date: Thu Apr 14 09:17:42 2005 +0000 6634 6635 fix returned values 6636 6637 plugins/format/classic/classic-insert.c | 15 +++++++++------ 6638 1 files changed, 9 insertions(+), 6 deletions(-) 6639 6640commit 3b2734eddc8b608dab3a67eda4641bba838eb895 6641Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6642Date: Thu Apr 14 09:13:07 2005 +0000 6643 6644 bug fix: confidence is a float, not an integer 6645 6646 plugins/format/classic/classic-insert.c | 2 +- 6647 1 files changed, 1 insertions(+), 1 deletions(-) 6648 6649commit f7b077de33e794a6c00f3164ba82988770026e19 6650Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6651Date: Wed Apr 13 06:36:51 2005 +0000 6652 6653 fix bad quoting (thanks to Ruben Alonso <1rualons@rigel.deusto.es> for 6654 pointing that out) 6655 6656 plugins/format/classic/pgsql-update-14-1.sql | 2 +- 6657 1 files changed, 1 insertions(+), 1 deletions(-) 6658 6659commit ad0dd980183a11feab4a36dd57f34325b372f0bf 6660Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6661Date: Tue Apr 12 16:05:40 2005 +0000 6662 6663 update schema version 6664 6665 plugins/format/classic/pgsql.sql | 2 +- 6666 1 files changed, 1 insertions(+), 1 deletions(-) 6667 6668commit af3f4558a33eba1049e570a0f36331e286b01ee3 6669Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6670Date: Tue Apr 12 15:37:39 2005 +0000 6671 6672 bug fix: gmtoff and usec fields were inverted while building the query string, 6673 that lead to bad usec/gmtoff values when doing a preludedb_get_values 6674 6675 plugins/format/classic/classic-path-resolve.c | 2 +- 6676 1 files changed, 1 insertions(+), 1 deletions(-) 6677 6678commit c4168080ac8a03e89f1e33849811a9d6b0997b64 6679Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6680Date: Tue Apr 12 09:22:04 2005 +0000 6681 6682 bug fix: forgot to insert checksum index in Prelude_Checksum table 6683 6684 plugins/format/classic/classic-insert.c | 6 +++--- 6685 1 files changed, 3 insertions(+), 3 deletions(-) 6686 6687commit b8ae18088fb5167ae6b5b146b16a48163f2d992e 6688Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6689Date: Sun Apr 10 17:58:11 2005 +0000 6690 6691 bug fix: forgot to update the schema version 6692 6693 plugins/format/classic/mysql.sql | 2 +- 6694 1 files changed, 1 insertions(+), 1 deletions(-) 6695 6696commit 0792802e47a0ec4b9803d7ee4860e773d1daa687 6697Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6698Date: Sun Apr 10 00:50:50 2005 +0000 6699 6700 Update API documentation, NEWS. Bump version number. 6701 6702 NEWS | 29 +++++++++++++++++---- 6703 configure.in | 3 +- 6704 docs/api/libpreludedb-decl.txt | 37 +++++++++++++++++++++++++-- 6705 docs/api/libpreludedb-sections.txt | 7 ++++- 6706 docs/api/tmpl/libpreludedb-unused.sgml | 8 ++++++ 6707 docs/api/tmpl/preludedb-error.sgml | 5 ++++ 6708 docs/api/tmpl/preludedb-plugin-format.sgml | 18 +++++++++++++ 6709 docs/api/tmpl/preludedb.sgml | 26 +++++++++++++++++++- 6710 8 files changed, 121 insertions(+), 12 deletions(-) 6711 6712commit 035bbae4c2bf36a674ef10eb7df8404fd73b73ff 6713Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6714Date: Sat Apr 9 22:48:59 2005 +0000 6715 6716 Fix MySQL header check. 6717 6718 configure.in | 15 +++++++++++---- 6719 1 files changed, 11 insertions(+), 4 deletions(-) 6720 6721commit b2691331cde8708e6bca6bf724bea2ce4e1fc513 6722Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6723Date: Sat Apr 9 20:49:30 2005 +0000 6724 6725 bug fix, bad function call 6726 6727 src/preludedb-sql.c | 2 +- 6728 1 files changed, 1 insertions(+), 1 deletions(-) 6729 6730commit d05b15df40f6374aa2756afc78437ca420147010 6731Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6732Date: Sat Apr 9 12:13:48 2005 +0000 6733 6734 manually define libprelude structures used by libpreludedb so that 6735 we are sure that the will be wrapped in libprelude and libpreludedb 6736 the same way (we got incompatibility errors between libprelude and 6737 libpreludedb with swig 1.3.24) 6738 6739 bindings/libpreludedb.i | 6 ++++++ 6740 1 files changed, 6 insertions(+), 0 deletions(-) 6741 6742commit ce7bef459298a735da07ec51bc86005c5da038cb 6743Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6744Date: Fri Apr 8 10:16:07 2005 +0000 6745 6746 Fix GnuIsm... 6747 6748 bindings/Makefile.am | 4 ++-- 6749 1 files changed, 2 insertions(+), 2 deletions(-) 6750 6751commit 3d2e23e06cece3f33c52b37301c4a2c4622e0f50 6752Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6753Date: Thu Apr 7 11:53:43 2005 +0000 6754 6755 fix filenames 6756 6757 plugins/format/classic/Makefile.am | 4 ++-- 6758 1 files changed, 2 insertions(+), 2 deletions(-) 6759 6760commit 9ffb22887500cb86068911d668c775aeadaf3305 6761Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6762Date: Thu Apr 7 11:49:23 2005 +0000 6763 6764 add schema version check 6765 add error codes for plugin load failure 6766 6767 plugins/format/classic/classic.c | 25 ++++++++++++ 6768 plugins/format/classic/mysql-rc3_rc4.sql | 1 - 6769 plugins/format/classic/mysql-update-14-1.sql | 2 + 6770 plugins/format/classic/pgsql-update-14-1.sql | 1 + 6771 src/include/preludedb-error.h | 8 +++- 6772 src/include/preludedb-plugin-format.h | 4 ++ 6773 src/include/preludedb.h | 3 +- 6774 src/preludedb-error.c | 7 +++- 6775 src/preludedb-sql.c | 2 +- 6776 src/preludedb.c | 54 +++++++++++++++++++------- 6777 10 files changed, 88 insertions(+), 19 deletions(-) 6778 6779commit 33f9dc1f3f99eaea85c13899594a9427b677c2ce 6780Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6781Date: Wed Apr 6 18:26:12 2005 +0000 6782 6783 dist and install the new upgrade script 6784 6785 plugins/format/classic/Makefile.am | 4 ++-- 6786 1 files changed, 2 insertions(+), 2 deletions(-) 6787 6788commit cf3ae7d7df6593729a33edfffd743907e8d37cc4 6789Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6790Date: Wed Apr 6 18:23:44 2005 +0000 6791 6792 add an update script to fix the missing info value in the enum 6793 field of Prelude_Impact.severity 6794 6795 plugins/format/classic/mysql-rc3_rc4.sql | 1 + 6796 1 files changed, 1 insertions(+), 0 deletions(-) 6797 6798commit cdf8e2e7258e49d2e7948f978639b86c9494c3c8 6799Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6800Date: Wed Apr 6 18:17:58 2005 +0000 6801 6802 bug fix: forgot the 'info' value of severity 6803 6804 plugins/format/classic/mysql.sql | 2 +- 6805 1 files changed, 1 insertions(+), 1 deletions(-) 6806 6807commit f4b3dbc00c4ba02d6162fab9c5e4289e120d8749 6808Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6809Date: Wed Apr 6 16:55:20 2005 +0000 6810 6811 Fit plugins system change (version handling / re-entrancy). 6812 6813 plugins/format/classic/classic.c | 18 +++++++++----- 6814 plugins/sql/mysql/mysql.c | 18 +++++++++----- 6815 plugins/sql/pgsql/pgsql.c | 22 ++++++++++------- 6816 src/preludedb-sql.c | 6 ++++- 6817 src/preludedb.c | 46 +++++++++++++++++-------------------- 6818 5 files changed, 61 insertions(+), 49 deletions(-) 6819 6820commit 8e66d52a339571577c7e499e40f53d97487014de 6821Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6822Date: Tue Apr 5 20:20:38 2005 +0000 6823 6824 fixes 6825 6826 src/include/preludedb.h | 2 +- 6827 src/preludedb.c | 14 ++++++++++++-- 6828 2 files changed, 13 insertions(+), 3 deletions(-) 6829 6830commit 4e6cbb4a98dcfd919f7186a20aedbeb4b4ec990d 6831Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6832Date: Tue Apr 5 19:35:33 2005 +0000 6833 6834 Fix libpreludedb detection. 6835 6836 m4/libpreludedb.m4 | 2 +- 6837 1 files changed, 1 insertions(+), 1 deletions(-) 6838 6839commit 1d4fa991564984c0bf0436bc702ebc4e04bc165d 6840Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6841Date: Tue Apr 5 18:38:03 2005 +0000 6842 6843 add preludedb_init/preludedb_deinit to do plugins loading/unloading 6844 safely 6845 6846 bindings/libpreludedb_python.i | 31 ++++++++++++++++++ 6847 src/include/preludedb.h | 2 + 6848 src/preludedb-sql.c | 35 +------------------- 6849 src/preludedb.c | 69 +++++++++++++++++++++++++++------------- 6850 4 files changed, 81 insertions(+), 56 deletions(-) 6851 6852commit e59fda3ffa6b8408411ecbd41695e04a3c8f9a4d 6853Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6854Date: Tue Apr 5 16:46:16 2005 +0000 6855 6856 Update. 6857 6858 README | 2 +- 6859 1 files changed, 1 insertions(+), 1 deletions(-) 6860 6861commit 48667f48d84bcf4377ce4d506542b7d76886a0c7 6862Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6863Date: Tue Apr 5 11:09:52 2005 +0000 6864 6865 remove preludedb-version.h dependancy, it caused the bindings to be 6866 always regenerated after the ./configure step (as preludedb-version.h 6867 is generated from preludedb-version.h.in) 6868 6869 bindings/Makefile.am | 3 +-- 6870 1 files changed, 1 insertions(+), 2 deletions(-) 6871 6872commit dfe90ab9eebc1d4df6d7d74b7072fb938eb31209 6873Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6874Date: Fri Apr 1 14:22:44 2005 +0000 6875 6876 fix schema for mysql 3.23, it does not seem to support index length 6877 when the index is directly created in the table, thanks to 6878 Michael Kiessling <patter_xx@arcor.de> for pointing this out and for 6879 debugging help 6880 6881 plugins/format/classic/mysql.sql | 8 +++++--- 6882 1 files changed, 5 insertions(+), 3 deletions(-) 6883 6884commit 076cc966dbc4cc0e67f648dcebb6e33038e8439a 6885Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6886Date: Thu Mar 31 21:33:15 2005 +0000 6887 6888 Bump to 0.9.0-rc3. 6889 6890 NEWS | 5 +++++ 6891 configure.in | 2 +- 6892 2 files changed, 6 insertions(+), 1 deletions(-) 6893 6894commit eee383e8fc5c51c529dcc1d0d739da948204d87c 6895Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6896Date: Thu Mar 31 20:31:17 2005 +0000 6897 6898 Fix Debian specific PgSQL plugin loading problem. 6899 6900 plugins/sql/pgsql/Makefile.am | 2 +- 6901 1 files changed, 1 insertions(+), 1 deletions(-) 6902 6903commit d348bc68dc2b290aa07ce5b0eea2d35ea326bb8b 6904Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6905Date: Thu Mar 31 17:52:19 2005 +0000 6906 6907 Bump version to libpreludedb-0.9.0-rc2. Update NEWS. 6908 6909 NEWS | 13 +++++++++++-- 6910 configure.in | 2 +- 6911 2 files changed, 12 insertions(+), 3 deletions(-) 6912 6913commit 7e6b98b7c7501fe6e4fd297ab848feb5dc1cd6c2 6914Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6915Date: Thu Mar 31 17:14:39 2005 +0000 6916 6917 fix library link path order, CFLAGS propagation and perl make clean 6918 6919 bindings/Makefile.am | 2 +- 6920 bindings/perl/Makefile.PL.in | 6 +++--- 6921 bindings/python/setup.py.in | 6 +++--- 6922 3 files changed, 7 insertions(+), 7 deletions(-) 6923 6924commit 7f39cd8a5bb17e92aedea57970409954477d9e91 6925Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6926Date: Tue Mar 29 16:17:28 2005 +0000 6927 6928 add a version field to the _format table so that 6929 we can keep track of different versions of the same 6930 format 6931 6932 plugins/format/classic/mysql.sql | 5 +++-- 6933 plugins/format/classic/pgsql.sql | 5 +++-- 6934 2 files changed, 6 insertions(+), 4 deletions(-) 6935 6936commit fbfe6d9dc491649c51f5ac43e6325fef64859e0b 6937Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6938Date: Tue Mar 29 13:47:17 2005 +0000 6939 6940 Fix schema location. 6941 6942 configure.in | 2 ++ 6943 plugins/format/classic/Makefile.am | 9 ++------- 6944 prelude-db-create.sh.in | 8 ++++---- 6945 3 files changed, 8 insertions(+), 11 deletions(-) 6946 6947commit 5c1c228fc4541bb81f30a50d27ad7286770aa769 6948Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6949Date: Tue Mar 29 09:18:32 2005 +0000 6950 6951 Update INSTALL 6952 6953 INSTALL | 61 +++++++++++++++++++++++++++---------------------------------- 6954 1 files changed, 27 insertions(+), 34 deletions(-) 6955 6956commit 67a7c968cf7ba0eb9b2ec2621783299d4e728cc1 6957Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6958Date: Tue Mar 29 08:31:48 2005 +0000 6959 6960 Bump version to 0.9.0-rc1. Update NEWS file. 6961 6962 NEWS | 4 ++++ 6963 configure.in | 2 +- 6964 docs/api/libpreludedb-decl.txt | 2 +- 6965 3 files changed, 6 insertions(+), 2 deletions(-) 6966 6967commit 3c4a0797a7e8cd27ba90136c67aa4f1fd7039d15 6968Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6969Date: Tue Mar 29 08:29:01 2005 +0000 6970 6971 Print uptodate information, thanks to Sebastien Tricaud <toady@gscore.org> 6972 for pointing this out. 6973 6974 prelude-db-create.sh.in | 28 ++++++++++------------------ 6975 1 files changed, 10 insertions(+), 18 deletions(-) 6976 6977commit 64e967f9278d91aa0e13ebda4336bca677381c07 6978Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 6979Date: Tue Mar 29 01:49:09 2005 +0000 6980 6981 fixes 6982 6983 README | 6 +++--- 6984 1 files changed, 3 insertions(+), 3 deletions(-) 6985 6986commit c80dfe9fddbbdf6c8bea389a309e93229e239e77 6987Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 6988Date: Sun Mar 27 00:04:05 2005 +0000 6989 6990 Use PRELUDE_PRIu* instead of PRIu* 6991 6992 bindings/libpreludedb_perl.i | 4 +- 6993 docs/api/libpreludedb-decl.txt | 2 +- 6994 plugins/format/classic/classic-delete.c | 90 +++++++++++++++--------------- 6995 plugins/format/classic/classic-get.c | 72 ++++++++++++------------ 6996 plugins/format/classic/classic-insert.c | 70 ++++++++++++------------ 6997 src/preludedb-sql.c | 4 +- 6998 6 files changed, 121 insertions(+), 121 deletions(-) 6999 7000commit e204f819504fa8d4b791eaefe2a60cda7af5ca3b 7001Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7002Date: Sat Mar 26 13:16:56 2005 +0000 7003 7004 bug fix, analyzerid is now an optional string field 7005 7006 plugins/format/classic/pgsql.sql | 2 +- 7007 1 files changed, 1 insertions(+), 1 deletions(-) 7008 7009commit 23f934da78a7b5a869372194d75a7dc6c1b2ed5c 7010Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7011Date: Sat Mar 26 12:58:10 2005 +0000 7012 7013 * plugins/sql/pgsql/pgsql.c: 7014 cleanup row fetch handling 7015 7016 * plugins/format/classic/mysql.sql: 7017 fixes 7018 7019 * plugins/format/classic/pgsql.sql: 7020 update schema to the last classic plugin changes 7021 7022 plugins/format/classic/mysql.sql | 4 +- 7023 plugins/format/classic/pgsql.sql | 120 ++++++++++++++++++++------------------ 7024 plugins/sql/pgsql/pgsql.c | 104 +++++++++++++++++---------------- 7025 3 files changed, 119 insertions(+), 109 deletions(-) 7026 7027commit 705c9a57831a8ebc5f59d59ea8d3dcbef5c48b26 7028Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7029Date: Sat Mar 26 12:10:46 2005 +0000 7030 7031 Include prelude.h 7032 7033 bindings/libpreludedb.i | 2 +- 7034 1 files changed, 1 insertions(+), 1 deletions(-) 7035 7036commit d335c0138d13b4f0700ece548a437a1a238c5a37 7037Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7038Date: Fri Mar 25 20:14:44 2005 +0000 7039 7040 remove debug message 7041 7042 src/preludedb.c | 7 +------ 7043 1 files changed, 1 insertions(+), 6 deletions(-) 7044 7045commit d4f45b11b58ce9890d3757d95d6b78697b4f7971 7046Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7047Date: Fri Mar 25 19:37:21 2005 +0000 7048 7049 minor fixes 7050 7051 bindings/libpreludedb_perl.i | 2 +- 7052 bindings/libpreludedb_python.i | 3 --- 7053 2 files changed, 1 insertions(+), 4 deletions(-) 7054 7055commit 02322a348140fddc87bfc5c2648577b742b6c9cd 7056Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7057Date: Fri Mar 25 19:25:38 2005 +0000 7058 7059 update plugin contact stuff 7060 7061 plugins/format/classic/classic.c | 6 ++++-- 7062 plugins/sql/mysql/mysql.c | 2 +- 7063 plugins/sql/pgsql/pgsql.c | 2 +- 7064 3 files changed, 6 insertions(+), 4 deletions(-) 7065 7066commit f3cbeece057ec91004ec5ac1236aa18a5cdeb70a 7067Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7068Date: Fri Mar 25 19:15:44 2005 +0000 7069 7070 add README file 7071 7072 README | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7073 1 files changed, 85 insertions(+), 0 deletions(-) 7074 7075commit c34e2786deafe0d8a649654610982ddd7f9eb8fa 7076Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7077Date: Fri Mar 25 19:05:56 2005 +0000 7078 7079 ======================================================== 7080 libpreludedb-0.9.0-svn archives ready for distribution: 7081 libpreludedb-0.9.0-svn.tar.gz 7082 ======================================================== 7083 7084 configure.in | 2 +- 7085 1 files changed, 1 insertions(+), 1 deletions(-) 7086 7087commit dbc7efd0b6eeb742827d9e18ed069abe64e2d0c8 7088Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7089Date: Fri Mar 25 18:54:07 2005 +0000 7090 7091 transfert copyrights to PreludeIDS Technologies 7092 7093 plugins/format/classic/classic-delete.c | 6 +++--- 7094 plugins/format/classic/classic-get.c | 6 +++--- 7095 plugins/format/classic/classic-insert.c | 7 +++---- 7096 plugins/format/classic/classic-path-resolve.c | 6 +++--- 7097 plugins/format/classic/classic-sql-join.c | 6 +++--- 7098 plugins/format/classic/classic-sql-select.c | 6 +++--- 7099 plugins/format/classic/classic.c | 6 +++--- 7100 plugins/format/classic/include/classic-delete.h | 6 +++--- 7101 plugins/format/classic/include/classic-get.h | 6 +++--- 7102 .../format/classic/include/classic-path-resolve.h | 6 +++--- 7103 plugins/format/classic/include/classic-sql-join.h | 6 +++--- 7104 .../format/classic/include/classic-sql-select.h | 6 +++--- 7105 plugins/sql/mysql/mysql.c | 8 +++----- 7106 plugins/sql/pgsql/pgsql.c | 7 +++---- 7107 src/include/preludedb-error.h | 6 +++--- 7108 src/include/preludedb-path-selection.h | 6 +++--- 7109 src/include/preludedb-plugin-format.h | 7 +++---- 7110 src/include/preludedb-plugin-sql.h | 7 +++---- 7111 src/include/preludedb-sql-settings.h | 6 +++--- 7112 src/include/preludedb-sql.h | 6 +++--- 7113 src/include/preludedb-version.h.in | 6 +++--- 7114 src/include/preludedb.h | 6 +++--- 7115 src/preludedb-error.c | 6 +++--- 7116 src/preludedb-path-selection.c | 6 +++--- 7117 src/preludedb-sql-settings.c | 6 +++--- 7118 src/preludedb-sql.c | 7 +++---- 7119 src/preludedb-version.c | 6 +++--- 7120 src/preludedb.c | 13 +++++++++---- 7121 28 files changed, 90 insertions(+), 92 deletions(-) 7122 7123commit 702a5357938b4713c16fb8a8c185af105f5b5a76 7124Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7125Date: Fri Mar 25 18:41:13 2005 +0000 7126 7127 Update INSTALL file. Update libpreludedb.m4. Remove un-needed libtool.m4. 7128 7129 INSTALL | 11 +- 7130 m4/libpreludedb.m4 | 2 +- 7131 m4/libtool.m4 | 6108 ---------------------------------------------------- 7132 3 files changed, 9 insertions(+), 6112 deletions(-) 7133 7134commit 1ff8710d37a91477eac00126a1be26fc6a335bbb 7135Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7136Date: Fri Mar 25 18:28:51 2005 +0000 7137 7138 Cleanup perl file. 7139 7140 Makefile.am | 2 ++ 7141 1 files changed, 2 insertions(+), 0 deletions(-) 7142 7143commit 9babdd996d7eecf024bc9d1d1f70a828730d757e 7144Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7145Date: Fri Mar 25 18:26:03 2005 +0000 7146 7147 Restore LDFLAGS. 7148 7149 m4/libpreludedb.m4 | 1 + 7150 1 files changed, 1 insertions(+), 0 deletions(-) 7151 7152commit 550594ce020f3b0b9d538bb361a76e6cbb5959a0 7153Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7154Date: Fri Mar 25 18:22:55 2005 +0000 7155 7156 Update. 7157 7158 m4/libprelude.m4 | 12 ++++++++++-- 7159 1 files changed, 10 insertions(+), 2 deletions(-) 7160 7161commit e86001f7839cf0a3e57da96a9a464532a4d08c73 7162Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7163Date: Fri Mar 25 18:21:51 2005 +0000 7164 7165 Fix distcheck. 7166 7167 src/include/Makefile.am | 1 + 7168 1 files changed, 1 insertions(+), 0 deletions(-) 7169 7170commit c059ffc9851d16f7e911bec0f6da92bea0b7b7ad 7171Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7172Date: Fri Mar 25 18:20:59 2005 +0000 7173 7174 Output cleanup. 7175 7176 configure.in | 11 +++++------ 7177 1 files changed, 5 insertions(+), 6 deletions(-) 7178 7179commit 515f1d6516a6b5ea33198fae60f47be3df199e05 7180Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7181Date: Fri Mar 25 18:20:41 2005 +0000 7182 7183 Fix distcheck. 7184 7185 bindings/Makefile.am | 2 +- 7186 1 files changed, 1 insertions(+), 1 deletions(-) 7187 7188commit 4c824518bea173c2dfd5a513dd1b41160d4a5827 7189Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7190Date: Fri Mar 25 17:46:13 2005 +0000 7191 7192 fix perl bindings 7193 7194 bindings/Makefile.am | 2 +- 7195 bindings/libpreludedb.i | 319 +-------------------------- 7196 bindings/libpreludedb_perl.i | 191 ++++++++++++++++ 7197 bindings/libpreludedb_python.i | 266 ++++++++++++++++++++++ 7198 bindings/perl/PreludeDB.pm | 475 +--------------------------------------- 7199 5 files changed, 470 insertions(+), 783 deletions(-) 7200 7201commit e46366f303b2c12bf3a51ff007a89d1f8bfdc4fd 7202Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7203Date: Thu Mar 24 12:17:34 2005 +0000 7204 7205 Fix warnings. 7206 7207 plugins/format/classic/classic-path-resolve.c | 14 +++++++------- 7208 plugins/format/classic/classic.c | 2 +- 7209 .../format/classic/include/classic-path-resolve.h | 6 +++--- 7210 3 files changed, 11 insertions(+), 11 deletions(-) 7211 7212commit 0293f8e5271c8f9d9f7cd0342c99e5a30d0f071b 7213Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7214Date: Thu Mar 24 12:05:03 2005 +0000 7215 7216 Correct gtk-doc support. 7217 7218 docs/api/Makefile.am | 196 +----- 7219 docs/api/libpreludedb-decl.txt | 893 +++++++++++++++++++++++++++ 7220 docs/api/libpreludedb-docs.sgml | 20 + 7221 docs/api/libpreludedb-sections.txt | 207 +++++++ 7222 docs/api/tmpl/preludedb-error.sgml | 72 +++ 7223 docs/api/tmpl/preludedb-path-selection.sgml | 134 ++++ 7224 docs/api/tmpl/preludedb-plugin-format.sgml | 256 ++++++++ 7225 docs/api/tmpl/preludedb-plugin-sql.sgml | 328 ++++++++++ 7226 docs/api/tmpl/preludedb-sql-settings.sgml | 210 +++++++ 7227 docs/api/tmpl/preludedb-sql.sgml | 494 +++++++++++++++ 7228 docs/api/tmpl/preludedb-version.sgml | 32 + 7229 docs/api/tmpl/preludedb.sgml | 242 ++++++++ 7230 12 files changed, 2923 insertions(+), 161 deletions(-) 7231 7232commit c40a7a516a235c6ccf8f51b5a1d51a42018a68cb 7233Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7234Date: Thu Mar 24 12:01:34 2005 +0000 7235 7236 Fix gtk-doc support. 7237 7238 Makefile.am | 2 ++ 7239 autogen.sh | 1 + 7240 configure.in | 36 +----------------------------------- 7241 3 files changed, 4 insertions(+), 35 deletions(-) 7242 7243commit 88e390fa133ae54843e7ede03174a5c0203b580b 7244Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7245Date: Tue Mar 22 00:36:16 2005 +0000 7246 7247 Don't use linked object unless you got a very good reason to do so. 7248 7249 plugins/format/classic/classic-sql-join.c | 6 +++--- 7250 1 files changed, 3 insertions(+), 3 deletions(-) 7251 7252commit 93b590006a51a7a16925c7d12828a3804dea3bed 7253Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7254Date: Tue Mar 15 13:52:00 2005 +0000 7255 7256 bug fix: the output buffer must be allocated dynamically 7257 7258 src/preludedb-sql.c | 47 ++++++++++++++++++++++++++++------------------- 7259 1 files changed, 28 insertions(+), 19 deletions(-) 7260 7261commit e21f591be2760b4f35cb266d0cc405e15ca69ed2 7262Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7263Date: Mon Mar 14 19:08:44 2005 +0000 7264 7265 bug fix: handle '(' and ')' in selected_path strings 7266 7267 src/preludedb-path-selection.c | 35 +++++++++++++++++------------------ 7268 1 files changed, 17 insertions(+), 18 deletions(-) 7269 7270commit 09e67f40ad3766fc70c83df1ba7b12adebf8dfc9 7271Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7272Date: Mon Mar 14 14:57:15 2005 +0000 7273 7274 remove deprecated reference to IDMEF_TIME_MAX_STRING_SIZE 7275 7276 plugins/format/classic/classic-insert.c | 14 +++++++------- 7277 src/include/preludedb-sql.h | 2 ++ 7278 src/preludedb-sql.c | 2 +- 7279 3 files changed, 10 insertions(+), 8 deletions(-) 7280 7281commit 0c37187b72389e0d53c03e7299687801345a1c3f 7282Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7283Date: Mon Mar 14 14:08:09 2005 +0000 7284 7285 support for -1 list special indexes 7286 7287 plugins/format/classic/classic-get.c | 35 ++-- 7288 plugins/format/classic/classic-insert.c | 404 +++++++++++++++++++++-------- 7289 plugins/format/classic/classic-sql-join.c | 37 ++-- 7290 plugins/format/classic/mysql.sql | 2 +- 7291 4 files changed, 340 insertions(+), 138 deletions(-) 7292 7293commit 8a9f6b1603489ddd520c5a831392246d1f4ff725 7294Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7295Date: Mon Mar 14 08:36:40 2005 +0000 7296 7297 bind stuff related to libpreludedb sql layer 7298 7299 bindings/libpreludedb.i | 36 +++++++++++++++++++++++++++++++++++- 7300 1 files changed, 35 insertions(+), 1 deletions(-) 7301 7302commit ac3697a63c23c782fe8c6b8c9999f3ea7ff30412 7303Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7304Date: Sun Mar 13 17:31:11 2005 +0000 7305 7306 filenames/structures/functions naming cleanup for the 7307 classic plugin 7308 7309 plugins/format/classic/Makefile.am | 2 +- 7310 plugins/format/classic/classic-delete.c | 129 ++ 7311 plugins/format/classic/classic-get.c | 2111 +++++++++++++++++++ 7312 plugins/format/classic/classic-insert.c | 1854 +++++++++++++++++ 7313 plugins/format/classic/classic-path-resolve.c | 400 ++++ 7314 plugins/format/classic/classic-sql-join.c | 373 ++++ 7315 plugins/format/classic/classic-sql-select.c | 186 ++ 7316 plugins/format/classic/classic.c | 132 +- 7317 plugins/format/classic/idmef-db-delete.c | 129 -- 7318 plugins/format/classic/idmef-db-get.c | 2113 -------------------- 7319 plugins/format/classic/idmef-db-insert.c | 1854 ----------------- 7320 plugins/format/classic/idmef-db-path.c | 976 --------- 7321 plugins/format/classic/include/Makefile.am | 2 +- 7322 plugins/format/classic/include/classic-delete.h | 31 + 7323 plugins/format/classic/include/classic-get.h | 31 + 7324 plugins/format/classic/include/classic-insert.h | 30 + 7325 .../format/classic/include/classic-path-resolve.h | 39 + 7326 plugins/format/classic/include/classic-sql-join.h | 43 + 7327 .../format/classic/include/classic-sql-select.h | 39 + 7328 plugins/format/classic/include/db-path.h | 54 - 7329 plugins/format/classic/include/idmef-db-delete.h | 31 - 7330 plugins/format/classic/include/idmef-db-get.h | 31 - 7331 plugins/format/classic/include/idmef-db-insert.h | 31 - 7332 plugins/format/classic/include/idmef-db-path.h | 53 - 7333 plugins/format/classic/include/idmef-db-select.h | 50 - 7334 25 files changed, 5318 insertions(+), 5406 deletions(-) 7335 7336commit 8863cdfee718ab1d38af0bdb85e17bafed18f234 7337Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7338Date: Sat Mar 12 16:09:54 2005 +0000 7339 7340 process retrieved data as string if it is not in specified format 7341 7342 plugins/format/classic/idmef-db-get.c | 37 +++++++++++++++++++++++--------- 7343 1 files changed, 26 insertions(+), 11 deletions(-) 7344 7345commit fddb294e14743d4f98d38e6c887b98b843e63970 7346Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7347Date: Fri Mar 11 19:49:10 2005 +0000 7348 7349 fit libprelude changes on idmef_criterion_value 7350 replace idmef-db-select.c/db-path.c/schema.txt by 7351 idmef-db-path.c that semi-automatically analyze idmef-path 7352 objects to build parts of sql queries, this mapper now 7353 supports index for lists 7354 7355 plugins/format/classic/Makefile.am | 5 +- 7356 plugins/format/classic/classic.c | 234 +++++- 7357 plugins/format/classic/db-path.c | 482 ----------- 7358 plugins/format/classic/idmef-db-delete.c | 2 +- 7359 plugins/format/classic/idmef-db-get.c | 40 +- 7360 plugins/format/classic/idmef-db-insert.c | 405 ++++++---- 7361 plugins/format/classic/idmef-db-path.c | 976 ++++++++++++++++++++++ 7362 plugins/format/classic/idmef-db-select.c | 1064 ------------------------ 7363 plugins/format/classic/include/idmef-db-path.h | 53 ++ 7364 plugins/format/classic/mysql.sql | 120 ++-- 7365 plugins/format/classic/schema.txt | 209 ----- 7366 plugins/sql/mysql/mysql.c | 28 +- 7367 plugins/sql/pgsql/pgsql.c | 28 +- 7368 src/include/preludedb-plugin-sql.h | 2 +- 7369 src/include/preludedb-sql.h | 4 +- 7370 src/preludedb-path-selection.c | 2 +- 7371 src/preludedb-sql.c | 358 +------- 7372 17 files changed, 1647 insertions(+), 2365 deletions(-) 7373 7374commit 55201ec5b48aed04adbf0cea7261e134bd991a76 7375Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7376Date: Fri Mar 4 12:40:26 2005 +0000 7377 7378 bug fix 7379 7380 plugins/format/classic/idmef-db-get.c | 13 ++++--------- 7381 1 files changed, 4 insertions(+), 9 deletions(-) 7382 7383commit 839a8a033e419fef4223bd736f3995fbe3edae59 7384Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7385Date: Fri Mar 4 11:01:10 2005 +0000 7386 7387 fit libprelude changes on analyzers handling 7388 7389 plugins/format/classic/idmef-db-get.c | 98 +++++++++++++++--------------- 7390 plugins/format/classic/idmef-db-insert.c | 38 ++++++------ 7391 plugins/format/classic/mysql.sql | 4 +- 7392 plugins/format/classic/pgsql.sql | 58 +++++++++--------- 7393 plugins/format/classic/schema.txt | 57 +++++------------ 7394 5 files changed, 115 insertions(+), 140 deletions(-) 7395 7396commit 9fd768ba8ab19566d45241995cb34a98f39d9ab6 7397Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7398Date: Fri Mar 4 09:27:38 2005 +0000 7399 7400 Modification for new kind of analyzer chaining. To be modified by Nicolas. 7401 7402 plugins/format/classic/idmef-db-get.c | 25 ++++++-------- 7403 plugins/format/classic/idmef-db-insert.c | 52 ++++++++++++++++++++---------- 7404 plugins/format/classic/mysql.sql | 2 +- 7405 plugins/format/classic/pgsql.sql | 6 ++-- 7406 4 files changed, 49 insertions(+), 36 deletions(-) 7407 7408commit 8b5e15979993af1aa16ef83c6858b91327799a8f 7409Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7410Date: Mon Feb 28 19:46:30 2005 +0000 7411 7412 forgot a function 7413 7414 plugins/format/classic/idmef-db-select.c | 3 ++- 7415 1 files changed, 2 insertions(+), 1 deletions(-) 7416 7417commit 4adae72471ddd7c88a34f040461032fafd7b8581 7418Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7419Date: Mon Feb 28 17:24:46 2005 +0000 7420 7421 support for heartbeat-interval when retrieving alerts 7422 7423 plugins/format/classic/idmef-db-get.c | 44 +++++++++++++++++++++++++++----- 7424 plugins/format/classic/schema.txt | 2 + 7425 2 files changed, 39 insertions(+), 7 deletions(-) 7426 7427commit dd4eb711ceebe7e2d562cc57fe29271d0be8a32a 7428Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7429Date: Mon Feb 28 16:24:43 2005 +0000 7430 7431 Fix warning. 7432 7433 plugins/format/classic/idmef-db-get.c | 1 - 7434 1 files changed, 0 insertions(+), 1 deletions(-) 7435 7436commit eab8520119431e07c8f6da97f69598fdf1446cb2 7437Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7438Date: Mon Feb 28 16:14:24 2005 +0000 7439 7440 bug fix: check messageid field validity 7441 7442 plugins/format/classic/idmef-db-get.c | 30 ++++++------------------------ 7443 1 files changed, 6 insertions(+), 24 deletions(-) 7444 7445commit ab06521c179463fccefa59f052195da870d6975a 7446Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7447Date: Mon Feb 28 13:51:49 2005 +0000 7448 7449 Implement new IDMEFv14 attribute. Ident are now string. Update schema. 7450 7451 plugins/format/classic/idmef-db-get.c | 31 ++-- 7452 plugins/format/classic/idmef-db-insert.c | 281 ++++++++++++++++++++---------- 7453 plugins/format/classic/mysql.sql | 30 ++-- 7454 plugins/format/classic/pgsql.sql | 21 ++- 7455 4 files changed, 233 insertions(+), 130 deletions(-) 7456 7457commit ecb14b0b50c1ad0b8f19bb69353152389d646477 7458Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7459Date: Mon Feb 28 10:25:17 2005 +0000 7460 7461 save last error message (if any) when doing a rollback so that we 7462 can retrieve the error message that triggered the rollback even if the 7463 sql backend clear the error buffer while doing the rollback query 7464 7465 src/preludedb-sql.c | 13 ++++++++++++- 7466 1 files changed, 12 insertions(+), 1 deletions(-) 7467 7468commit f56dd271e3cb6210e4ef8fcd8a642db958852b82 7469Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7470Date: Fri Feb 25 10:07:20 2005 +0000 7471 7472 improve tables indexes 7473 7474 plugins/format/classic/mysql.sql | 38 ++++++++++++++++++++------------------ 7475 plugins/format/classic/pgsql.sql | 29 +++++++++++++++-------------- 7476 2 files changed, 35 insertions(+), 32 deletions(-) 7477 7478commit 1a627e596efa00a9868b8ad96432b3c1b5fc90f4 7479Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7480Date: Thu Feb 24 11:14:58 2005 +0000 7481 7482 support for alert.analyzer.analyzer.* paths 7483 7484 plugins/format/classic/schema.txt | 35 ++++++++++++++++++++++++++++++----- 7485 1 files changed, 30 insertions(+), 5 deletions(-) 7486 7487commit 553ff5e048ca3355dd4227214fac9ddddd2c096e 7488Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7489Date: Tue Feb 22 16:50:46 2005 +0000 7490 7491 bug fix: gmt offset are signed integers NOT unsigned 7492 7493 plugins/format/classic/classic.c | 4 ++-- 7494 plugins/format/classic/idmef-db-get.c | 4 ++-- 7495 plugins/format/classic/mysql.sql | 14 +++++++------- 7496 src/include/preludedb-sql.h | 2 +- 7497 src/preludedb-sql.c | 6 +++--- 7498 5 files changed, 15 insertions(+), 15 deletions(-) 7499 7500commit b86d65163c7b0b1865f16a7c17ff605304f6a919 7501Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7502Date: Tue Feb 22 16:27:11 2005 +0000 7503 7504 don't generate proxy classes, we don't need them 7505 7506 bindings/Makefile.am | 2 +- 7507 bindings/python/preludedb.py | 9 +++++++++ 7508 2 files changed, 10 insertions(+), 1 deletions(-) 7509 7510commit 61318b73371bccb17a2f47689a8f656c08c6d48a 7511Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7512Date: Tue Feb 22 15:39:18 2005 +0000 7513 7514 code cleanup: rewrite schema.txt parser 7515 7516 plugins/format/classic/db-path.c | 334 ++++++++++++-------------------------- 7517 1 files changed, 104 insertions(+), 230 deletions(-) 7518 7519commit cd403569d0f488a6783a126adc5610db3a61bef2 7520Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7521Date: Tue Feb 22 15:27:32 2005 +0000 7522 7523 bug fix for idmef_time field retrieval 7524 7525 plugins/format/classic/classic.c | 18 ++++++++++++------ 7526 1 files changed, 12 insertions(+), 6 deletions(-) 7527 7528commit 638461236990833f9c6e1e834a29967770d65e75 7529Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7530Date: Tue Feb 22 15:09:46 2005 +0000 7531 7532 bug fix, forgot to increment Py_None, it led to a python exception when 7533 its refcount reach 0 7534 7535 bindings/libpreludedb.i | 9 +++++++-- 7536 1 files changed, 7 insertions(+), 2 deletions(-) 7537 7538commit 6c00223bb89801c668f04889ee6a7ad248244b41 7539Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7540Date: Wed Feb 16 18:09:13 2005 +0000 7541 7542 bug fix 7543 7544 src/preludedb-sql.c | 4 ++-- 7545 1 files changed, 2 insertions(+), 2 deletions(-) 7546 7547commit a39c3dfc21d22ab47f74aa91ffef8329ee1a7ca9 7548Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7549Date: Wed Feb 16 17:07:01 2005 +0000 7550 7551 for get_values replace right join by left join, it fix 7552 some applications problems when dealing with NULL field 7553 7554 plugins/format/classic/idmef-db-select.c | 23 +++++++++++++++-------- 7555 1 files changed, 15 insertions(+), 8 deletions(-) 7556 7557commit d49f017a869e1e918cd4bd5dd903889d87c5e147 7558Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7559Date: Wed Feb 16 14:37:18 2005 +0000 7560 7561 bug fix, forgot a whitespace 7562 7563 plugins/format/classic/idmef-db-select.c | 2 +- 7564 1 files changed, 1 insertions(+), 1 deletions(-) 7565 7566commit ef468bbfc6d8b333df485e88eee012d057298c45 7567Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7568Date: Wed Feb 16 03:51:33 2005 +0000 7569 7570 Fix mysql/pgsql detection when MYSQL_CONFIG / PG_CONFIG are set. 7571 7572 configure.in | 20 ++++++++++---------- 7573 1 files changed, 10 insertions(+), 10 deletions(-) 7574 7575commit 293ec384059171d057620c4407532d5e0e34fa21 7576Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7577Date: Wed Feb 16 02:31:26 2005 +0000 7578 7579 Fix API doc generation. Remove debugging stuff. 7580 7581 src/include/preludedb.h | 2 +- 7582 src/preludedb-sql-settings.c | 15 +++++++-------- 7583 src/preludedb-sql.c | 8 +++++--- 7584 src/preludedb.c | 14 +++++++++----- 7585 4 files changed, 22 insertions(+), 17 deletions(-) 7586 7587commit 5773fecf009c5709a8cc6f6f81c0a6bfa646d414 7588Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7589Date: Wed Feb 16 01:52:55 2005 +0000 7590 7591 Remove deprecated definition. 7592 7593 plugins/format/classic/idmef-db-select.c | 2 -- 7594 1 files changed, 0 insertions(+), 2 deletions(-) 7595 7596commit bcc13bc356733b91e700fa625c4fd70de3e2385e 7597Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7598Date: Wed Feb 16 01:51:21 2005 +0000 7599 7600 remove deprecated idmef-util.h header inclusion; 7601 7602 plugins/format/classic/idmef-db-insert.c | 1 - 7603 plugins/format/classic/idmef-db-select.c | 1 - 7604 2 files changed, 0 insertions(+), 2 deletions(-) 7605 7606commit 28c8046901d8cbd9ae4b59c1e4143b1af81daf0a 7607Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7608Date: Wed Feb 16 01:50:11 2005 +0000 7609 7610 remove deprecated idmef-util.h header file inclusion. 7611 7612 src/preludedb-sql.c | 1 - 7613 1 files changed, 0 insertions(+), 1 deletions(-) 7614 7615commit fb98b5a04c340a8df9d3abe2cc637abb5fc0761d 7616Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7617Date: Wed Feb 16 01:37:04 2005 +0000 7618 7619 r7589@arwen (orig r5134): yoann | 2005-02-16 02:36:18 +0100 7620 Fit libprelude API change. 7621 7622 plugins/format/classic/classic.c | 48 ++++++++-------- 7623 plugins/sql/mysql/mysql.c | 59 ++++++++++---------- 7624 plugins/sql/pgsql/pgsql.c | 111 ++++++++++++++++++-------------------- 7625 src/preludedb-sql.c | 4 +- 7626 src/preludedb.c | 6 ++- 7627 5 files changed, 114 insertions(+), 114 deletions(-) 7628 7629commit e6574ae402fbddc76b119bfcaace5765a48e2ff6 7630Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7631Date: Mon Feb 14 19:15:48 2005 +0000 7632 7633 Merge back pre-0-9-api-cleanup into trunk. 7634 7635 INSTALL | 52 +- 7636 bindings/Makefile.am | 4 +- 7637 bindings/libpreludedb.i | 177 ++++++- 7638 bindings/python/preludedb.py | 182 ------- 7639 m4/libpreludedb.m4 | 14 +- 7640 plugins/format/classic/Makefile.am | 2 +- 7641 plugins/format/classic/classic.c | 54 +- 7642 plugins/format/classic/db-object.c | 590 --------------------- 7643 plugins/format/classic/db-path.c | 608 ++++++++++++++++++++++ 7644 plugins/format/classic/idmef-db-get.c | 403 +++++++-------- 7645 plugins/format/classic/idmef-db-insert.c | 17 +- 7646 plugins/format/classic/idmef-db-select.c | 537 ++++++++++---------- 7647 plugins/format/classic/include/Makefile.am | 2 +- 7648 plugins/format/classic/include/db-object.h | 54 -- 7649 plugins/format/classic/include/db-path.h | 54 ++ 7650 plugins/format/classic/include/idmef-db-select.h | 2 +- 7651 plugins/sql/mysql/mysql.c | 26 +- 7652 plugins/sql/pgsql/pgsql.c | 17 +- 7653 src/Makefile.am | 2 +- 7654 src/include/Makefile.am | 2 +- 7655 src/include/preludedb-error.h | 4 +- 7656 src/include/preludedb-object-selection.h | 58 -- 7657 src/include/preludedb-path-selection.h | 59 +++ 7658 src/include/preludedb-plugin-format.h | 4 +- 7659 src/include/preludedb-plugin-sql.h | 2 +- 7660 src/include/preludedb-sql-settings.h | 4 +- 7661 src/include/preludedb.h | 35 +- 7662 src/preludedb-error.c | 4 +- 7663 src/preludedb-object-selection.c | 286 ---------- 7664 src/preludedb-path-selection.c | 277 ++++++++++ 7665 src/preludedb-sql-settings.c | 40 +- 7666 src/preludedb-sql.c | 50 +- 7667 src/preludedb.c | 312 +++++++----- 7668 33 files changed, 1980 insertions(+), 1954 deletions(-) 7669 7670commit f43f06d33b6064c1541e780e4c64485c6a637f8d 7671Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7672Date: Thu Feb 10 14:32:19 2005 +0000 7673 7674 remove outdated copyrights 7675 7676 src/include/preludedb-plugin-format.h | 1 - 7677 src/include/preludedb-plugin-sql.h | 1 - 7678 src/include/preludedb-sql.h | 1 - 7679 src/include/preludedb.h | 1 - 7680 src/preludedb-sql.c | 1 - 7681 src/preludedb.c | 1 - 7682 6 files changed, 0 insertions(+), 6 deletions(-) 7683 7684commit 7bda76c921b3dd2b91e8abf9cf79ad154cb0533a 7685Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7686Date: Sat Feb 5 03:48:47 2005 +0000 7687 7688 bug fix: check value before attempting to destroy it 7689 7690 bindings/python/preludedb.py | 3 ++- 7691 1 files changed, 2 insertions(+), 1 deletions(-) 7692 7693commit 6c3a61771ff7b567582a282c4f8bea2941b2e37e 7694Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7695Date: Sat Feb 5 03:03:59 2005 +0000 7696 7697 backport bug fix [5004] from pre-0-9-api-cleanup branch 7698 7699 plugins/format/classic/classic.c | 21 ++++++++++++++++----- 7700 1 files changed, 16 insertions(+), 5 deletions(-) 7701 7702commit b2eacb341e58d6937d9a25cad82cb7a058a1b358 7703Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7704Date: Sat Feb 5 03:02:51 2005 +0000 7705 7706 check if the function returns no result 7707 7708 src/preludedb.c | 2 +- 7709 1 files changed, 1 insertions(+), 1 deletions(-) 7710 7711commit 1b9a825b08a5850ca3d052bb240f76dc38125af0 7712Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7713Date: Mon Jan 24 00:09:07 2005 +0000 7714 7715 bug fix, rename indexes to avoid conflicting names 7716 7717 plugins/format/classic/pgsql.sql | 46 +++++++++++++++++++------------------- 7718 1 files changed, 23 insertions(+), 23 deletions(-) 7719 7720commit d75d672e344e5eaab7ee86c9d8f82ba49681e959 7721Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7722Date: Sun Jan 23 11:43:33 2005 +0000 7723 7724 update the list of APIs to bind 7725 7726 bindings/Makefile.am | 11 +++++++++-- 7727 1 files changed, 9 insertions(+), 2 deletions(-) 7728 7729commit 089feb6b6850378148782dda3cd765eb9f0c0a4e 7730Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7731Date: Sun Jan 23 01:36:32 2005 +0000 7732 7733 * src/include/preludedb-error.h: 7734 * src/preludedb-error.c: 7735 * src/preludedb.c: 7736 * plugins/sql/mysql/mysql.c: 7737 * plugins/sql/pgsql/pgsql.c: 7738 drop the two PRELUDEDB_ERROR_CANNOT_CONNECT and PRELUDEDB_ERROR_DISCONNECTED 7739 error codes and replace them by a single error code PRELUDEDB_ERROR_CONNECTION 7740 that is more generic 7741 7742 * src/preludedb-sql.c: 7743 * src/preludedb.c: 7744 * src/include/preludedb.h: 7745 * src/include/preludedb-sql.h 7746 rework connection system, connection (and reconnection in case where disconnection 7747 happen) is now done automatically and transparently done in preludedb-sql layer. 7748 7749 bug fixes 7750 7751 bindings/python/preludedb.py | 9 ----- 7752 plugins/sql/mysql/mysql.c | 2 +- 7753 plugins/sql/pgsql/pgsql.c | 2 +- 7754 src/include/preludedb-error.h | 27 +++++++-------- 7755 src/include/preludedb-sql.h | 3 -- 7756 src/include/preludedb.h | 5 --- 7757 src/preludedb-error.c | 3 +- 7758 src/preludedb-sql.c | 72 ++++++++++++++++------------------------- 7759 src/preludedb.c | 27 --------------- 7760 9 files changed, 44 insertions(+), 106 deletions(-) 7761 7762commit 0f834e92ca08252a0b24679e92dbc5dd5a23f659 7763Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7764Date: Sat Jan 22 22:43:05 2005 +0000 7765 7766 document part of the preludedb main API 7767 7768 src/preludedb.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 7769 1 files changed, 82 insertions(+), 6 deletions(-) 7770 7771commit 21bc208a61660d496dc1d5ecd5b4933d0cb98af9 7772Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7773Date: Sat Jan 22 18:56:40 2005 +0000 7774 7775 fix documentation errors for functions that can return three types 7776 of value (1 for results, 0 for no results or a negative value for errors) 7777 7778 src/preludedb-sql.c | 13 ++++++++----- 7779 1 files changed, 8 insertions(+), 5 deletions(-) 7780 7781commit cab0c6240f090e7fb9d866ff879c0443f6c90605 7782Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7783Date: Sat Jan 22 17:25:20 2005 +0000 7784 7785 import gtk-doc documentation system from libprelude 7786 7787 Makefile.am | 2 +- 7788 configure.in | 42 +++++++++++ 7789 docs/Makefile.am | 1 + 7790 docs/api/Makefile.am | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++ 7791 4 files changed, 238 insertions(+), 1 deletions(-) 7792 7793commit 3bbfaa74f6a090de77998126af50afd242d0395b 7794Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7795Date: Fri Jan 21 15:17:29 2005 +0000 7796 7797 in preludedb_new, let the caller create his sql object, it allows him 7798 to have more control on it and ease error handling 7799 update python bindings accordingly 7800 7801 bindings/libpreludedb.i | 12 ++++++++++++ 7802 bindings/python/preludedb.py | 20 ++++++++++++++------ 7803 src/include/preludedb.h | 3 +-- 7804 src/preludedb.c | 28 ++-------------------------- 7805 4 files changed, 29 insertions(+), 34 deletions(-) 7806 7807commit d6e61956abaecd4f0e9f2bd1cdf669fa6bed00f5 7808Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7809Date: Thu Jan 20 19:44:39 2005 +0000 7810 7811 merge the libpreludedb-api-rework back into trunk 7812 7813 README | 66 - 7814 bindings/Makefile.am | 6 +- 7815 bindings/libpreludedb.i | 126 +- 7816 bindings/python/preludedb.py | 527 +---- 7817 configure.in | 2 +- 7818 plugins/filters/Makefile.am | 5 - 7819 plugins/filters/skeleton/Makefile.am | 6 - 7820 plugins/filters/skeleton/skeleton.c | 163 -- 7821 plugins/format/classic/classic.c | 467 ++--- 7822 plugins/format/classic/db-object.c | 198 ++- 7823 plugins/format/classic/idmef-db-delete.c | 192 +- 7824 plugins/format/classic/idmef-db-get.c | 2417 ++++++++++------------ 7825 plugins/format/classic/idmef-db-insert.c | 1069 +++++----- 7826 plugins/format/classic/idmef-db-select.c | 304 ++- 7827 plugins/format/classic/include/idmef-db-delete.h | 4 +- 7828 plugins/format/classic/include/idmef-db-get.h | 10 +- 7829 plugins/format/classic/include/idmef-db-insert.h | 2 +- 7830 plugins/format/classic/include/idmef-db-select.h | 19 +- 7831 plugins/format/classic/mysql.sql | 15 +- 7832 plugins/format/classic/pgsql.sql | 772 ++++--- 7833 plugins/format/classic/schema.txt | 2 +- 7834 plugins/format/new/idmef-db-output.c | 401 ---- 7835 plugins/sql/mysql/mysql.c | 639 ++----- 7836 plugins/sql/pgsql/pgsql.c | 601 ++---- 7837 src/Makefile.am | 19 +- 7838 src/db-connection-data.c | 92 - 7839 src/db-connection.c | 97 - 7840 src/db-interface-string.c | 137 -- 7841 src/db-interface.c | 546 ----- 7842 src/db-message-cache.c | 310 --- 7843 src/db-message-ident.c | 72 - 7844 src/db-object-selection.c | 270 --- 7845 src/db.c | 107 - 7846 src/format-plugins.c | 81 - 7847 src/include/Makefile.am | 32 +- 7848 src/include/db-connection-data.h | 40 - 7849 src/include/db-connection.h | 40 - 7850 src/include/db-interface-string.h | 29 - 7851 src/include/db-interface.h | 103 - 7852 src/include/db-message-cache.h | 37 - 7853 src/include/db-message-ident.h | 36 - 7854 src/include/db-object-selection.h | 54 - 7855 src/include/db-type.h | 34 - 7856 src/include/db.h.in | 33 - 7857 src/include/param-string.h | 32 - 7858 src/include/plugin-filter.h | 88 - 7859 src/include/plugin-format.h | 120 -- 7860 src/include/plugin-sql.h | 164 -- 7861 src/include/preludedb-error.h | 73 + 7862 src/include/preludedb-object-selection.h | 58 + 7863 src/include/preludedb-plugin-format.h | 99 + 7864 src/include/preludedb-plugin-sql.h | 97 + 7865 src/include/preludedb-sql-settings.h | 62 + 7866 src/include/preludedb-sql.h | 120 ++ 7867 src/include/preludedb-version.h.in | 31 + 7868 src/include/preludedb.h | 87 + 7869 src/include/sql-connection-data.h | 60 - 7870 src/include/sql.h | 123 -- 7871 src/param-string.c | 221 -- 7872 src/preludedb-error.c | 60 + 7873 src/preludedb-object-selection.c | 286 +++ 7874 src/preludedb-sql-settings.c | 238 +++ 7875 src/preludedb-sql.c | 1535 ++++++++++++++ 7876 src/preludedb-version.c | 56 + 7877 src/preludedb.c | 422 ++++ 7878 src/sql-connection-data.c | 202 -- 7879 src/sql-plugins.c | 75 - 7880 src/sql.c | 1335 ------------ 7881 68 files changed, 6404 insertions(+), 9422 deletions(-) 7882 7883commit 8e47bb8d464dd9f6035c6f025e4448f190edef0d 7884Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7885Date: Fri Dec 31 16:35:59 2004 +0000 7886 7887 Update. 7888 7889 m4/libtool.m4 | 471 +++++++++++++++++++++++++++++++++------------------------ 7890 1 files changed, 276 insertions(+), 195 deletions(-) 7891 7892commit fa076da84e42168996439bc5a2aa7f236ea6fa5e 7893Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7894Date: Thu Dec 30 22:54:32 2004 +0000 7895 7896 fit last libprelude API changes 7897 7898 plugins/format/classic/idmef-db-insert.c | 18 ++++++++++-- 7899 src/sql.c | 42 ++++++++++++++++++++++++----- 7900 2 files changed, 49 insertions(+), 11 deletions(-) 7901 7902commit 8afba82359a27acc9adf34742c705b8009aa2a49 7903Author: Rob Holand <rob@inversepath.com> 7904Date: Thu Dec 23 11:31:02 2004 +0000 7905 7906 don't try and clean perl stuff up if we did --disable-perl 7907 7908 bindings/Makefile.am | 2 ++ 7909 1 files changed, 2 insertions(+), 0 deletions(-) 7910 7911commit 7f08193562d9f3bc7d6d8c34bce9513f344ab0c8 7912Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7913Date: Mon Dec 20 02:39:42 2004 +0000 7914 7915 rename byte in byte-string in mysql.sql to conform last IDMEF changes 7916 make the sql layer handle the length of a field, that fix a bug happening 7917 when binary data contains a NULL byte. 7918 7919 plugins/format/classic/idmef-db-get.c | 4 +- 7920 plugins/format/classic/mysql.sql | 2 +- 7921 plugins/sql/mysql/mysql.c | 49 +++++++++++++++++++++------------ 7922 plugins/sql/pgsql/pgsql.c | 33 ++++++++-------------- 7923 src/include/plugin-sql.h | 11 +++----- 7924 src/include/sql.h | 1 + 7925 src/sql.c | 39 +++++++++++++++++--------- 7926 7 files changed, 76 insertions(+), 63 deletions(-) 7927 7928commit e68268bca67c471378aef6b4987bf824eb574341 7929Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7930Date: Sun Dec 19 16:44:51 2004 +0000 7931 7932 bug fix: classification is not mandatory 7933 7934 plugins/format/classic/idmef-db-insert.c | 3 +++ 7935 1 files changed, 3 insertions(+), 0 deletions(-) 7936 7937commit c742e1c6fae36db21e09f70ebd7fb1310272b180 7938Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7939Date: Fri Dec 17 06:11:20 2004 +0000 7940 7941 fit additional data API changes 7942 7943 plugins/format/classic/idmef-db-get.c | 131 ++++++++++++++++++++++-------- 7944 plugins/format/classic/idmef-db-insert.c | 77 ++++++++++-------- 7945 2 files changed, 139 insertions(+), 69 deletions(-) 7946 7947commit 25c2d1c9c6ed2ecd19a3f0f5e1c52eaffd639987 7948Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 7949Date: Fri Dec 17 02:23:05 2004 +0000 7950 7951 Fit prelude-msgbuf API change. 7952 7953 src/db-message-cache.c | 28 ++++++++++------------------ 7954 1 files changed, 10 insertions(+), 18 deletions(-) 7955 7956commit 4fe674c58588e29c78315a4d9c67d825709a6f90 7957Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7958Date: Sat Dec 11 02:57:02 2004 +0000 7959 7960 fix memory leak 7961 7962 plugins/format/classic/idmef-db-insert.c | 3 +++ 7963 1 files changed, 3 insertions(+), 0 deletions(-) 7964 7965commit 9fdd7415cee6f7d3e0b8ac4023968a29a0e65afc 7966Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7967Date: Thu Dec 9 14:05:27 2004 +0000 7968 7969 fix bad sql table field name 7970 7971 plugins/format/classic/idmef-db-get.c | 2 +- 7972 1 files changed, 1 insertions(+), 1 deletions(-) 7973 7974commit 7e8c1849f1a306babefde0d4f0bbe5a7f2684325 7975Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7976Date: Wed Dec 8 18:54:14 2004 +0000 7977 7978 port delete code to the last schema changes 7979 7980 INSTALL | 2 +- 7981 plugins/format/classic/idmef-db-delete.c | 91 +++++++++++++++--------------- 7982 2 files changed, 47 insertions(+), 46 deletions(-) 7983 7984commit 76a85662e462114d5d8c7ec5a19013ab62acdfc9 7985Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7986Date: Wed Dec 8 11:03:22 2004 +0000 7987 7988 handle missing field file.ident, file.fstype and file.checksum.* 7989 7990 plugins/format/classic/idmef-db-get.c | 87 +++++++++++++++++++++++++++++---- 7991 1 files changed, 77 insertions(+), 10 deletions(-) 7992 7993commit 421dfc3010f7630055cb8d369b81c204c5cc2cb7 7994Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 7995Date: Sun Dec 5 17:47:26 2004 +0000 7996 7997 support for name field in idmef_analyzer 7998 7999 plugins/format/classic/idmef-db-get.c | 17 ++++++++++------- 8000 plugins/format/classic/idmef-db-insert.c | 16 +++++++++++----- 8001 plugins/format/classic/mysql.sql | 1 + 8002 plugins/format/classic/schema.txt | 2 ++ 8003 4 files changed, 24 insertions(+), 12 deletions(-) 8004 8005commit b5965cb220bfec0c7717b781c72e0dd3adc2ab6f 8006Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8007Date: Sun Dec 5 12:53:02 2004 +0000 8008 8009 Use idmef_message_read() instead of calling idmef_alert_read() / idmef_heartbeat_read() manually. 8010 8011 src/db-message-cache.c | 73 +++++++---------------------------------------- 8012 1 files changed, 11 insertions(+), 62 deletions(-) 8013 8014commit 62c17fe6ebdedaf7d5b01ef2462f756e2fa43784 8015Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8016Date: Sun Dec 5 11:57:11 2004 +0000 8017 8018 Remove deprecated header inclusion. Kill some warnings. 8019 8020 plugins/format/classic/idmef-db-delete.c | 1 - 8021 plugins/format/classic/idmef-db-get.c | 1 - 8022 plugins/format/classic/idmef-db-insert.c | 7 ++----- 8023 plugins/format/classic/idmef-db-select.c | 6 +++--- 8024 plugins/sql/pgsql/pgsql.c | 1 - 8025 src/db.c | 2 -- 8026 src/sql.c | 4 ++-- 8027 7 files changed, 7 insertions(+), 15 deletions(-) 8028 8029commit e86510cd40eee8fd929b849196aaaf7e8089cba5 8030Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8031Date: Sat Dec 4 16:46:38 2004 +0000 8032 8033 handle usec and gmtoff fields for idmef_time retrieved in get_values, 8034 these two fields are not supported when idmef_time is retrieved in a function 8035 like "max" 8036 8037 plugins/format/classic/classic.c | 23 +++++- 8038 plugins/format/classic/db-object.c | 28 ++++++- 8039 plugins/format/classic/idmef-db-select.c | 122 ++++++++++++++-------------- 8040 plugins/format/classic/include/db-object.h | 4 + 8041 plugins/format/classic/schema.txt | 14 ++-- 8042 5 files changed, 119 insertions(+), 72 deletions(-) 8043 8044commit e0a3d13df80fb87891be669465309b1a463cc749 8045Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8046Date: Fri Dec 3 18:27:15 2004 +0000 8047 8048 Fit latest libprelude API change. 8049 8050 INSTALL | 2 +- 8051 plugins/format/classic/classic.c | 3 --- 8052 plugins/format/classic/idmef-db-insert.c | 3 --- 8053 plugins/sql/pgsql/pgsql.c | 4 ---- 8054 src/db-message-cache.c | 2 +- 8055 src/db.c | 2 -- 8056 src/include/plugin-format.h | 4 +--- 8057 src/include/plugin-sql.h | 3 --- 8058 src/sql-plugins.c | 5 ----- 8059 9 files changed, 3 insertions(+), 25 deletions(-) 8060 8061commit 5ecfa01eb20a5052a95ceeb876b880d9fdd28908 8062Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8063Date: Thu Dec 2 18:12:09 2004 +0000 8064 8065 Merge idmef-v12-work change back in trunk. 8066 8067 plugins/format/classic/classic.c | 90 ++- 8068 plugins/format/classic/idmef-db-get.c | 872 +++++++++++----------- 8069 plugins/format/classic/idmef-db-insert.c | 1201 +++++++++++++++++------------ 8070 plugins/format/classic/idmef-db-select.c | 51 +- 8071 plugins/format/classic/mysql.sql | 668 +++++++++-------- 8072 plugins/format/classic/schema.txt | 354 +++++---- 8073 src/db-message-cache.c | 4 +- 8074 src/include/sql.h | 7 + 8075 src/sql.c | 99 +++- 8076 9 files changed, 1905 insertions(+), 1441 deletions(-) 8077 8078commit bbae36427599859ba2a7e5c6935433caa795dc9f 8079Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8080Date: Sun Nov 21 04:32:03 2004 +0000 8081 8082 Link to libpreludedb, so we don't end up with undefined reference.. 8083 8084 plugins/sql/mysql/Makefile.am | 2 +- 8085 1 files changed, 1 insertions(+), 1 deletions(-) 8086 8087commit 9bfea90732f0f9340f1eaf1f8820e4425a9ae942 8088Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8089Date: Tue Nov 9 16:15:26 2004 +0000 8090 8091 use full path of perl and python found by AC_PATH_PROG 8092 8093 configure.in | 4 ++-- 8094 1 files changed, 2 insertions(+), 2 deletions(-) 8095 8096commit a5e231e39e685b65654cfb172f6832d643e9120a 8097Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8098Date: Tue Nov 9 16:04:01 2004 +0000 8099 8100 restore perl and python detection code that have been removed 8101 by a bad guy (me) 8102 8103 configure.in | 7 +++++++ 8104 1 files changed, 7 insertions(+), 0 deletions(-) 8105 8106commit fcc04fa6707951ac5a7d81d7be5e87a2dec0f807 8107Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8108Date: Tue Nov 9 13:01:30 2004 +0000 8109 8110 make the compilation of the generated .c files depending on the 8111 wrapped .h files 8112 8113 bindings/Makefile.am | 9 +++++++-- 8114 1 files changed, 7 insertions(+), 2 deletions(-) 8115 8116commit 55fbf76b1cd6de4b7f870153af9cd28e78d45c60 8117Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8118Date: Tue Nov 9 02:27:20 2004 +0000 8119 8120 Use prelude-string instead of idmef-string. 8121 8122 plugins/format/classic/idmef-db-get.c | 16 ++-- 8123 plugins/format/classic/idmef-db-insert.c | 12 +- 8124 plugins/format/classic/idmef-db-select.c | 199 ++++++++++++++++-------------- 8125 plugins/format/new/idmef-db-output.c | 2 +- 8126 plugins/sql/mysql/mysql.c | 20 ++-- 8127 plugins/sql/pgsql/pgsql.c | 18 ++-- 8128 src/include/plugin-sql.h | 2 +- 8129 src/include/sql.h | 7 +- 8130 src/sql.c | 48 ++++---- 8131 9 files changed, 168 insertions(+), 156 deletions(-) 8132 8133commit 89ae5c4be5be32cf5450a201b556171fff8e2c06 8134Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8135Date: Mon Nov 1 16:22:19 2004 +0000 8136 8137 Update for idmef message read/write api change. 8138 8139 src/db-message-cache.c | 4 ++-- 8140 1 files changed, 2 insertions(+), 2 deletions(-) 8141 8142commit aaf6a0ecd0a8f2b3fcf4f20df065aa55059fcd1c 8143Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8144Date: Mon Nov 1 14:50:46 2004 +0000 8145 8146 Fit IDMEF message read API change. 8147 8148 src/db-message-cache.c | 2 +- 8149 1 files changed, 1 insertions(+), 1 deletions(-) 8150 8151commit e67895410208b4028d0963e45528b301c7d26f36 8152Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8153Date: Thu Oct 28 15:00:03 2004 +0000 8154 8155 bug fix: group by idents while fetching message ident list, this avoid possible 8156 ident duplication 8157 8158 INSTALL | 2 +- 8159 plugins/format/classic/classic.c | 2 +- 8160 2 files changed, 2 insertions(+), 2 deletions(-) 8161 8162commit 62f4e59908e3f57e740698b2e3d363e395692aa3 8163Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8164Date: Thu Oct 21 13:25:59 2004 +0000 8165 8166 Disable dlpreopening for plugins since it give a redondant dependencie problem... 8167 Will try to find a workaround later. 8168 8169 Makefile.am | 2 +- 8170 src/Makefile.am | 2 +- 8171 2 files changed, 2 insertions(+), 2 deletions(-) 8172 8173commit 802f8ec82e2c3e788af63739c6257fb97e245480 8174Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8175Date: Wed Oct 20 19:29:16 2004 +0000 8176 8177 Use libpreludedb.la in order to link classic with libpreludedb. 8178 8179 plugins/format/classic/Makefile.am | 2 +- 8180 1 files changed, 1 insertions(+), 1 deletions(-) 8181 8182commit dac3981b2d54d67aec06e216f6053b9f8dd01437 8183Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8184Date: Wed Oct 20 19:10:03 2004 +0000 8185 8186 fix bad library path 8187 8188 plugins/format/classic/Makefile.am | 2 +- 8189 1 files changed, 1 insertions(+), 1 deletions(-) 8190 8191commit 3addc2c5bf0f2b54f54dfc1c90823899493422e1 8192Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8193Date: Tue Oct 19 22:48:19 2004 +0000 8194 8195 bug fix: a blank space was missing 8196 8197 plugins/format/classic/classic.c | 2 +- 8198 1 files changed, 1 insertions(+), 1 deletions(-) 8199 8200commit 6cf6e065e27e93475718b812dc97d0348fdbf699 8201Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8202Date: Tue Oct 19 13:39:33 2004 +0000 8203 8204 Use @LIBPRELUDE_CFLAGS@ 8205 8206 bindings/perl/Makefile.PL.in | 2 +- 8207 bindings/python/setup.py.in | 2 +- 8208 2 files changed, 2 insertions(+), 2 deletions(-) 8209 8210commit 08b65ec862dd43d68c6669e8121c0fe6c3937c9a 8211Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8212Date: Tue Oct 19 00:43:02 2004 +0000 8213 8214 src/include/db.h | 33 --------------------------------- 8215 1 files changed, 0 insertions(+), 33 deletions(-) 8216 8217commit 62d4fbea543677623ee7e30e83137745ce6fc08b 8218Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8219Date: Tue Oct 19 00:13:10 2004 +0000 8220 8221 Add missing header file. 8222 8223 src/include/db.h | 33 +++++++++++++++++++++++++++++++++ 8224 1 files changed, 33 insertions(+), 0 deletions(-) 8225 8226commit df9a9f5e5bf56649e02156db7b40502127fee2fa 8227Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8228Date: Tue Oct 19 00:11:53 2004 +0000 8229 8230 Remove swig generated source code. 8231 8232 bindings/perl/PreludeDB.c | 3674 ------------------------------------------ 8233 bindings/python/_preludedb.c | 2491 ---------------------------- 8234 2 files changed, 0 insertions(+), 6165 deletions(-) 8235 8236commit 293a86b0ae9dd050f00ba029f2089bd24d223e93 8237Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8238Date: Tue Oct 19 00:10:23 2004 +0000 8239 8240 Revert previous commit enabling -export-dynamic, and link the classic format 8241 plugin to libprelude and libpreludedb. 8242 8243 plugins/format/classic/Makefile.am | 5 +++-- 8244 src/Makefile.am | 2 +- 8245 2 files changed, 4 insertions(+), 3 deletions(-) 8246 8247commit 884d967aeab87348f98e4245ef10ab42b6a631f6 8248Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8249Date: Tue Oct 19 00:01:58 2004 +0000 8250 8251 Add missing space. 8252 8253 bindings/python/setup.py.in | 2 +- 8254 1 files changed, 1 insertions(+), 1 deletions(-) 8255 8256commit 44bfe0821d66285b6b3c416f6d987bbcffa715c8 8257Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8258Date: Mon Oct 18 23:57:14 2004 +0000 8259 8260 Update to more recent swig, python and perl detection scheme. 8261 8262 configure.in | 67 +++++++++++++++++---------------------------------------- 8263 1 files changed, 20 insertions(+), 47 deletions(-) 8264 8265commit adba552dd85301fa65050f52d338c4530f657191 8266Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8267Date: Mon Oct 18 23:56:39 2004 +0000 8268 8269 Port the bindings build system work done in libprelude to libpreludedb, 8270 so that bindings compile and install correctly. 8271 8272 bindings/Makefile.am | 75 +++++++++++++++++++++++++++++++++++++- 8273 bindings/perl/Makefile.PL.in | 45 +++++++++++++++++++++++ 8274 bindings/perl/Makefile.am | 27 -------------- 8275 bindings/python/Makefile.am | 26 ------------- 8276 bindings/python/setup.py.in | 82 ++++++++++++++++++++++++++++++++++++++++++ 8277 5 files changed, 201 insertions(+), 54 deletions(-) 8278 8279commit ee4fdaeddef4453ed9f9b1a6b51987fd6ffbc9b4 8280Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8281Date: Mon Oct 18 23:55:00 2004 +0000 8282 8283 Add mysql.sql, pgsql.sql, schema.txt to EXTRA_DIST, and create 8284 the uninstall-local target to remove them to fix make distcheck. 8285 8286 plugins/format/classic/Makefile.am | 4 ++++ 8287 1 files changed, 4 insertions(+), 0 deletions(-) 8288 8289commit 8c0e38a3dd2bd78fa5d582e7acfb1fb3495a62fc 8290Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8291Date: Mon Oct 18 23:49:40 2004 +0000 8292 8293 Fix unresolved symbols. Untabify. 8294 8295 plugins/format/classic/idmef-db-insert.c | 635 +++++++++++++++--------------- 8296 1 files changed, 318 insertions(+), 317 deletions(-) 8297 8298commit abd19e0c0d88b2672fa4f5c918b305e6c0312f1e 8299Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8300Date: Mon Oct 18 23:23:36 2004 +0000 8301 8302 Add missing libtool.m4 8303 8304 m4/libtool.m4 | 6027 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8305 1 files changed, 6027 insertions(+), 0 deletions(-) 8306 8307commit 554b962f2aa2d55abe29c2d9f9132719951efdc2 8308Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8309Date: Mon Oct 18 23:21:09 2004 +0000 8310 8311 Fix link ordering. 8312 8313 bindings/perl/Makefile.am | 2 +- 8314 bindings/python/Makefile.am | 2 +- 8315 2 files changed, 2 insertions(+), 2 deletions(-) 8316 8317commit 85d12390e746123e26c5710adba2a25b1ed91aa2 8318Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8319Date: Mon Oct 18 21:38:14 2004 +0000 8320 8321 Re activate -export-dynamic, which is needed for libpreludedb plugin. 8322 8323 src/Makefile.am | 2 +- 8324 1 files changed, 1 insertions(+), 1 deletions(-) 8325 8326commit f7d4077cae41b3ee1de80f01f3349f07f6f78ffc 8327Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8328Date: Mon Oct 18 19:39:12 2004 +0000 8329 8330 Include missing stdio.h. 8331 8332 src/db-connection.c | 1 + 8333 1 files changed, 1 insertions(+), 0 deletions(-) 8334 8335commit f3c9cbac33309fe77abc0813ac47305008317e5a 8336Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8337Date: Sat Oct 16 13:25:00 2004 +0000 8338 8339 Slight variable substitution fix. 8340 8341 configure.in | 6 ++++-- 8342 libpreludedb-config.in | 2 +- 8343 2 files changed, 5 insertions(+), 3 deletions(-) 8344 8345commit 9a32f439032c75ad3c0b60994331b1194d8b87e7 8346Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8347Date: Thu Oct 14 12:09:58 2004 +0000 8348 8349 Quote version string. 8350 8351 src/include/db.h.in | 2 +- 8352 1 files changed, 1 insertions(+), 1 deletions(-) 8353 8354commit 9d6d2153e22960897fcc01861fd2cd40deeed238 8355Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8356Date: Thu Oct 14 11:46:25 2004 +0000 8357 8358 Commit missing file. 8359 8360 plugins/format/classic/include/Makefile.am | 1 + 8361 1 files changed, 1 insertions(+), 0 deletions(-) 8362 8363commit 84ef1cf7a8739ccaec4f226eedd795c97ad4ef17 8364Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8365Date: Thu Oct 14 11:35:21 2004 +0000 8366 8367 Generate db.h from db.h.in, and substitute LIBPRELUDEDB_VERSION 8368 with the version number provided to automake. This fix a configure error 8369 with SVN snapshots where the headers LIBPRELUDEDB_VERSION version was different 8370 from the autoconf provided version. 8371 8372 Thanks to Jochen Schlick <jochen.schlick@comsoft.de> for pointing the problem. 8373 8374 configure.in | 1 + 8375 src/include/Makefile.am | 3 ++- 8376 src/include/db.h | 33 --------------------------------- 8377 src/include/db.h.in | 33 +++++++++++++++++++++++++++++++++ 8378 4 files changed, 36 insertions(+), 34 deletions(-) 8379 8380commit e2115c0581d84ce9e35d2cd28778313a58b38215 8381Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8382Date: Mon Oct 11 00:07:35 2004 +0000 8383 8384 Several build fix. Fixed libpreludedb-config so that static linking work. 8385 Provide libpreludedb.m4 8386 8387 INSTALL | 131 +++++++++++++++++-------- 8388 Makefile.am | 3 +- 8389 acinclude.m4 | 149 ----------------------------- 8390 autogen.sh | 9 +- 8391 configure.in | 29 +++--- 8392 libpreludedb-config.in | 8 +- 8393 m4/Makefile.am | 2 + 8394 m4/ax_cflags_gcc_option.m4 | 183 ++++++++++++++++++++++++++++++++++++ 8395 m4/libprelude.m4 | 168 +++++++++++++++++++++++++++++++++ 8396 m4/libpreludedb.m4 | 168 +++++++++++++++++++++++++++++++++ 8397 plugins/Makefile.am | 2 +- 8398 plugins/format/classic/Makefile.am | 4 +- 8399 plugins/sql/mysql/Makefile.am | 2 +- 8400 plugins/sql/pgsql/Makefile.am | 2 +- 8401 src/Makefile.am | 4 +- 8402 src/db.c | 30 ++++++ 8403 src/format-plugins.c | 2 +- 8404 src/include/db.h | 3 + 8405 src/sql-plugins.c | 1 - 8406 src/sql.c | 1 - 8407 20 files changed, 678 insertions(+), 223 deletions(-) 8408 8409commit 6b7bfc4179404e36bf556c2d5f96ebb230ce36f9 8410Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8411Date: Mon Sep 20 16:01:14 2004 +0000 8412 8413 Fix format string when printing 64 bits integer on 64 bit system. 8414 8415 bindings/libpreludedb.i | 4 +- 8416 bindings/perl/PreludeDB.c | 1228 +++++++++++++++++++++++---------------------- 8417 2 files changed, 633 insertions(+), 599 deletions(-) 8418 8419commit 93cb049a92b6e299ac251703be8733a4833829dc 8420Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8421Date: Mon Sep 20 15:56:52 2004 +0000 8422 8423 Fix format string when printing 64 bits integer on 64 bit system. 8424 8425 plugins/format/classic/classic.c | 2 +- 8426 plugins/format/classic/idmef-db-delete.c | 92 +++++++++++++++--------------- 8427 plugins/format/classic/idmef-db-get.c | 74 ++++++++++++------------ 8428 plugins/format/classic/idmef-db-insert.c | 69 +++++++++++----------- 8429 src/db-message-cache.c | 2 +- 8430 src/sql.c | 4 +- 8431 6 files changed, 122 insertions(+), 121 deletions(-) 8432 8433commit ac5e6a1f4c27a78729428f8990afa3444be1fc73 8434Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8435Date: Mon Sep 20 11:45:45 2004 +0000 8436 8437 Remove invalid dependency. 8438 8439 plugins/format/classic/Makefile.am | 2 -- 8440 1 files changed, 0 insertions(+), 2 deletions(-) 8441 8442commit 197e9e281f0b959b3faf6b9b4ad0410ba3378d07 8443Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8444Date: Sun Sep 19 16:44:38 2004 +0000 8445 8446 dlpreopening support. 8447 8448 Makefile.am | 2 +- 8449 plugins/format/classic/classic.c | 6 +++++- 8450 plugins/sql/mysql/mysql.c | 5 ++++- 8451 plugins/sql/pgsql/pgsql.c | 3 ++- 8452 src/Makefile.am | 11 +++++++++++ 8453 5 files changed, 23 insertions(+), 4 deletions(-) 8454 8455commit 0318067bbaf707f31a90dc75a7af53ebc044a425 8456Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8457Date: Fri Jul 23 15:09:48 2004 +0000 8458 8459 raise an exception when an {alert,heartbeat}/{delete,get} fail 8460 8461 bindings/python/preludedb.py | 42 +++++++++++++++++++++++++++++++----------- 8462 1 files changed, 31 insertions(+), 11 deletions(-) 8463 8464commit aa4742372f389622d7a9a0234aeb2352a448ef83 8465Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8466Date: Fri Jul 16 10:10:47 2004 +0000 8467 8468 Fix leak on error in prelude_db_interface_new(). 8469 8470 src/db-interface.c | 5 ++--- 8471 1 files changed, 2 insertions(+), 3 deletions(-) 8472 8473commit 96000f180b88750b45903e6450b794645c4c71b4 8474Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8475Date: Tue Jul 13 22:17:49 2004 +0000 8476 8477 Fix a leak on connection error. 8478 8479 src/sql.c | 9 ++++++--- 8480 1 files changed, 6 insertions(+), 3 deletions(-) 8481 8482commit 7ef6f891b3065249922ba791e49e9fdbd9b94bd5 8483Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8484Date: Tue Jun 29 13:25:36 2004 +0000 8485 8486 * plugins/sql/mysql/mysql.c: include <mysql.h> instead of <mysql/mysql.h>, 8487 as we already have the mysql include directory in the include path. 8488 8489 plugins/sql/mysql/mysql.c | 12 ++++-------- 8490 1 files changed, 4 insertions(+), 8 deletions(-) 8491 8492commit 3576343b40ed3b42f4e7d96f6d0da9f42c75579d 8493Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8494Date: Fri Jun 25 09:33:12 2004 +0000 8495 8496 revert SQL schema modification. They didn't meant to be commited 8497 8498 plugins/format/classic/mysql.sql | 3 --- 8499 plugins/format/classic/pgsql.sql | 3 --- 8500 2 files changed, 0 insertions(+), 6 deletions(-) 8501 8502commit 5629245d3f679c2c8119d97ba9828c54ef28066c 8503Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8504Date: Fri Jun 25 09:10:10 2004 +0000 8505 8506 Applied patch from Rodolphe Ortalo <rodolphe.ortalo@cram-mp.fr>: 8507 8508 Apparently, in order to build and install the latest libprelude an 8509 libpreludedb from a _separate_ build directory (as in: cd libprelude && 8510 mkdir build && cd build && ../configure && make) one needs to apply the 8511 following modifications to some Makefile.am: see attached patches. 8512 Note the distinction between $(top_srcdir), $(top_builddir), $(srcdir) and 8513 . [$(builddir) in fact] in automake. 8514 8515 Makefile.am | 2 +- 8516 bindings/perl/Makefile.am | 4 ++-- 8517 bindings/python/Makefile.am | 4 ++-- 8518 plugins/format/classic/Makefile.am | 8 ++++---- 8519 plugins/format/classic/mysql.sql | 3 +++ 8520 plugins/format/classic/pgsql.sql | 3 +++ 8521 6 files changed, 15 insertions(+), 9 deletions(-) 8522 8523commit aa6ba7f93f27b388a550dbd0f05c37801f6fd170 8524Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8525Date: Tue Jun 22 14:40:47 2004 +0000 8526 8527 bug fix for heartbeat handling 8528 8529 bindings/python/preludedb.py | 3 ++- 8530 1 files changed, 2 insertions(+), 1 deletions(-) 8531 8532commit eacb5ddaf5037a88cd61a7257cb4bbb0884ac125 8533Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8534Date: Tue Jun 15 13:21:21 2004 +0000 8535 8536 * dev/prelude/svn/trunk/libpreludedb/plugins/format/classic/mysql.sql: 8537 use unique index on analyzerid+alert_ident to insure we don't insert 8538 the same things twice. 8539 8540 * dev/prelude/svn/trunk/libpreludedb/plugins/format/classic/pgsql.sql 8541 (): ditto... Need to be tested. 8542 8543 plugins/format/classic/mysql.sql | 3 ++- 8544 plugins/format/classic/pgsql.sql | 4 ++++ 8545 2 files changed, 6 insertions(+), 1 deletions(-) 8546 8547commit 0506f03e267933518fdb1664671e288ad4d35958 8548Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8549Date: Tue Jun 1 11:27:53 2004 +0000 8550 8551 * bindings/perl/PreludeDB.c: 8552 regenerate the bindings with swig 1.3.19 8553 8554 bindings/perl/PreludeDB.c | 1218 ++++++++++++++++++++++----------------------- 8555 1 files changed, 592 insertions(+), 626 deletions(-) 8556 8557commit d98eb4d76f63aa6b4e28e41537c32b6a73f52018 8558Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8559Date: Mon May 31 11:32:11 2004 +0000 8560 8561 * libpreludedb/configure.in 8562 (libprelude_db_cflags): expand prefix. 8563 8564 configure.in | 17 +++++++++++++++++ 8565 1 files changed, 17 insertions(+), 0 deletions(-) 8566 8567commit 2f02d4fab4d6f3b017f8aa7a94e0aa72c89e33cc 8568Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8569Date: Fri May 28 08:59:58 2004 +0000 8570 8571 * support for alerts/heartbeats identified by the unique analzerid/{alert,heartbeat}_ident pair 8572 8573 plugins/format/classic/classic.c | 100 +++++++++++++++++++++- 8574 plugins/format/classic/idmef-db-delete.c | 43 +--------- 8575 plugins/format/classic/idmef-db-get.c | 58 ++----------- 8576 plugins/format/classic/idmef-db-insert.c | 80 ++++++++++++++++-- 8577 plugins/format/classic/include/idmef-db-delete.h | 6 +- 8578 plugins/format/classic/include/idmef-db-get.h | 2 + 8579 plugins/format/classic/mysql.sql | 12 ++- 8580 plugins/format/classic/schema.txt | 4 +- 8581 8 files changed, 192 insertions(+), 113 deletions(-) 8582 8583commit 21cd4a14fc3594a743a80aa61b9bc7f4e433d891 8584Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8585Date: Thu May 27 21:47:12 2004 +0000 8586 8587 * update perl binding to the underlying C API 8588 8589 bindings/perl/PreludeDB.pm | 41 ++--------------------------------------- 8590 1 files changed, 2 insertions(+), 39 deletions(-) 8591 8592commit 9da9218568045f11efebb9d7e086cf116fbc59f8 8593Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8594Date: Thu May 27 21:41:51 2004 +0000 8595 8596 * fit last API changes of the underlying prelude_db_interface_get_{alert,heartbeat} 8597 C functions 8598 8599 bindings/python/preludedb.py | 2 +- 8600 1 files changed, 1 insertions(+), 1 deletions(-) 8601 8602commit 065214b12ff42686f92aa55371928077e51a665d 8603Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8604Date: Mon May 24 17:40:27 2004 +0000 8605 8606 * libpreludedb/configure.in: 8607 generate prelude-db-create.sh. 8608 8609 * libpreludedb/prelude-db-create.sh.in: 8610 move and rename from prelude-manager. Adapt to libpreludedb. 8611 8612 * libpreludedb/Makefile.am: 8613 install prelude-db-create.sh. 8614 8615 * libpreludedb/plugins/format/classic/Makefile.am 8616 (install-data-local): install SQL schema. 8617 8618 Makefile.am | 2 +- 8619 configure.in | 4 +- 8620 plugins/format/classic/Makefile.am | 1 + 8621 prelude-db-create.sh.in | 413 ++++++++++++++++++++++++++++++++++++ 8622 4 files changed, 418 insertions(+), 2 deletions(-) 8623 8624commit 8ad24eeca7211a910ee36555e8b9aee209fcc416 8625Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8626Date: Sun May 23 18:06:03 2004 +0000 8627 8628 * libpreludedb/plugins/format/classic/pgsql.sql: 8629 Support 64 bits unsigned int idents. 8630 8631 plugins/format/classic/pgsql.sql | 126 +++++++++++++++++++------------------- 8632 1 files changed, 63 insertions(+), 63 deletions(-) 8633 8634commit e27b9f51c88a60e48ca2d321a259e3a8d7ce9496 8635Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8636Date: Sun May 23 17:56:14 2004 +0000 8637 8638 port to new prelude-list.h API 8639 8640 bindings/libpreludedb.i | 2 +- 8641 bindings/perl/PreludeDB.c | 2 +- 8642 bindings/python/_preludedb.c | 2 +- 8643 plugins/format/classic/db-object.c | 29 +++++++++-------- 8644 plugins/format/classic/idmef-db-insert.c | 1 - 8645 plugins/format/classic/idmef-db-select.c | 43 +++++++++++++------------ 8646 plugins/sql/mysql/mysql.c | 1 - 8647 plugins/sql/pgsql/pgsql.c | 1 - 8648 src/db-interface-string.c | 1 - 8649 src/db-interface.c | 6 +--- 8650 src/db-object-selection.c | 24 +++++++------- 8651 src/sql-plugins.c | 2 +- 8652 src/sql.c | 51 ++++++++++++++++------------- 8653 13 files changed, 83 insertions(+), 82 deletions(-) 8654 8655commit 67f6d2c985ae7d37b2e9787c800c75e5ef2940ee 8656Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8657Date: Sun May 23 11:55:18 2004 +0000 8658 8659 * libpreludedb/plugins/format/classic/classic.c: 8660 remove a lot of obsolete code. 8661 8662 * db-interface.c 8663 (prelude_db_interface_get_alert): 8664 (prelude_db_interface_get_heartbeat): remove obsoleted object_list parameter. 8665 8666 * bindings: updated. 8667 8668 bindings/perl/PreludeDB.c | 77 ++++++--------- 8669 bindings/python/_preludedb.c | 67 ++++++------- 8670 plugins/format/classic/classic.c | 200 +------------------------------------- 8671 src/db-interface.c | 10 +- 8672 src/include/db-interface.h | 6 +- 8673 src/include/plugin-format.h | 10 +- 8674 6 files changed, 74 insertions(+), 296 deletions(-) 8675 8676commit eef52f9458159f1eac67ec26e986587607dc835f 8677Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8678Date: Sat May 22 22:53:47 2004 +0000 8679 8680 use BIGINT UNSIGNED for ident 8681 8682 plugins/format/classic/mysql.sql | 126 +++++++++++++++++++------------------- 8683 1 files changed, 63 insertions(+), 63 deletions(-) 8684 8685commit 6bc2c291155673f61b34abba69c5f762a20b48a1 8686Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8687Date: Sat May 22 13:15:46 2004 +0000 8688 8689 Regenerated bindings 8690 8691 bindings/perl/PreludeDB.c | 1316 ++++++++++++++++++++++-------------------- 8692 bindings/python/_preludedb.c | 372 +++++++----- 8693 2 files changed, 916 insertions(+), 772 deletions(-) 8694 8695commit d9473488e6207683c58cfac064fbd8606b21a7e7 8696Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8697Date: Sat May 22 13:15:29 2004 +0000 8698 8699 * libpreludedb/src/sql.c: fit latest API change. 8700 8701 (build_criterion_fixed_sql_like_value): cleanup parser, fix a possible 8702 off by one. 8703 8704 (prelude_sql_idmef_relation_to_string): new relation naming, use a loop 8705 to find the matching relation. 8706 8707 * libpreludedb/plugins/format/classic/idmef-db-select.c 8708 remove old/unused code. 8709 (criteria_to_sql:) update to work with new idmef-criteria implementation. 8710 8711 plugins/format/classic/classic.c | 12 +-- 8712 plugins/format/classic/idmef-db-select.c | 200 +++++------------------------- 8713 plugins/sql/mysql/mysql.c | 2 +- 8714 plugins/sql/pgsql/pgsql.c | 2 +- 8715 src/db-interface.c | 4 +- 8716 src/include/db-interface.h | 2 +- 8717 src/include/plugin-sql.h | 2 +- 8718 src/include/sql.h | 4 +- 8719 src/sql.c | 153 ++++++++++------------- 8720 9 files changed, 107 insertions(+), 274 deletions(-) 8721 8722commit 6575838fb8da7bc3325cc51fd96cfd6a462473cb 8723Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8724Date: Sat May 22 09:05:00 2004 +0000 8725 8726 Merge pgsql plugins-instances port 8727 8728 plugins/sql/pgsql/pgsql.c | 10 ++++------ 8729 1 files changed, 4 insertions(+), 6 deletions(-) 8730 8731commit d90ef6fb1816750d270a8f52852996d9cd5c3262 8732Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8733Date: Fri May 21 17:59:13 2004 +0000 8734 8735 Merge back plugins-instances change into trunk 8736 8737 plugins/format/classic/classic.c | 12 +-- 8738 plugins/format/classic/idmef-db-insert.c | 5 +- 8739 plugins/sql/mysql/mysql.c | 9 +- 8740 src/db-interface.c | 4 +- 8741 src/db.c | 21 +--- 8742 src/filter-plugins.c | 202 ------------------------------ 8743 src/format-plugins.c | 4 +- 8744 src/include/dispatch.h | 16 --- 8745 src/include/plugin-format.h | 10 ++- 8746 src/include/plugin-sql.h | 12 ++- 8747 src/sql-plugins.c | 10 +- 8748 src/sql.c | 4 +- 8749 12 files changed, 39 insertions(+), 270 deletions(-) 8750 8751commit fdb0c2b7482dae836d87318c3c19c2a88696bde9 8752Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8753Date: Sun May 16 12:11:18 2004 +0000 8754 8755 fix a compilation error in the case libpreludedb 8756 is compiled without Perl/Python support 8757 8758 bindings/perl/Makefile.am | 4 +++- 8759 bindings/python/Makefile.am | 4 +++- 8760 2 files changed, 6 insertions(+), 2 deletions(-) 8761 8762commit 7a1bfddebf7bb870907e82090a734294b80c2571 8763Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8764Date: Mon May 10 16:23:37 2004 +0000 8765 8766 bug fix (it could lead to a crash) 8767 8768 bindings/python/preludedb.py | 13 ++++++++++--- 8769 1 files changed, 10 insertions(+), 3 deletions(-) 8770 8771commit fc59cf776591ec0ec7cfb1ebb188995386c62997 8772Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8773Date: Thu Apr 1 09:42:55 2004 +0000 8774 8775 * plugins/format/classic/mysql.sql: 8776 * plugins/format/classic/pgsql.sql: 8777 bug fix, the service_ident field was missing in table Prelude_WebService 8778 8779 plugins/format/classic/mysql.sql | 1 + 8780 plugins/format/classic/pgsql.sql | 1 + 8781 2 files changed, 2 insertions(+), 0 deletions(-) 8782 8783commit 1ff4c2060d1345fda9512894dd4c46a32170a247 8784Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8785Date: Mon Mar 29 19:53:53 2004 +0000 8786 8787 * bindings/python/preludedb.py: 8788 bug fix 8789 8790 bindings/python/preludedb.py | 4 ++-- 8791 1 files changed, 2 insertions(+), 2 deletions(-) 8792 8793commit b7e41c4265d6f8590b21ec77b6f0b3a733493289 8794Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8795Date: Wed Mar 24 22:28:42 2004 +0000 8796 8797 * libpreludedb/configure.in: 8798 fix wrong installation paths for libpreludedb (bindings 8799 were installed in libprelude path instead of libpreludedb) 8800 8801 * libpreludedb/bindings/python/preludedb.py: 8802 * libpreludedb/bindings/perl/PreludeDB.pm: 8803 support of db message insertion for perl and python bindings 8804 8805 bindings/perl/PreludeDB.pm | 8 ++++++++ 8806 bindings/python/preludedb.py | 5 +++++ 8807 configure.in | 4 ++-- 8808 3 files changed, 15 insertions(+), 2 deletions(-) 8809 8810commit 75f44721f6258556f3de21b217a6a960dc235435 8811Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8812Date: Sat Mar 6 20:46:32 2004 +0000 8813 8814 * dev/prelude/svn/trunk/libpreludedb/plugins/format/classic/idmef-db-get.c 8815 (get_target): use idmef_target_decoy_to_numeric(). 8816 (get_source): use idmef_source_spoofed_to_numeric(). 8817 8818 * dev/prelude/svn/trunk/libpreludedb/plugins/format/classic/idmef-db-insert.c 8819 (insert_target): use idmef_target_decoy_to_string(). 8820 (insert_source): use idmef_source_spoofed_to_string(). 8821 8822 plugins/format/classic/idmef-db-get.c | 4 ++-- 8823 plugins/format/classic/idmef-db-insert.c | 4 ++-- 8824 2 files changed, 4 insertions(+), 4 deletions(-) 8825 8826commit 3fc11d48086afe63900d6a320278cd4652316242 8827Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8828Date: Fri Mar 5 19:11:16 2004 +0000 8829 8830 * db-message-cache.c 8831 (msg_to_heartbeat): idmef_recv_heartbeat() -> idmef_read_heartbeat(). 8832 (msg_to_alert): idmef_recv_alert() -> idmef_read_alert(). 8833 (write_message_to_cache): idmef_send_message() -> idmef_write_message(). 8834 8835 src/db-message-cache.c | 10 +++++----- 8836 1 files changed, 5 insertions(+), 5 deletions(-) 8837 8838commit 5124e6c78ebc990d04103916990fe5ad45c3922e 8839Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8840Date: Fri Mar 5 19:06:25 2004 +0000 8841 8842 Fit libprelude IDMEF API change. 8843 8844 plugins/format/classic/classic.c | 2 +- 8845 plugins/format/classic/idmef-db-insert.c | 34 +++++++++------------ 8846 plugins/format/classic/include/idmef-db-insert.h | 4 +- 8847 src/db-message-cache.c | 4 +- 8848 src/include/plugin-format.h | 2 +- 8849 5 files changed, 21 insertions(+), 25 deletions(-) 8850 8851commit 27a0e40d36c80f5c59354602d0e7cd2726f15a0c 8852Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8853Date: Fri Mar 5 19:06:04 2004 +0000 8854 8855 remove deprecated autoconf file. Fix call to AC_DEFINE to shutup 8856 autoconf. 8857 8858 acconfig.h | 8 -------- 8859 configure.in | 2 +- 8860 2 files changed, 1 insertions(+), 9 deletions(-) 8861 8862commit 7636e62ca12462c4f2a18177c83fe83e37daf6f7 8863Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8864Date: Thu Feb 12 22:53:20 2004 +0000 8865 8866 * configure.in: correct test for python/perl. 8867 8868 ChangeLog | 4 ++ 8869 configure.in | 106 ++++++++++++++++++++++++++++++---------------------------- 8870 2 files changed, 59 insertions(+), 51 deletions(-) 8871 8872commit 64cee2a574f84d603f69c00d24a6de94d4c9c5c8 8873Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8874Date: Fri Feb 6 00:46:15 2004 +0000 8875 8876 * plugins/format/classic/idmef-db-insert.c (insert_additional_data): 8877 use the size returned by idmef_additionaldata_data_to_string(). 8878 8879 ChangeLog | 5 +++++ 8880 plugins/format/classic/idmef-db-insert.c | 11 ++++++----- 8881 2 files changed, 11 insertions(+), 5 deletions(-) 8882 8883commit 63056581bb1cc7cbd0c02bbf9f3ce52fbc30bf55 8884Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8885Date: Tue Feb 3 10:20:17 2004 +0000 8886 8887 * plugins/sql/pgsql/pgsql.c (db_build_time_constraint): 8888 * plugins/sql/mysql/mysql.c (db_build_time_constraint): 8889 remove call to prelude_get_gmt_offset(). gmt_offset is already 8890 provided as an argument, and so it make no sense to compute it 8891 again. Fix re-declaration of gmt_offset. 8892 8893 * src/sql.c (build_time_constraint, build_criterion_hour): 8894 update call to prelude_get_gmt_offset() to fit API change. 8895 8896 * plugins/format/classic/idmef-db-insert.c (insert_additional_data): 8897 back to using idmef_additionaldata_data_to_string(), which should 8898 now work better. 8899 8900 ChangeLog | 9 +++++++++ 8901 plugins/sql/mysql/mysql.c | 7 +------ 8902 plugins/sql/pgsql/pgsql.c | 4 ---- 8903 src/sql.c | 13 +++++++------ 8904 4 files changed, 17 insertions(+), 16 deletions(-) 8905 8906commit cf296bbdf25dade85b6c064b2683c5671d23e654 8907Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8908Date: Tue Feb 3 00:20:01 2004 +0000 8909 8910 * plugins/format/classic/idmef-db-insert.c (insert_additional_data): 8911 back to using idmef_additionaldata_data_to_string(), which should 8912 now work better. 8913 8914 ChangeLog | 6 +++++ 8915 plugins/format/classic/idmef-db-insert.c | 33 +++++++++++++++++++---------- 8916 2 files changed, 27 insertions(+), 12 deletions(-) 8917 8918commit 3f7c29f88902e199452ba900c58236cf364bc0b0 8919Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8920Date: Sun Feb 1 16:33:05 2004 +0000 8921 8922 * bindings/python/preludedb.py: 8923 (PreludeDB.get_values) 8924 bug fixes: wrong test for tmp, and destroy function call of 8925 the wrong variable 8926 8927 ChangeLog | 7 +++++++ 8928 bindings/python/preludedb.py | 6 +++--- 8929 2 files changed, 10 insertions(+), 3 deletions(-) 8930 8931commit 4a94bb56653e6b402a493e992a2f516efe051428 8932Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8933Date: Sat Jan 31 13:04:29 2004 +0000 8934 8935 * plugins/format/classic/idmef-db-insert.c (insert_additional_data): 8936 remove call to idmef_additionaldata_data_to_string(). This function 8937 does absolutly nothing useful, and it's removal is pending. Use 8938 prelude_sql_escape_fast(). 8939 8940 ChangeLog | 7 +++++++ 8941 plugins/format/classic/idmef-db-insert.c | 15 +++++++-------- 8942 2 files changed, 14 insertions(+), 8 deletions(-) 8943 8944commit ac4be614665a70c9b8583a345d722e59cf49f53f 8945Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8946Date: Fri Jan 30 13:08:37 2004 +0000 8947 8948 * plugins/sql/mysql/mysql.c (db_escape): 8949 s/string/buf/ 8950 8951 ChangeLog | 5 +++++ 8952 plugins/sql/mysql/mysql.c | 6 +++--- 8953 2 files changed, 8 insertions(+), 3 deletions(-) 8954 8955commit 9710ed309096e624dc966a26734495b0d6e5ffb8 8956Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8957Date: Fri Jan 30 07:44:20 2004 +0000 8958 8959 * src/sql.c: 8960 (build_criterion_timestamp) 8961 bug fix, handle the "<=" relation correctly 8962 8963 ChangeLog | 6 ++++++ 8964 src/sql.c | 4 ++-- 8965 2 files changed, 8 insertions(+), 2 deletions(-) 8966 8967commit 037b39788ae65565a6aa83987c87a22431712bc6 8968Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 8969Date: Wed Jan 28 19:06:57 2004 +0000 8970 8971 * src/sql.c (prelude_sql_escape_fast): 8972 implement. Same as prelude_sql_escape() but take 8973 a size as argument. 8974 8975 * plugins/sql/pgsql/pgsql.c (db_escape): 8976 * plugins/sql/mysql/mysql.c (db_escape): 8977 now take a len argument. We doesn't compute len 8978 by ourself anymore. 8979 8980 ChangeLog | 11 +++++++++++ 8981 plugins/sql/mysql/mysql.c | 8 +++----- 8982 plugins/sql/pgsql/pgsql.c | 6 ++---- 8983 src/include/plugin-sql.h | 2 +- 8984 src/include/sql.h | 1 + 8985 src/sql.c | 22 ++++++++++++++++++---- 8986 6 files changed, 36 insertions(+), 14 deletions(-) 8987 8988commit 6b4696c94073f30fc67bc4c4d7b7bc9e362b65b1 8989Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 8990Date: Sun Jan 25 18:11:53 2004 +0000 8991 8992 Add support of time manipulation functions to pgsql 8993 8994 ChangeLog | 1 + 8995 plugins/sql/mysql/mysql.c | 2 +- 8996 plugins/sql/pgsql/pgsql.c | 103 +++++++++++++++++++++++++++++++++++++++++++++ 8997 3 files changed, 105 insertions(+), 1 deletions(-) 8998 8999commit fb46d68228f65b99f05b1e1636bdbaf3060f8928 9000Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9001Date: Sun Jan 25 17:46:15 2004 +0000 9002 9003 * bindings/perl/PreludeDB.c: 9004 regenerated 9005 9006 * bindings/python/_preludedb.c: 9007 regenerated 9008 9009 * bindings/python/preludedb.py: 9010 add support for prelude_db_interface_get_*_ident_list_len 9011 9012 * src/db-interface.c: 9013 * src/include/db-interface.h: 9014 * src/include/plugin-format.h: 9015 * plugins/format/classic/classic.c: 9016 add the ability to get the len of a db message ident list 9017 9018 * plugins/format/classic/classic.c: 9019 (classic_get_values) 9020 bug fix, convert from UTC to localtime the time fields retrieved 9021 9022 * plugins/format/classic/idmef-db-select.c: 9023 * src/sql.c: 9024 * src/include/sql.h: 9025 * src/include/plugin-sql.h 9026 * plugins/sql/mysql/mysql.c: 9027 add support for idmef-criterion-value 9028 9029 ChangeLog | 28 ++ 9030 bindings/perl/PreludeDB.c | 216 +++++++++++++- 9031 bindings/python/_preludedb.c | 133 ++++++++- 9032 bindings/python/preludedb.py | 19 +- 9033 plugins/format/classic/classic.c | 91 +++++-- 9034 plugins/format/classic/idmef-db-select.c | 40 ++- 9035 plugins/sql/mysql/mysql.c | 103 +++++++ 9036 src/db-interface.c | 16 + 9037 src/include/db-interface.h | 4 + 9038 src/include/plugin-format.h | 8 + 9039 src/include/plugin-sql.h | 24 ++- 9040 src/include/sql.h | 5 + 9041 src/sql.c | 470 +++++++++++++++++++++++++++++- 9042 13 files changed, 1090 insertions(+), 67 deletions(-) 9043 9044commit f8a2c4106c5b0c565589601d8cf273cb90581e1a 9045Author: Stephane Loeuillet <stephane.loeuillet@tiscali.fr> 9046Date: Fri Jan 23 14:55:27 2004 +0000 9047 9048 change parent_type fields from VARCHAR(1) to ENUM('S','T','H','A') in mysql schema 9049 9050 plugins/format/classic/mysql.sql | 34 +++++++++++++++++----------------- 9051 1 files changed, 17 insertions(+), 17 deletions(-) 9052 9053commit a2c686b8e09cd12ec9b8c858d0a547f700a43ecc 9054Author: Stephane Loeuillet <stephane.loeuillet@tiscali.fr> 9055Date: Thu Jan 22 18:40:42 2004 +0000 9056 9057 add keys to speed up piwi when database starts to be huge 9058 9059 plugins/format/classic/mysql.sql | 28 ++++++++++++++++++++-------- 9060 1 files changed, 20 insertions(+), 8 deletions(-) 9061 9062commit c3b04aca771e434a9a28c02957886cd79effb04f 9063Author: Stephane Loeuillet <stephane.loeuillet@tiscali.fr> 9064Date: Fri Jan 16 21:03:20 2004 +0000 9065 9066 indent fix only, no content change 9067 tabs in .sql files are evil, replace by plain spaces 9068 9069 plugins/format/classic/pgsql.sql | 48 +++++++++++++++++++------------------- 9070 1 files changed, 24 insertions(+), 24 deletions(-) 9071 9072commit 18868747ae8f92a0873e0045206798f0c79a889c 9073Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9074Date: Wed Jan 14 21:53:54 2004 +0000 9075 9076 * plugins/format/classic/pgsql.sql: 9077 bug fix, switch all time field in TIMESTAMP type 9078 (instead of VARCHAR or DATE types) 9079 9080 * plugins/sql/pgsql/pgsql.c: 9081 (db_field_fetch) 9082 (db_field_fetch_by_name) 9083 bug fix, return NULL if the field contains NULL 9084 9085 ChangeLog | 11 +++++++++++ 9086 plugins/format/classic/pgsql.sql | 14 +++++++------- 9087 plugins/sql/pgsql/pgsql.c | 15 ++++++++------- 9088 3 files changed, 26 insertions(+), 14 deletions(-) 9089 9090commit 9d43884e3f64616bf41ba213ab5a18f3018d7e6f 9091Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9092Date: Wed Jan 14 18:24:53 2004 +0000 9093 9094 * plugins/sql/pgsql/pgsql.c (db_escape): 9095 checking the wrong variable is bad for your health. 9096 9097 ChangeLog | 5 +++++ 9098 plugins/sql/pgsql/pgsql.c | 4 ++-- 9099 2 files changed, 7 insertions(+), 2 deletions(-) 9100 9101commit a6c093d12ca282d6884d9398f7fe52d4d965b87a 9102Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9103Date: Sun Jan 11 20:24:58 2004 +0000 9104 9105 test 9106 9107 plugins/format/classic/db-object.c | 2 -- 9108 1 files changed, 0 insertions(+), 2 deletions(-) 9109 9110commit 709d7ab664653731fbc0236927f2ba109ea3ce75 9111Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9112Date: Sun Jan 11 17:29:19 2004 +0000 9113 9114 * bindings/python/preludedb.py: 9115 (PreludeDB.__get_message) 9116 bug fix, return None if the underlying C function returns 9117 NULL 9118 9119 * plugins/format/classic/idmef-db-get.c: 9120 (get_userid) 9121 bug fix, did not check correctly the return value of a 9122 get_uint32 9123 (get_user) 9124 (get_process) 9125 bug fix, forgot to set table to NULL after destroying it that could lead 9126 to a double free 9127 (get_alert) 9128 (get_heartbeat) 9129 check if the alert/heartbeat is present in the DB before trying to fetch it instead 9130 of returning an empty idmef_message if it is not present 9131 9132 ChangeLog | 20 ++++++++++++ 9133 bindings/python/preludedb.py | 3 ++ 9134 plugins/format/classic/idmef-db-get.c | 54 ++++++++++++++++++++++++++++++++- 9135 3 files changed, 76 insertions(+), 1 deletions(-) 9136 9137commit 4840f10c5ffa1e818c09ba40c91fe7c937166198 9138Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9139Date: Sat Jan 10 08:10:48 2004 +0000 9140 9141 * bindings/perl/PreludeDB.pm: 9142 (get_message_ident_list) 9143 bug fix for criteria argument retrieval 9144 9145 ChangeLog | 6 ++++++ 9146 bindings/perl/PreludeDB.pm | 2 +- 9147 2 files changed, 7 insertions(+), 1 deletions(-) 9148 9149commit 3441f5e48d38634b430084cb89afd322685f5899 9150Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9151Date: Wed Jan 7 22:36:13 2004 +0000 9152 9153 Make yoann happy ;) 9154 9155 plugins/format/classic/classic.c | 2 +- 9156 1 files changed, 1 insertions(+), 1 deletions(-) 9157 9158commit 107306b81182dac12ad6f2259c8ab23b3ea57b65 9159Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9160Date: Wed Jan 7 16:49:49 2004 +0000 9161 9162 * plugins/format/classic/classic.c: 9163 (get_message) 9164 fit idmef_message changes 9165 9166 ChangeLog | 6 ++++++ 9167 plugins/format/classic/classic.c | 12 ++++++------ 9168 2 files changed, 12 insertions(+), 6 deletions(-) 9169 9170commit 93be93dec40a341c3314a59fc964443a20339ec6 9171Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9172Date: Fri Jan 2 21:55:23 2004 +0000 9173 9174 * plugins/format/classic/idmef-db-get.c: 9175 (get_timestamp) 9176 use idmef_time_set_db_timestamp 9177 (*) 9178 handle correctly NULL value: don't create empty object 9179 for NULL value anymore 9180 cleanup 9181 9182 ChangeLog | 10 + 9183 plugins/format/classic/idmef-db-get.c | 973 +++++++++++---------------------- 9184 2 files changed, 338 insertions(+), 645 deletions(-) 9185 9186commit ff62956b08e557fe3b7a8462d8a9dd5af416a816 9187Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9188Date: Thu Jan 1 23:18:39 2004 +0000 9189 9190 * plugins/format/classic/idmef-db-insert.c: 9191 (insert_inode) 9192 (insert_file) 9193 bug fix: insertion failed if there was no *time fields 9194 fit idmef_time_get_db_timestamp changes 9195 (insert_additional_data) 9196 bug fix: insertion failed if the len of the data embedded in 9197 additional_data was superior to 1024 bytes 9198 fit idmef_additionaldata_data_to_string changes 9199 (insert_createtime) 9200 (insert_detecttime) 9201 (insert_analyzertime) 9202 fit idmef_time_get_db_timestamp changes 9203 9204 ChangeLog | 20 ++++- 9205 plugins/format/classic/idmef-db-insert.c | 166 ++++++++++-------------------- 9206 2 files changed, 72 insertions(+), 114 deletions(-) 9207 9208commit c340ec031e03f6bc3ed602a784073d1f117a3219 9209Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9210Date: Wed Dec 31 14:17:51 2003 +0000 9211 9212 *** empty log message *** 9213 9214 ChangeLog | 5 +++++ 9215 plugins/sql/pgsql/pgsql.c | 2 +- 9216 2 files changed, 6 insertions(+), 1 deletions(-) 9217 9218commit d353df9273989bd2e5ae0dffaa8ac9d58eb03af6 9219Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9220Date: Wed Dec 31 11:53:45 2003 +0000 9221 9222 * plugins/format/classic/classic.c: 9223 fix some warnings 9224 9225 * plugins/format/classic/idmef-db-get.c: 9226 (get_ntp_timestamp) 9227 remove unused variables 9228 9229 * plugins/sql/pgsql/pgsql.c: 9230 bug fix: db_limit_offset was assigned to the escape func 9231 entry of the plugin 9232 9233 * src/param-string.c: 9234 fix some warnings 9235 9236 ChangeLog | 16 ++++++++++++++++ 9237 plugins/format/classic/classic.c | 3 +++ 9238 plugins/format/classic/idmef-db-get.c | 1 - 9239 plugins/sql/pgsql/pgsql.c | 4 +++- 9240 src/param-string.c | 31 +++++++++++++++++-------------- 9241 5 files changed, 39 insertions(+), 16 deletions(-) 9242 9243commit 18adbf685eeaf5c48ff414f693b9c0e54378f071 9244Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9245Date: Mon Dec 29 18:37:29 2003 +0000 9246 9247 * plugins/format/classic/idmef-db-get.c: 9248 (get_ntp_timestamp) 9249 bug fix: avoid (possibly buggy) code duplication, use 9250 idmef_time_new_ntp_timestamp to convert ntp stamptime 9251 to idmef_time 9252 9253 * plugins/format/classic/idmef-db-select.c: 9254 * plugins/sql/mysql/mysql.c: 9255 * plugins/sql/pgsql/pgsql.c: 9256 * src/sql.c: 9257 * src/include/plugin-sql.h: 9258 * src/include/sql.h: 9259 make sql limit and offset the sql plugin' job to have a better 9260 portability (libpreludedb should re-work with MySQL 3.2x) 9261 9262 ChangeLog | 17 ++++++ 9263 plugins/format/classic/idmef-db-get.c | 14 +---- 9264 plugins/format/classic/idmef-db-select.c | 82 ++++++++++++++++-------------- 9265 plugins/sql/mysql/mysql.c | 19 +++++++ 9266 plugins/sql/pgsql/pgsql.c | 20 +++++++ 9267 src/include/plugin-sql.h | 3 + 9268 src/include/sql.h | 1 + 9269 src/sql.c | 9 +++ 9270 8 files changed, 114 insertions(+), 51 deletions(-) 9271 9272commit dcd0a3666674fbfc9c85842d58eb70dfe321cbef 9273Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9274Date: Mon Dec 29 13:54:40 2003 +0000 9275 9276 Cleanup 9277 9278 ChangeLog | 1 + 9279 bindings/python/preludedb.py | 148 ++++++++++++++++++++++-------------------- 9280 2 files changed, 79 insertions(+), 70 deletions(-) 9281 9282commit 78f0f78d1277a80f1784c48d0abd4e435f0c1158 9283Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9284Date: Mon Dec 29 11:20:29 2003 +0000 9285 9286 * bindings/perl/PreludeDB.pm: 9287 (PreludeDBSQL) 9288 remove the "close" method (it should not be directly accessed) 9289 9290 * bindings/python/preludedb.py: 9291 documentation written 9292 remove the "close" method (see above) 9293 9294 ChangeLog | 10 +++++ 9295 bindings/perl/PreludeDB.pm | 8 ---- 9296 bindings/python/preludedb.py | 93 ++++++++++++++++++++++++++++++++++++------ 9297 3 files changed, 90 insertions(+), 21 deletions(-) 9298 9299commit 260ac5095eb5d0e97547d8fa3be2c7232a58cb1f 9300Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9301Date: Sun Dec 28 22:21:30 2003 +0000 9302 9303 Fixes 9304 9305 plugins/format/classic/idmef-db-select.c | 4 ++-- 9306 1 files changed, 2 insertions(+), 2 deletions(-) 9307 9308commit eeafdb5b1e1ac7c3c228217052c8625c56854ebe 9309Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9310Date: Sun Dec 28 16:10:08 2003 +0000 9311 9312 * plugins/format/classic/idmef-db-insert.c: 9313 insert an empty string ("") if a MUST-BE-PRESENT string 9314 does not contain anything 9315 9316 ChangeLog | 6 ++ 9317 plugins/format/classic/idmef-db-insert.c | 94 +++++++++++++++++------------ 9318 2 files changed, 61 insertions(+), 39 deletions(-) 9319 9320commit ae908c25abeaaa8386822c0b83e7a14cbafa24fa 9321Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9322Date: Sun Dec 28 15:18:55 2003 +0000 9323 9324 * plugins/format/classic/idmef-db-select.c: 9325 (relation_to_sql) 9326 fit last changes of prelude_sql_escape (and underlying 9327 db_escape sql plugin functions): the value is already quoted 9328 cleanup 9329 9330 ChangeLog | 8 +++ 9331 plugins/format/classic/idmef-db-select.c | 92 ++++++++++++++++-------------- 9332 plugins/sql/mysql/mysql.c | 2 +- 9333 3 files changed, 59 insertions(+), 43 deletions(-) 9334 9335commit b53b82243916bd541c9c8b0216fafbf680ffa5e0 9336Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9337Date: Sat Dec 27 23:55:39 2003 +0000 9338 9339 Ooops 9340 9341 plugins/sql/mysql/mysql.c | 4 ++-- 9342 1 files changed, 2 insertions(+), 2 deletions(-) 9343 9344commit 9b7d87e0f0628d03fc3908a99fbacb263d1e35ef 9345Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9346Date: Sat Dec 27 16:29:09 2003 +0000 9347 9348 * bindings/python/preludedb.py: 9349 fixes 9350 9351 ChangeLog | 5 +++++ 9352 bindings/python/preludedb.py | 25 +++++++++++++++++++++++-- 9353 2 files changed, 28 insertions(+), 2 deletions(-) 9354 9355commit 9c1732301b6af90c0250d808da4f33f630dfe8a1 9356Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9357Date: Sat Dec 27 16:26:14 2003 +0000 9358 9359 *** empty log message *** 9360 9361 plugins/sql/pgsql/pgsql.c | 2 +- 9362 1 files changed, 1 insertions(+), 1 deletions(-) 9363 9364commit 68bcecd44a661ff7ce1bc4c2a9a52145dbb70061 9365Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9366Date: Sat Dec 27 16:17:47 2003 +0000 9367 9368 * src/include/Makefile.am (noinst_HEADERS): 9369 * src/Makefile.am (libpreludedb_la_SOURCES): 9370 * src/include/gdb.h: 9371 * src/gdb.c: 9372 removed. 9373 9374 ChangeLog | 20 +++++++++++++------- 9375 src/Makefile.am | 1 - 9376 src/gdb.c | 39 --------------------------------------- 9377 src/include/Makefile.am | 1 - 9378 src/include/gdb.h | 7 ------- 9379 5 files changed, 13 insertions(+), 55 deletions(-) 9380 9381commit 5a9bd27484417fbbe4be9686dd1757eea5a0dc48 9382Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9383Date: Sat Dec 27 16:08:12 2003 +0000 9384 9385 * plugins/sql/mysql/mysql.c (cleanup): 9386 * plugins/sql/pgsql/pgsql.c (cleanup): 9387 fix possible NULL pointer dereference on cleanup. 9388 9389 * plugins/sql/mysql/mysql.c (db_escape): 9390 * plugins/sql/pgsql/pgsql.c (db_escape): 9391 updated. Return "NULL" if input is NULL. Else, quote 9392 the string using '' characters. Please note that this 9393 plugin is seriously updated compared to 0-8 version 9394 and that it should be synced asap. 9395 9396 * plugins/format/classic/idmef-db-insert.c (insert_address): 9397 (insert_node): (insert_userid): (insert_user): (insert_process): 9398 (insert_snmp_service): (insert_service): (insert_inode): 9399 (insert_linkage): (insert_analyzer): (insert_target): 9400 (insert_source): (insert_file): (insert_classification): 9401 (insert_additional_data): (insert_createtime): (insert_detecttime): 9402 (insert_impact): (insert_analyzertime): (insert_action): 9403 (insert_confidence): (insert_overflow_alert): (insert_tool_alert): 9404 (insert_correlation_alert): 9405 9406 Restore fix already applied to 0-8 branch, where the 9407 responssability to quote (' ') a string is up to the database plugin. 9408 9409 This avoid insertion of quoted NULL entry in the database, which 9410 would be considered as valid string. 9411 9412 ChangeLog | 27 +++ 9413 plugins/format/classic/idmef-db-delete.c | 2 +- 9414 plugins/format/classic/idmef-db-get.c | 5 +- 9415 plugins/format/classic/idmef-db-insert.c | 277 ++++++++++++++++++------------ 9416 plugins/sql/mysql/mysql.c | 45 ++++-- 9417 plugins/sql/pgsql/pgsql.c | 46 ++++-- 9418 6 files changed, 261 insertions(+), 141 deletions(-) 9419 9420commit 754a4579236a57e1599b7749d7f4b79cf2cf5077 9421Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9422Date: Sat Dec 27 12:27:40 2003 +0000 9423 9424 * src/include/Makefile.am (include_HEADERS): 9425 * src/Makefile.am (libpreludedb_la_SOURCES): 9426 remove strbuf.[ch]. 9427 9428 * plugins/format/classic/idmef-db-select.c: 9429 use prelude-strbuf instead of libpreludedb own strbuf 9430 implementation. 9431 9432 ChangeLog | 10 ++ 9433 plugins/format/classic/idmef-db-select.c | 253 +++++++++++++++--------------- 9434 src/Makefile.am | 1 - 9435 src/include/Makefile.am | 3 - 9436 src/include/strbuf.h | 43 ----- 9437 src/strbuf.c | 139 ---------------- 9438 6 files changed, 137 insertions(+), 312 deletions(-) 9439 9440commit 6b87d3bcb31fd4abb2d1a2cd7fa867bb87c67a24 9441Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9442Date: Fri Dec 26 21:28:12 2003 +0000 9443 9444 * plugins/format/classic/db-object.c: 9445 * src/db.c: 9446 only print debug message if in debug mode 9447 9448 ChangeLog | 4 ++++ 9449 plugins/format/classic/db-object.c | 5 ++++- 9450 src/db.c | 4 +++- 9451 3 files changed, 11 insertions(+), 2 deletions(-) 9452 9453commit ee1050036e3f7ac1d8a4b6394595d71303a0cdd0 9454Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9455Date: Fri Dec 26 21:17:04 2003 +0000 9456 9457 * configure.in: 9458 don't regenerate the .c source files of bindings during 9459 ./configure 9460 9461 ChangeLog | 6 ++++++ 9462 configure.in | 4 ---- 9463 2 files changed, 6 insertions(+), 4 deletions(-) 9464 9465commit 4ff6abd39c7e819ec82ba4b11bc917dd0886a65a 9466Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9467Date: Fri Dec 26 18:30:44 2003 +0000 9468 9469 * bindings/perl/PreludeDB.c: 9470 regenerated 9471 9472 * bindings/perl/PreludeDB.pm: 9473 cleanup 9474 (PreludeDBSelection) 9475 modified to use the new prelude_db_selected_object_new_string 9476 function (the function has been rewritten from Perl to C so that 9477 it can be also used from Python) 9478 9479 * bindings/perl/PreludeDB.i: 9480 moved in bindings/libpreludedb.i 9481 9482 * src/db-connection.c: 9483 * src/include/db-connection.h: 9484 (prelude_db_connection_get_sql) 9485 new function 9486 9487 * src/db-object-selection.c: 9488 * src/include/db-object-selection.h: 9489 (prelude_db_selected_object_new_string) 9490 new function, it should be used by the bindings 9491 9492 * bindings/python/*: 9493 new files 9494 python binding support 9495 9496 ChangeLog | 29 + 9497 bindings/Makefile.am | 2 +- 9498 bindings/generate.sh | 5 + 9499 bindings/libpreludedb.i | 145 +++ 9500 bindings/perl/PreludeDB.c | 185 ++-- 9501 bindings/perl/PreludeDB.i | 154 --- 9502 bindings/perl/PreludeDB.pm | 65 +- 9503 bindings/perl/generate.sh | 2 +- 9504 bindings/python/Makefile.am | 24 + 9505 bindings/python/_preludedb.c | 2317 +++++++++++++++++++++++++++++++++++++ 9506 bindings/python/generate.sh | 3 + 9507 bindings/python/preludedb.py | 402 +++++++ 9508 configure.in | 42 +- 9509 plugins/format/classic/classic.c | 3 +- 9510 src/db-connection.c | 13 + 9511 src/db-interface-string.c | 1 + 9512 src/db-object-selection.c | 141 +++ 9513 src/include/db-connection.h | 2 +- 9514 src/include/db-interface.h | 2 +- 9515 src/include/db-object-selection.h | 1 + 9516 20 files changed, 3219 insertions(+), 319 deletions(-) 9517 9518commit 5edf5f0fb16501a3b1fca7d9e71b541aeec750da 9519Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9520Date: Sun Dec 21 22:36:29 2003 +0000 9521 9522 add an "offset" parameter to the prelude_db_interface_select_values 9523 function 9524 9525 ChangeLog | 2 ++ 9526 bindings/perl/PreludeDB.c | 10 ++++++---- 9527 bindings/perl/PreludeDB.pm | 6 ++++-- 9528 plugins/format/classic/classic.c | 4 ++-- 9529 src/db-interface.c | 4 ++-- 9530 src/include/db-interface.h | 2 +- 9531 src/include/plugin-format.h | 2 +- 9532 7 files changed, 18 insertions(+), 12 deletions(-) 9533 9534commit 1bacaaeea53d54ae9853a781ba607ff5ada5a011 9535Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9536Date: Sun Dec 21 19:40:23 2003 +0000 9537 9538 * src/db-interface.c: 9539 * src/include/db-interface.h: 9540 * src/include/plugin-format.h: 9541 * plugins/format/classic/idmef-db-select.c: 9542 * plugins/format/classic/include/idmef-db-select.h: 9543 * plugins/format/classic/classic.c: 9544 add a "limit" and an "offset" parameter to the 9545 prelude_db_interface_get_{alert,heartbeat}_ident_list functions 9546 9547 * bindings/perl/PreludeDB.c: 9548 regenerated 9549 9550 * bindings/perl/PreludeDB.pm: 9551 fit changes of limit and offset stuff 9552 9553 ChangeLog | 17 +++++++++++++ 9554 bindings/perl/PreludeDB.c | 22 ++++++++++++----- 9555 bindings/perl/PreludeDB.pm | 11 +++++++- 9556 plugins/format/classic/classic.c | 17 ++++++++----- 9557 plugins/format/classic/idmef-db-select.c | 27 +++++++++++++++++----- 9558 plugins/format/classic/include/idmef-db-select.h | 3 ++ 9559 src/db-interface.c | 18 +++++++++----- 9560 src/include/db-interface.h | 6 +++- 9561 src/include/plugin-format.h | 6 +++- 9562 9 files changed, 95 insertions(+), 32 deletions(-) 9563 9564commit 500a6a31bc9ab309f71fa95657013db952e75b6e 9565Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9566Date: Fri Dec 19 14:14:13 2003 +0000 9567 9568 * plugins/format/classic/idmef-db-select.c: 9569 (relation_to_sql) 9570 bug fix for substr relation 9571 9572 ChangeLog | 6 ++++++ 9573 bindings/perl/PreludeDB.c | 2 +- 9574 plugins/format/classic/idmef-db-select.c | 4 ++-- 9575 3 files changed, 9 insertions(+), 3 deletions(-) 9576 9577commit 0c2c39f909b7857bb0ff6ac881f562d7623d7402 9578Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9579Date: Thu Dec 18 23:45:45 2003 +0000 9580 9581 * plugins/format/classic/schema.txt: 9582 add support for {alert,heartbeat}.analyzer.{node,process}* objects 9583 9584 ChangeLog | 5 +++++ 9585 plugins/format/classic/schema.txt | 35 +++++++++++++++++++++++++++++++---- 9586 2 files changed, 36 insertions(+), 4 deletions(-) 9587 9588commit 6e0127004da7e839ee7c0cc1906be12eced803f6 9589Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9590Date: Sun Dec 14 18:45:58 2003 +0000 9591 9592 * src/db-message-cache.c (cache_write_cb): 9593 fix a NULL pointer dereference in the messaging subsystem 9594 that would trigger if the cached alert we were written was 9595 to big. Return the recycled message. 9596 9597 ChangeLog | 7 +++++++ 9598 src/db-message-cache.c | 2 +- 9599 2 files changed, 8 insertions(+), 1 deletions(-) 9600 9601commit 141313a2304bda8f6a6d3ec6e967ce2ec0f6dcab 9602Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9603Date: Sun Dec 14 18:25:18 2003 +0000 9604 9605 don't set default path for cache 9606 9607 bindings/perl/PreludeDB.pm | 2 +- 9608 1 files changed, 1 insertions(+), 1 deletions(-) 9609 9610commit 8d36a802c7a5b920e167291122486ac82255c9a3 9611Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9612Date: Sun Dec 14 18:11:49 2003 +0000 9613 9614 * src/db-cache.c: 9615 renamed in src/db-message-cache.c 9616 little code cleanup 9617 9618 * src/db-interface.c: 9619 * src/include/db-interface.h: 9620 make db-interface use db-message-cache 9621 9622 * bindings/perl/Prelude.c: 9623 regenerated 9624 9625 * bindings/perl/Prelude.pm: 9626 updated to use cache feature of db-interface 9627 9628 ChangeLog | 16 ++ 9629 bindings/perl/PreludeDB.c | 119 ++++++++++--- 9630 bindings/perl/PreludeDB.pm | 8 + 9631 src/Makefile.am | 2 +- 9632 src/db-cache.c | 377 ---------------------------------------- 9633 src/db-interface.c | 93 ++++++++-- 9634 src/db-message-cache.c | 369 +++++++++++++++++++++++++++++++++++++++ 9635 src/include/Makefile.am | 2 +- 9636 src/include/db-cache.h | 33 ---- 9637 src/include/db-interface.h | 9 +- 9638 src/include/db-message-cache.h | 37 ++++ 9639 11 files changed, 603 insertions(+), 462 deletions(-) 9640 9641commit fd76b73bf97c2839c78ad82dd010cb9d17488e5d 9642Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9643Date: Sat Dec 13 16:37:19 2003 +0000 9644 9645 *** empty log message *** 9646 9647 src/db-cache.c | 10 +++++++--- 9648 1 files changed, 7 insertions(+), 3 deletions(-) 9649 9650commit 6a962b17b9773934bb4cee0325775799ef83f8e1 9651Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9652Date: Sat Dec 13 16:36:38 2003 +0000 9653 9654 *** empty log message *** 9655 9656 src/db-cache.c | 18 +++++++++++------- 9657 1 files changed, 11 insertions(+), 7 deletions(-) 9658 9659commit 336f2588751b0ddd2ab77217273d9dad37bc4957 9660Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9661Date: Sat Dec 13 16:17:32 2003 +0000 9662 9663 *** empty log message *** 9664 9665 src/db-cache.c | 2 +- 9666 1 files changed, 1 insertions(+), 1 deletions(-) 9667 9668commit fad0f550a58c414b7ae8d3134de4533c7df09a80 9669Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9670Date: Sat Dec 13 16:14:47 2003 +0000 9671 9672 *** empty log message *** 9673 9674 src/db-cache.c | 1 - 9675 1 files changed, 0 insertions(+), 1 deletions(-) 9676 9677commit deef51d5671d8cdcd12a1595997296ed8ccd6197 9678Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9679Date: Sat Dec 13 16:14:09 2003 +0000 9680 9681 *** empty log message *** 9682 9683 src/db-cache.c | 2 +- 9684 1 files changed, 1 insertions(+), 1 deletions(-) 9685 9686commit c4c3584562d61d0fc88021b3e1e875e7d71d678e 9687Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9688Date: Sat Dec 13 16:06:27 2003 +0000 9689 9690 *** empty log message *** 9691 9692 src/db-cache.c | 41 ++++++++++++++++++----------------------- 9693 1 files changed, 18 insertions(+), 23 deletions(-) 9694 9695commit 4719a44bcade0a8a27a033f1b93887c95ad33d6a 9696Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9697Date: Sat Dec 13 15:45:45 2003 +0000 9698 9699 more db-cache work... 9700 9701 src/db-cache.c | 37 ++++++++++++++++++++----------------- 9702 1 files changed, 20 insertions(+), 17 deletions(-) 9703 9704commit f00f3f1c7df024e8a9577cf0d4f3c64a9dab80d6 9705Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 9706Date: Sat Dec 13 14:34:42 2003 +0000 9707 9708 * configure.in: 9709 stop overwritting user provided CFLAGS. 9710 9711 * src/sql-connection-data.c: 9712 remove useless NULL check. 9713 9714 * src/include/Makefile.am (includedir): 9715 * src/Makefile.am (libpreludedb_la_SOURCES): 9716 * src/include/db-cache.h: 9717 * src/db-cache.c: 9718 database caching mechanism implementation. 9719 9720 ChangeLog | 14 ++ 9721 configure.in | 8 +- 9722 src/Makefile.am | 1 + 9723 src/db-cache.c | 372 +++++++++++++++++++++++++++++++++++++++++++++ 9724 src/include/Makefile.am | 1 + 9725 src/include/db-cache.h | 33 ++++ 9726 src/sql-connection-data.c | 54 ++----- 9727 7 files changed, 437 insertions(+), 46 deletions(-) 9728 9729commit d7067f84006785a2e1ba3cb9f93dc1406c2bba27 9730Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9731Date: Wed Dec 10 17:58:55 2003 +0000 9732 9733 * plugins/format/classic/idmef-db-insert.c: 9734 * plugins/format/classic/idmef-db-select.c: 9735 fit last changes of libprelude (stuff moved from 9736 idmef-util.c to idmef-time.c) 9737 9738 ChangeLog | 7 +++++++ 9739 bindings/perl/PreludeDB.c | 2 +- 9740 plugins/format/classic/idmef-db-insert.c | 20 ++++++++++---------- 9741 plugins/format/classic/idmef-db-select.c | 2 +- 9742 4 files changed, 19 insertions(+), 12 deletions(-) 9743 9744commit 67e5557274b92efe2d025103cffc504bbb7b8bba 9745Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9746Date: Sun Nov 30 12:44:26 2003 +0000 9747 9748 * bindings/perl/PreludeDB.pm: 9749 (PreludeDB::delete_alert) 9750 (PreludeDB::delete_heartbeat) 9751 bug fix, forgot to port this two functions to the 9752 last changes of the libpreludedb C API 9753 9754 ChangeLog | 8 ++++++++ 9755 bindings/perl/PreludeDB.pm | 27 ++++++++++++++++++++------- 9756 2 files changed, 28 insertions(+), 7 deletions(-) 9757 9758commit a8bd1147215d2855cbae3a1743637fed61f47616 9759Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9760Date: Mon Nov 24 07:01:25 2003 +0000 9761 9762 forgot to remove the include of db-uident.h ... 9763 9764 plugins/format/classic/idmef-db-get.c | 1 - 9765 1 files changed, 0 insertions(+), 1 deletions(-) 9766 9767commit 89c5719e10fd95b3ca9cea0873535006fe79a631 9768Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9769Date: Sun Nov 23 23:23:08 2003 +0000 9770 9771 I forgot to add/remove some files... 9772 9773 src/db-message-ident.c | 72 ++++++++++++++++++++++++++++++++++++++++ 9774 src/include/db-message-ident.h | 36 ++++++++++++++++++++ 9775 src/include/db-uident.h | 37 -------------------- 9776 3 files changed, 108 insertions(+), 37 deletions(-) 9777 9778commit 40c4b26377e57475fcaee183a9a43e8889a40306 9779Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9780Date: Sun Nov 23 19:46:13 2003 +0000 9781 9782 * bindings/perl/PreludeDB.i: 9783 updated to fit the new db-message-ident.[ch] 9784 9785 * bindings/perl/PreludeDB.pm: 9786 updated to fit the new db-message-ident.c and the API 9787 changes of format plugin 9788 code cleanup 9789 9790 * plugins/format/classic/classic.c: 9791 updated to fit the new db-message-ident.c 9792 code cleanup 9793 9794 * plugins/format/classic/idmef-db-delete.c: 9795 * plugins/format/classic/include/idmef-db-delete.h: 9796 updated to fit the new db-message-ident.c 9797 9798 * plugins/format/classic/idmef-db-select.c: 9799 bug fix, handle correctly is_null and is_not_null relations 9800 9801 * plugins/sql/mysql/mysql.c: 9802 remove the double queries limitation 9803 9804 * plugins/sql/pgsql/pgsql.c: 9805 remove the double queries limitation 9806 bug fix, db_query did not return NULL for table with 0 row 9807 9808 * src/db-message-ident.c: 9809 * src/include/db-message-ident.h: 9810 new files 9811 provide message ident manipulation functions 9812 9813 * src/db-interface-string.c: 9814 include db-message-ident.h 9815 9816 * src/db-interface.c: 9817 * src/include/db-interface.h: 9818 the API for alert ident list retrieving has been changed in order 9819 to be more efficient 9820 code cleanup 9821 9822 * src/db.c: 9823 * src/include/db.h: 9824 include db-message-ident.h 9825 prelude_db_shutdown now returns void instead of int 9826 9827 * src/format-plugins.c: 9828 include db-message-ident.h 9829 9830 * src/include/plugin-format.h: 9831 API has been changed to provide a more efficient to way 9832 to handle alert lists 9833 9834 * bindings/perl/PreludeDB.c: 9835 regenerated 9836 9837 ChangeLog | 57 +++ 9838 bindings/perl/PreludeDB.c | 539 ++++++++++------------ 9839 bindings/perl/PreludeDB.i | 143 +------ 9840 bindings/perl/PreludeDB.pm | 99 ++-- 9841 plugins/format/classic/classic.c | 188 +++----- 9842 plugins/format/classic/idmef-db-delete.c | 10 +- 9843 plugins/format/classic/idmef-db-select.c | 10 +- 9844 plugins/format/classic/include/idmef-db-delete.h | 4 +- 9845 plugins/sql/mysql/mysql.c | 34 +-- 9846 plugins/sql/pgsql/pgsql.c | 42 +-- 9847 src/Makefile.am | 1 + 9848 src/db-interface-string.c | 2 +- 9849 src/db-interface.c | 202 +++----- 9850 src/db.c | 6 +- 9851 src/format-plugins.c | 2 +- 9852 src/include/Makefile.am | 2 +- 9853 src/include/db-interface.h | 26 +- 9854 src/include/db.h | 2 +- 9855 src/include/plugin-format.h | 46 ++- 9856 19 files changed, 595 insertions(+), 820 deletions(-) 9857 9858commit 4273bdf890674ea7e03a04d82d0f98877a7ad5b0 9859Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9860Date: Wed Nov 19 20:09:58 2003 +0000 9861 9862 * plugins/format/classic/idmef-db-insert.c: 9863 bug fix, idmef_source_spoofed_to_string does not 9864 exist anymore, replace it by idmef_spoofed_to_string 9865 thanks to John Green for pointing that out 9866 9867 ChangeLog | 7 +++++++ 9868 plugins/format/classic/idmef-db-insert.c | 4 ++-- 9869 2 files changed, 9 insertions(+), 2 deletions(-) 9870 9871commit 838e5ad99c5c39b36a5f0bcbeb2c344784d7005f 9872Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9873Date: Tue Nov 18 00:10:27 2003 +0000 9874 9875 * bindings/perl/PreludeDB.pm: 9876 bug fix (IDMEFSelection did not longer exist) 9877 9878 ChangeLog | 5 ++++ 9879 bindings/perl/PreludeDB.c | 2 +- 9880 bindings/perl/PreludeDB.pm | 52 +++++++++++++++++++++++++++++++++---------- 9881 3 files changed, 46 insertions(+), 13 deletions(-) 9882 9883commit 28e96ad956c0a8d220d11b235fcc8604960065a0 9884Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9885Date: Mon Nov 17 00:15:20 2003 +0000 9886 9887 * src/db-object-selection.c: 9888 * src/include/db-object-selection.h: 9889 new files 9890 replace idmef-selection 9891 9892 * bindings/perl/PreludeDB.i: 9893 * bindings/perl/PreludeDB.pm: 9894 * plugins/format/classic/classic.c: 9895 * plugins/format/classic/idmef-db-select.c: 9896 * plugins/format/classic/include/idmef-db-select.h: 9897 * src/db-interface-string.c: 9898 * src/db-interface-string.c: 9899 * src/db-interface.c: 9900 * src/db.c: 9901 * src/format-plugins.c: 9902 * src/include/plugin-format.h: 9903 fit new selection stuff changes 9904 9905 * bindings/perl/PreludeDB.c: 9906 regenerated 9907 9908 ChangeLog | 23 ++ 9909 bindings/perl/PreludeDB.c | 358 +++++++++++++++++++--- 9910 bindings/perl/PreludeDB.i | 2 + 9911 bindings/perl/PreludeDB.pm | 103 ++++++- 9912 plugins/format/classic/classic.c | 144 ++++++--- 9913 plugins/format/classic/idmef-db-select.c | 90 +++--- 9914 plugins/format/classic/include/idmef-db-select.h | 2 +- 9915 src/Makefile.am | 1 + 9916 src/db-interface-string.c | 2 + 9917 src/db-interface.c | 19 +- 9918 src/db-object-selection.c | 129 ++++++++ 9919 src/db.c | 1 + 9920 src/format-plugins.c | 2 + 9921 src/include/Makefile.am | 1 + 9922 src/include/db-interface.h | 8 +- 9923 src/include/db-object-selection.h | 53 ++++ 9924 src/include/plugin-format.h | 8 +- 9925 17 files changed, 784 insertions(+), 162 deletions(-) 9926 9927commit eafe5c33e3f4f236c4d2d839d76045050a179d9c 9928Author: Stephane Loeuillet <stephane.loeuillet@tiscali.fr> 9929Date: Sat Nov 15 16:44:31 2003 +0000 9930 9931 remove 'strip'ping of perl binding 9932 correct case on table name (Prelude_UserId not Prelude_UserID) 9933 9934 bindings/perl/Makefile.am | 2 +- 9935 plugins/format/classic/idmef-db-get.c | 2 +- 9936 2 files changed, 2 insertions(+), 2 deletions(-) 9937 9938commit f3c81df0aecdd5d411f49942852e9e31636525bb 9939Author: Stephane Loeuillet <stephane.loeuillet@tiscali.fr> 9940Date: Fri Nov 14 22:49:03 2003 +0000 9941 9942 fix installation problems on gentoo and perhaps other distribs 9943 9944 bindings/perl/Makefile.am | 8 ++++---- 9945 libpreludedb-config.in | 2 +- 9946 2 files changed, 5 insertions(+), 5 deletions(-) 9947 9948commit a667655d9c63b428e04dc3067da5a333f1a786fb 9949Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9950Date: Wed Nov 5 20:04:15 2003 +0000 9951 9952 * plugins/format/classic/idmef-db-get.c: 9953 fit libprelude changes (*_find_{string,numeric} functions 9954 renamed in *_to_{string,numeric}) 9955 9956 ChangeLog | 6 ++++++ 9957 bindings/perl/PreludeDB.c | 2 +- 9958 plugins/format/classic/idmef-db-get.c | 30 +++++++++++++++--------------- 9959 3 files changed, 22 insertions(+), 16 deletions(-) 9960 9961commit 3cf119295e86485c5b70a3677f4d249ae7ac1eb1 9962Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9963Date: Sat Oct 25 22:16:19 2003 +0000 9964 9965 * bindings/perl/PreludeDB.pm: 9966 remove idmef_selection build related code 9967 use new libprelude perl's IDMEFSelection 9968 9969 ChangeLog | 6 ++ 9970 bindings/perl/PreludeDB.c | 2 +- 9971 bindings/perl/PreludeDB.pm | 138 +++++-------------------------------------- 9972 3 files changed, 23 insertions(+), 123 deletions(-) 9973 9974commit f05057ec53eaa4bc57faba69ea70bfcba55f4a39 9975Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9976Date: Sat Oct 25 07:54:18 2003 +0000 9977 9978 * bindings/perl/PreludeDB.pm: 9979 (PreludeDB::get_values) 9980 updated to use distinct stuff 9981 9982 * plugins/format/classic/idmef-db-select.c: 9983 (build_request) 9984 fix a bug introduced when "SELECT DISTINCT" has 9985 been reintroduced: the two last arguments of 9986 strbuf_sprintf where not took into account because 9987 two "%s" where missing in the format string 9988 9989 ChangeLog | 16 ++++++++++++++-- 9990 bindings/perl/PreludeDB.c | 2 +- 9991 bindings/perl/PreludeDB.pm | 5 ++++- 9992 plugins/format/classic/idmef-db-select.c | 4 ++-- 9993 4 files changed, 21 insertions(+), 6 deletions(-) 9994 9995commit 44aa9c410c23d89492a19e1a1f8ece627cf59cbf 9996Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 9997Date: Thu Oct 23 22:04:54 2003 +0000 9998 9999 * plugins/format/classic/idmef-db-get.c: 10000 * plugins/format/classic/idmef-db-insert.c: 10001 fit idmef-tree last changes 10002 10003 ChangeLog | 7 ++++ 10004 bindings/perl/PreludeDB.c | 2 +- 10005 plugins/format/classic/idmef-db-get.c | 45 ++++++----------------------- 10006 plugins/format/classic/idmef-db-insert.c | 8 ++-- 10007 4 files changed, 22 insertions(+), 40 deletions(-) 10008 10009commit b44ffde568dfab593e480b246ef35509b65f59cf 10010Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10011Date: Tue Oct 21 15:38:24 2003 +0000 10012 10013 * src/include/plugin-format.h: 10014 * src/include/db-interface.c: 10015 * src/db-interface.c: 10016 * plugins/format/classic/classic.c: 10017 * plugins/format/classic/idmef-db-select.c: 10018 * plugins/format/classic/include/idmef-db-select.h: 10019 reintroduced support for "SELECT DISTINCT". 10020 10021 * plugins/format/classic/include/idmef-db-select.h: 10022 #define'd some useful symbolic names for three int parameters of 10023 idmef_db_select(). 10024 10025 * bindings/perl/PreludeDB.c: 10026 regenerated. 10027 10028 ChangeLog | 17 +++++++++++++++++ 10029 bindings/perl/PreludeDB.c | 10 ++++++---- 10030 plugins/format/classic/classic.c | 10 +++++++--- 10031 plugins/format/classic/idmef-db-select.c | 7 +++++-- 10032 plugins/format/classic/include/idmef-db-select.h | 9 +++++++++ 10033 src/db-interface.c | 3 ++- 10034 src/include/db-interface.h | 1 + 10035 src/include/plugin-format.h | 1 + 10036 8 files changed, 48 insertions(+), 10 deletions(-) 10037 10038commit cabf9d19d585c9a62ff605a4bde1fb18dbd5c110 10039Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10040Date: Tue Oct 21 14:53:09 2003 +0000 10041 10042 2003-10-21 Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10043 10044 * plugins/format/classic/idmef-db-select.c: 10045 (table_list_to_strbuf): renamed to table_list_to_strbuf_for_alerts(). 10046 (table_list_to_strbuf_for_values): implemented. This function uses 10047 right joins as opposed to table_list_to_strbuf_for_alerts(). 10048 (build_request): 10049 (idmef_db_select): take a parameter specifying if we are extracting 10050 complete alerts or values accross the alerts; use left and right 10051 joins respectively 10052 10053 * plugins/format/classic/idmef-db-select.h: 10054 * plugins/format/classic/classic.c: 10055 modified accordingly. 10056 10057 ChangeLog | 15 +++ 10058 plugins/format/classic/classic.c | 6 +- 10059 plugins/format/classic/idmef-db-select.c | 124 ++++++++++++++++++++-- 10060 plugins/format/classic/include/idmef-db-select.h | 3 +- 10061 4 files changed, 134 insertions(+), 14 deletions(-) 10062 10063commit 201beea5485de2e293ecdf878f5bdea1337a4a0a 10064Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10065Date: Mon Oct 20 07:35:11 2003 +0000 10066 10067 * bindings/perl/PreludeDB.i: 10068 * bindings/perl/PreludeDB.pm: 10069 code review: fixes and cleanup 10070 10071 * bindings/perl/PreludeDB.c: 10072 regenerated 10073 10074 ChangeLog | 9 ++ 10075 bindings/perl/PreludeDB.c | 243 +++++++++++++++++++++++++++++++------------- 10076 bindings/perl/PreludeDB.i | 151 +++++++++++++++++++-------- 10077 bindings/perl/PreludeDB.pm | 45 ++++++--- 10078 4 files changed, 320 insertions(+), 128 deletions(-) 10079 10080commit d9b47c4caa554c60eeed8be16e3a3284a15d22c5 10081Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10082Date: Sat Oct 18 06:59:41 2003 +0000 10083 10084 * plugins/format/classic/classic.c: 10085 bug fix: build value the right way 10086 10087 ChangeLog | 5 +++++ 10088 bindings/perl/PreludeDB.i | 4 ++++ 10089 plugins/format/classic/classic.c | 27 ++++++++++++++++++++++----- 10090 3 files changed, 31 insertions(+), 5 deletions(-) 10091 10092commit b9241548f488ffee895f44e7ba5bee4f5558cfba 10093Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10094Date: Sun Oct 12 17:53:27 2003 +0000 10095 10096 * bindings/perl/PreludeDB.pm: 10097 (PreludeDB::DESTROY) 10098 (PreludeDBSQLRow::DESTROY) 10099 <<<grab from the ChangeLog of libprelude, we have 10100 exactly the same problem in libpreludedb>>> 10101 "bug" fix/workaround 10102 some code like this: 10103 perl -e "use Prelude; $message = new IDMEFMessage" 10104 (note that I did not use "my") 10105 leads to call IDMEFMessage::DESTROY -> idmef_message_destroy with a NULL 10106 pointer (because the swig intermediate object has been destroyed before 10107 the top IDMEFMessage::DESTROY is called itself) 10108 this is very bizarre, and only happen for non-my variable at perl exit stage, 10109 perl -e "use Prelude; my $message = new IDMEFMessage" will work 10110 perl -e "use Prelude; $message = new IDMEFMessage; $message = undef" will also work 10111 indeed, perl is great language ;) 10112 10113 ChangeLog | 19 +++++++++++++++++++ 10114 bindings/perl/PreludeDB.pm | 4 ++-- 10115 2 files changed, 21 insertions(+), 2 deletions(-) 10116 10117commit f7cfad3ef300b6b4959280b78641613bafc2c47d 10118Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10119Date: Sun Oct 12 13:15:48 2003 +0000 10120 10121 * plugins/format/classic/idmef-db-insert.c: 10122 (insert_additional_data) 10123 fit idmef_additional_data_to_string changes 10124 10125 ChangeLog | 6 ++++++ 10126 plugins/format/classic/idmef-db-insert.c | 15 +++++---------- 10127 2 files changed, 11 insertions(+), 10 deletions(-) 10128 10129commit 0c88efb8269cc778599064067390669e2b2599b4 10130Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10131Date: Wed Oct 8 09:59:07 2003 +0000 10132 10133 * bindings/perl/PreludeDB.c: 10134 regenerated 10135 10136 * bindings/perl/PreludeDB.pm: 10137 fit idmef-criteria changes 10138 10139 * plugins/format/classic/classic.c: 10140 fit idmef-criteria changes 10141 10142 * plugins/format/classic/idmef-db-select.c: 10143 * plugins/format/classic/include/idmef-db-select.h 10144 fit idmef-criteria changes 10145 criterion_to_sql has been splited up in two 10146 functions: criteria_to_sql and criterion_to_sql 10147 10148 * plugins/format/classic/schema.txt: 10149 add the support of the following objects: 10150 heartbeat.create_time 10151 heartbeat.analyzer_time 10152 alert.create_time 10153 alert.analyzer_time 10154 10155 * src/db-interface.c: 10156 * src/include/db-interface.h: 10157 fit idmef-criteria changes 10158 10159 * src/sql.c: 10160 fit idmef-criteria changes 10161 10162 * src/include/plugin-format.h: 10163 fit idmef-criteria changes 10164 10165 ChangeLog | 34 +++++ 10166 bindings/perl/PreludeDB.c | 141 +++++++++++++------ 10167 bindings/perl/PreludeDB.pm | 18 ++-- 10168 plugins/format/classic/classic.c | 45 +++++-- 10169 plugins/format/classic/idmef-db-select.c | 160 +++++++++++----------- 10170 plugins/format/classic/include/idmef-db-select.h | 2 +- 10171 plugins/format/classic/schema.txt | 6 + 10172 src/db-interface.c | 10 +- 10173 src/include/db-interface.h | 6 +- 10174 src/include/plugin-format.h | 6 +- 10175 10 files changed, 274 insertions(+), 154 deletions(-) 10176 10177commit cdd37296bcd3e46cea7298263cb3a4a5df6cf347 10178Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10179Date: Sun Sep 21 13:33:35 2003 +0000 10180 10181 * bindings/perl/PreludeDB.pm: 10182 (get_alert_uident_list) 10183 (get_heartbeat_uident_list) 10184 (get_values) 10185 those functions can accept directly a criterion string 10186 as a criterion 10187 10188 * plugins/format/classic/idmef-db-insert.c: 10189 check return value of idmef_get_db_timestamp and 10190 idmef_get_ntp_timestamp functions 10191 10192 * plugins/format/classic/idmef-db-select.c: 10193 (value_to_sql) 10194 new function 10195 support for idmef_date in idmef_criterion 10196 10197 * plugins/format/classic/schema.txt: 10198 add support of alert.detect_time object 10199 10200 ChangeLog | 21 ++++++++++ 10201 bindings/perl/PreludeDB.pm | 21 +++++++--- 10202 plugins/format/classic/idmef-db-insert.c | 61 ++++++++++++++++++------------ 10203 plugins/format/classic/idmef-db-select.c | 34 ++++++++++++++--- 10204 plugins/format/classic/schema.txt | 2 + 10205 5 files changed, 102 insertions(+), 37 deletions(-) 10206 10207commit 8d05f992e746a7d053a2eebdb2234942efc1ca97 10208Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10209Date: Fri Sep 19 21:51:05 2003 +0000 10210 10211 * bindings/perl/PreludeDB.pm 10212 (PreludeDB::get_values) 10213 bug fix 10214 10215 ChangeLog | 6 ++++++ 10216 bindings/perl/PreludeDB.pm | 2 +- 10217 2 files changed, 7 insertions(+), 1 deletions(-) 10218 10219commit 46200c2f0886748937628fc2d1ae91798528617c 10220Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10221Date: Fri Sep 19 07:39:48 2003 +0000 10222 10223 * bindings/perl/PreludeDB.c: 10224 regenerated 10225 10226 * bindings/perl/PreludeDB.pm: 10227 add the get_values function 10228 10229 * plugins/format/classic/classic.c: 10230 check idmef_object_value_new's return value and destroy objval 10231 when idmef_object_value_list_add failed 10232 10233 ChangeLog | 12 +++ 10234 bindings/perl/PreludeDB.c | 81 +++--------------- 10235 bindings/perl/PreludeDB.pm | 135 ++++++++++++++++++++++++++++-- 10236 plugins/format/classic/classic.c | 8 ++- 10237 plugins/format/classic/idmef-db-select.c | 10 +- 10238 5 files changed, 165 insertions(+), 81 deletions(-) 10239 10240commit 949092993fe2c56fb1c4781d7bc1a6cb51f8438e 10241Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10242Date: Thu Sep 18 06:55:57 2003 +0000 10243 10244 * bindings/perl/PreludeDB.c: 10245 regenerated 10246 10247 * plugins/format/classic/classic.c: 10248 modifications to fit changes of idmef_db_select's prototype 10249 (classic_get_values) 10250 skip empty lines (lines where all fields are NULL) 10251 don't build value depending of object because of sql functions 10252 (for example, count for a string field returns a number) 10253 10254 * plugins/format/classic/idmef-db-select.c: 10255 lot of changes and cleanup to support GROUP BY, ORDER BY and LIMIT 10256 distinct is not used anymore, use group by instead 10257 10258 * src/db-interface.c: 10259 * src/include/db-interface.h: 10260 * src/include/plugin-format.h: 10261 (prelude_db_interface_select_values) 10262 (format_select_values) 10263 function's prototype changes, remove distinct and add limit argument 10264 10265 ChangeLog | 23 ++ 10266 bindings/perl/PreludeDB.c | 20 +- 10267 plugins/format/classic/classic.c | 44 ++-- 10268 plugins/format/classic/idmef-db-select.c | 241 +++++++++++++++------- 10269 plugins/format/classic/include/idmef-db-select.h | 8 +- 10270 plugins/sql/mysql/mysql.c | 2 +- 10271 src/db-interface.c | 8 +- 10272 src/include/db-interface.h | 6 +- 10273 src/include/plugin-format.h | 6 +- 10274 9 files changed, 234 insertions(+), 124 deletions(-) 10275 10276commit 50fc4e9a7843c4d706dcaf7f52215db474003a9a 10277Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10278Date: Mon Sep 15 08:41:58 2003 +0000 10279 10280 * bindings/perl/PreludeDB.pm: 10281 * plugins/format/classic/classic.c: 10282 * plugins/format/classic/idmef-db-select.c: 10283 changes to fit modifications in libprelude's idmef_selection 10284 10285 ChangeLog | 7 +++++++ 10286 bindings/perl/PreludeDB.pm | 2 +- 10287 plugins/format/classic/classic.c | 24 ++++++++++++------------ 10288 plugins/format/classic/idmef-db-select.c | 23 +++++++++++++---------- 10289 4 files changed, 33 insertions(+), 23 deletions(-) 10290 10291commit 97aebd9c07061aa3d285e8475e0d705983562504 10292Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10293Date: Fri Sep 12 14:30:05 2003 +0000 10294 10295 * bindings/perl/PreludeDB.i: 10296 cleanup, do not cut & paste the prototypes of functions used, 10297 instead, include directly the needed headers 10298 10299 * bindings/perl/PreludeDB.c: 10300 regenerated 10301 10302 * bindings/perl/PreludeDB.pm: 10303 some fixes in sql related functions 10304 10305 ChangeLog | 12 + 10306 bindings/perl/PreludeDB.c | 1119 +++++++++++++++++++++++++++++++++++++++----- 10307 bindings/perl/PreludeDB.i | 93 +--- 10308 bindings/perl/PreludeDB.pm | 12 +- 10309 4 files changed, 1047 insertions(+), 189 deletions(-) 10310 10311commit fa04806ed0765de3f3a5a2d5d1fc000c6730f474 10312Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10313Date: Mon Sep 8 09:48:45 2003 +0000 10314 10315 * src/db-interface.c (prelude_db_interface_new): 10316 check for NULL strdup return value. 10317 10318 ChangeLog | 5 ++++- 10319 src/db-interface.c | 7 ++++++- 10320 2 files changed, 10 insertions(+), 2 deletions(-) 10321 10322commit 5300a9779655654c29e228b3fcc0b4a8d2a93dce 10323Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10324Date: Mon Sep 8 00:58:50 2003 +0000 10325 10326 *** empty log message *** 10327 10328 ChangeLog | 30 ++++++ 10329 src/db-interface.c | 214 ++++++++++++++++++-------------------------- 10330 src/include/db-interface.h | 4 - 10331 3 files changed, 119 insertions(+), 129 deletions(-) 10332 10333commit 71fc24572227d5a43258e298701d390c22268a7e 10334Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10335Date: Tue Sep 2 09:20:55 2003 +0000 10336 10337 *** empty log message *** 10338 10339 src/db.c | 2 ++ 10340 1 files changed, 2 insertions(+), 0 deletions(-) 10341 10342commit 1154b73fbc05f1f60858850b1bc2dcc579ba5710 10343Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10344Date: Tue Sep 2 09:19:34 2003 +0000 10345 10346 * src/db-interface-string.c (get_sql_connection_data): 10347 reworked this function so that it is easy to add new 10348 parameters. You now just have to add a parameters name and 10349 handling function to the array of structure in order for 10350 the parameter to be taken into account. 10351 10352 ChangeLog | 8 +++ 10353 src/db-interface-string.c | 130 ++++++++++++++------------------------------ 10354 2 files changed, 50 insertions(+), 88 deletions(-) 10355 10356commit 14d0b021f5fcd1df6863ae1b8f52e80da122298c 10357Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10358Date: Sat Aug 30 19:16:21 2003 +0000 10359 10360 * bindings/perl/PreludeDB.i: 10361 update the binding interface to the last API changes 10362 10363 * bindings/perl/PreludeDB.c: 10364 regenerated 10365 10366 * bindings/perl/PreludeDB.pm: 10367 (PreludeDB::new) 10368 restore the removed constructor code and also accept directly 10369 connection string 10370 update the binding interface to the last API changes 10371 (PreludeDB::get_alert) 10372 restore the old function's implementation which already 10373 "treat empty @object_list as undefined" 10374 (PreludeDB::get_heartbeat) 10375 some fixes 10376 10377 * plugins/format/classic/idmef-db-select.c: 10378 (table_list_destroy) 10379 fix a memory leak (tlist->top_table was not freed) 10380 10381 * plugins/format/classic/classic.c: 10382 (classic_select_values) 10383 some modifications to fit the last idmef_object_value_new's changes 10384 10385 * plugins/format/classic/classic.c: 10386 * plugins/format/classic/idmef-db-delete.c: 10387 * plugins/format/classic/idmef-db-get.c: 10388 * plugins/format/classic/idmef-db-select.c: 10389 * plugins/format/classic/include/idmef-db-delete.h: 10390 * src/db-interface-string.c: 10391 * src/db-interface.c: 10392 * src/db.c: 10393 * src/format-plugins.c: 10394 * src/include/db-interface.h: 10395 * src/include/plugin-format.h: 10396 * src/include/db-uident.h: 10397 API changes, an alert/heartbeat was previously identified by its ident field 10398 which is an uint64_t, however IDMEF tell: 10399 """ 10400 The "ident" attribute by itself provides a unique identifier only 10401 among all the "ident" values sent by a particular analyzer. But 10402 when combined with the "analyzerid" value for the analyzer, a 10403 value that is unique across the intrusion detection environment is 10404 created. 10405 """ 10406 so now, an alert is identified by the couple analyzerid + alert_ident 10407 which MUST be unique among the others in the db 10408 the current db schema does not respect this, but the new one will 10409 10410 ChangeLog | 52 ++++ 10411 bindings/perl/PreludeDB.c | 349 ++++++++++++++++----- 10412 bindings/perl/PreludeDB.i | 119 +++++++- 10413 bindings/perl/PreludeDB.pm | 103 +++++--- 10414 plugins/format/classic/classic.c | 206 ++++++++------ 10415 plugins/format/classic/idmef-db-delete.c | 13 +- 10416 plugins/format/classic/idmef-db-get.c | 11 +- 10417 plugins/format/classic/idmef-db-select.c | 11 +- 10418 plugins/format/classic/include/idmef-db-delete.h | 7 +- 10419 src/db-interface-string.c | 1 + 10420 src/db-interface.c | 146 +++++++--- 10421 src/db.c | 3 +- 10422 src/format-plugins.c | 1 + 10423 src/include/Makefile.am | 1 + 10424 src/include/db-interface.h | 35 ++- 10425 src/include/db-uident.h | 37 +++ 10426 src/include/plugin-format.h | 38 ++-- 10427 17 files changed, 830 insertions(+), 303 deletions(-) 10428 10429commit 22cee17dab9dcaf8f2ae8267c498a2aedfd81a76 10430Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10431Date: Tue Aug 19 17:26:27 2003 +0000 10432 10433 *** empty log message *** 10434 10435 src/strbuf.c | 17 +++++++++++------ 10436 1 files changed, 11 insertions(+), 6 deletions(-) 10437 10438commit c99ff51a355658074f0d4c9dcbf4764833753e4c 10439Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 10440Date: Tue Aug 19 17:24:11 2003 +0000 10441 10442 * src/strbuf.c (strbuf_new): 10443 use similar OOM warning as we have in other place in the code. 10444 10445 coding style fix. 10446 10447 ChangeLog | 7 +++++++ 10448 1 files changed, 7 insertions(+), 0 deletions(-) 10449 10450commit 01bb488d1aa690bac8c163abc4c311e73a2c3695 10451Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10452Date: Thu Aug 14 13:41:59 2003 +0000 10453 10454 * bindings/perl/PreludeDB.pm: 10455 (PreludeDB::new): pass connection string directly to 10456 prelude_db_interface_new_string(), instead of parsing 10457 (since parser does not seem to work anyhow). 10458 (_convert_object_list): adapted to changed idmef-selection API 10459 (get_alert): treat empty @object_list as undefined 10460 10461 * plugins/format/classic/classic.c: 10462 (classic_get_alert): fixed an idiotic bug in handling NULL selection. 10463 10464 ChangeLog | 12 ++++++++++++ 10465 bindings/perl/PreludeDB.pm | 35 ++++++++++------------------------- 10466 plugins/format/classic/classic.c | 2 +- 10467 3 files changed, 23 insertions(+), 26 deletions(-) 10468 10469commit 5f3e2a880e10f6628c2bd46d3aeb6b7d909ff68e 10470Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10471Date: Wed Aug 13 22:03:42 2003 +0000 10472 10473 * bindings/perl/PreludeDB.i: 10474 modified to reflect recent API changes. 10475 10476 * bindings/perl/PreludeDB.c: 10477 regenerated. 10478 10479 ChangeLog | 9 +++- 10480 bindings/perl/PreludeDB.c | 107 ++++++++++++++++++++++++++++++++++++++++++--- 10481 bindings/perl/PreludeDB.i | 8 +++ 10482 3 files changed, 116 insertions(+), 8 deletions(-) 10483 10484commit b428c80a98cf53c30d2d1b89d77716f1c991032c 10485Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10486Date: Tue Aug 12 10:55:20 2003 +0000 10487 10488 * plugins/format/classic/idmef-db-select.c: 10489 (aggregate_function_to_sql): implemented. 10490 (add_field): 10491 (relation_to_sql): handle aggregate functions 10492 (build_request): 10493 (idmef_db_select): handle 'distinct' parameter 10494 10495 * plugins/format/classic/classic.c: 10496 handle aggregate functions. 10497 (classic_select_values): 10498 (classic_get_values): implemented. 10499 (classic_get_alert): 10500 (classic_get_heartbeat): 10501 force full alert extraction under conditions where partial extraction 10502 can produce incorrect results 10503 10504 * src/include/db-interface.h: 10505 * src/db-interface.c: 10506 style fixes 10507 (prelude_db_interface_select_values): 10508 (prelude_db_interface_get_values): 10509 implemented 10510 10511 * src/include/plugin-format.h: 10512 added format_select_values and format_get_values callbacks 10513 10514 ChangeLog | 29 +++++ 10515 plugins/format/classic/classic.c | 142 +++++++++++++++++++--- 10516 plugins/format/classic/idmef-db-select.c | 63 ++++++++-- 10517 plugins/format/classic/include/idmef-db-select.h | 1 + 10518 src/db-interface.c | 33 +++++- 10519 src/include/db-interface.h | 9 ++ 10520 src/include/plugin-format.h | 23 +++- 10521 7 files changed, 267 insertions(+), 33 deletions(-) 10522 10523commit 89a8d7a8ea90c0d6958c3b356f556aba19439f81 10524Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10525Date: Sat Aug 2 21:54:33 2003 +0000 10526 10527 * plugins/format/classic/idmef-db-select.c: 10528 (table_entry_new): 10529 bug fix: free entry AFTER its fields have been freed 10530 10531 * plugins/sql/mysql/mysql.c: 10532 (db_begin) 10533 check session's status before doing anything 10534 10535 * plugins/sql/pgsql/pgsql.c: 10536 (db_begin) 10537 check session's status before doing anything 10538 10539 ChangeLog | 20 +++++++++ 10540 bindings/perl/PreludeDB.c | 65 +++++++++++++++++++++++++++++- 10541 plugins/format/classic/idmef-db-select.c | 5 +- 10542 plugins/sql/mysql/mysql.c | 14 ++++++ 10543 plugins/sql/pgsql/pgsql.c | 14 ++++++ 10544 5 files changed, 114 insertions(+), 4 deletions(-) 10545 10546commit 38fb09d3a4a5ccd62012ec7bbd2ee91ee7be3288 10547Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10548Date: Mon Jul 14 10:33:00 2003 +0000 10549 10550 * src/db-interface.c: 10551 (prelude_db_interface_disconnect) 10552 fix a bug, interface->db_connection was not set to NULL 10553 after it has been destroyed 10554 10555 * bindings/perl/PreludeDB.i: 10556 * bindings/perl/PreludeDB.pm: 10557 (PreludeDB) 10558 add the disconnect function 10559 10560 * bindings/perl/PreludeDB.c: 10561 regenerated 10562 10563 ChangeLog | 15 +++++++++++++++ 10564 bindings/perl/PreludeDB.c | 34 ++++++++++++++++++++++++++++++++-- 10565 bindings/perl/PreludeDB.i | 3 ++- 10566 bindings/perl/PreludeDB.pm | 7 +++++++ 10567 src/db-interface.c | 1 + 10568 5 files changed, 57 insertions(+), 3 deletions(-) 10569 10570commit 9da9cc4828568e1eeb07c9e77b0089e98168e185 10571Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10572Date: Wed Jul 9 20:32:37 2003 +0000 10573 10574 * bindings/perl/PreludeDB.pm: 10575 return value of function like PreludeDB::init that returns an 10576 integer to indicate if the function failed or not has changed: 10577 before the changes, functions returned a value < 0 if the function failed 10578 or a value >= 0 otherwise 10579 now, the functions return 0 if the function failed or another value otherwise 10580 this choice has been done to follow the perl's "conventions" in this domain 10581 10582 ChangeLog | 10 ++++++++++ 10583 bindings/perl/PreludeDB.pm | 24 +++++++++--------------- 10584 2 files changed, 19 insertions(+), 15 deletions(-) 10585 10586commit 4593e87adf76514eda92d2f3fab3d1ce5d3b9fbf 10587Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10588Date: Wed Jul 9 08:48:55 2003 +0000 10589 10590 * bindings/perl/PreludeDB.pm: 10591 add a 1 (true value) at the end of the package's code 10592 10593 * plugins/format/classic/idmef-db-get.c: 10594 (get_user) 10595 bug fix, "parent" was passed as parent argument of function get_userid 10596 instead of "user" 10597 10598 ChangeLog | 10 ++++++++++ 10599 bindings/perl/PreludeDB.pm | 2 ++ 10600 plugins/format/classic/idmef-db-get.c | 2 +- 10601 3 files changed, 13 insertions(+), 1 deletions(-) 10602 10603commit 2d838fc5b079a7a8e6c396dc91213818eab2ad92 10604Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10605Date: Tue Jul 8 08:43:56 2003 +0000 10606 10607 * plugins/format/classic/idmef-db-insert.c: 10608 bug fix, code cleanup, port to the new IDMEF API 10609 10610 * plugins/format/classic/schema.txt: 10611 add the alert.target.service.port object 10612 10613 ChangeLog | 8 + 10614 plugins/format/classic/idmef-db-insert.c | 1118 +++++++++++++++--------------- 10615 plugins/format/classic/schema.txt | 1 + 10616 3 files changed, 568 insertions(+), 559 deletions(-) 10617 10618commit b2410b9040ca172e5090662c26a0f5f9c192afba 10619Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10620Date: Mon Jul 7 18:58:55 2003 +0000 10621 10622 ChangeLog has not been commited the last two times 10623 10624 ChangeLog | 26 ++++++++++++++++++++++++++ 10625 1 files changed, 26 insertions(+), 0 deletions(-) 10626 10627commit d4057926dcc2a20e9a84de921d9fe02a1452fdf6 10628Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10629Date: Sun Jul 6 14:24:04 2003 +0000 10630 10631 * bindings/perl/PreludeDB.pm: 10632 support full message fetching 10633 10634 * plugin/format/classic/idmef-db-delete.c: 10635 fix two bugs in alert/heartbeat deletion code 10636 (bad test for deletion of Prelude_Address row, 10637 and Prelude_Heartbeat rows were not deleted in 10638 classic_delete_heartbeat) 10639 10640 bindings/perl/PreludeDB.c | 2 +- 10641 bindings/perl/PreludeDB.pm | 11 ++++++++--- 10642 plugins/format/classic/idmef-db-delete.c | 3 ++- 10643 3 files changed, 11 insertions(+), 5 deletions(-) 10644 10645commit 25f25226919d6cbb4e26144cea08bdd2166454c6 10646Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10647Date: Fri Jul 4 20:56:48 2003 +0000 10648 10649 * plugins/format/classic/idmef-db-delete.c: 10650 * plugins/format/classic/include/idmef-db-delete.c: 10651 new files 10652 * bindings/perl/PreludeDB.c: 10653 regenerated 10654 * bindings/perl/PreludeDB.i: 10655 * bindings/perl/PreludeDB.pm: 10656 * plugins/format/classic/classic.c: 10657 * src/db-interface.c: 10658 * src/include/db-interface.h: 10659 * src/include/plugin-format.h: 10660 support the deletion of alert/heartbeat 10661 10662 bindings/perl/PreludeDB.c | 78 ++++++++- 10663 bindings/perl/PreludeDB.i | 6 +- 10664 bindings/perl/PreludeDB.pm | 24 +++- 10665 plugins/format/classic/Makefile.am | 2 +- 10666 plugins/format/classic/classic.c | 3 + 10667 plugins/format/classic/idmef-db-delete.c | 192 ++++++++++++++++++++++ 10668 plugins/format/classic/include/idmef-db-delete.h | 30 ++++ 10669 src/db-interface.c | 27 +++- 10670 src/include/db-interface.h | 4 + 10671 src/include/plugin-format.h | 9 + 10672 10 files changed, 364 insertions(+), 11 deletions(-) 10673 10674commit bf45f9ba119ae89a5c3f17bb1a10a86687b82986 10675Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10676Date: Wed Jul 2 22:29:25 2003 +0000 10677 10678 * plugins/format/classic/classic.c: 10679 include "idmef-db-get.h" 10680 10681 * plugins/format/classic/idmef-db-get.c: 10682 (get_user): fixed error detection. 10683 10684 * plugins/format/classic/schema.txt: 10685 newer version. 10686 10687 ChangeLog | 11 +++++ 10688 plugins/format/classic/classic.c | 1 + 10689 plugins/format/classic/idmef-db-get.c | 2 +- 10690 plugins/format/classic/schema.txt | 68 +++++++++++++++++++++++++++++++++ 10691 4 files changed, 81 insertions(+), 1 deletions(-) 10692 10693commit aca804afab83f4d81d37fc51b9d1bc7f53951adf 10694Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10695Date: Wed Jul 2 19:44:29 2003 +0000 10696 10697 * plugins/format/classic/classic.c: 10698 * plugins/format/classic/schema.txt: 10699 support whole message fetching for heartbeat 10700 10701 ChangeLog | 6 ++++++ 10702 plugins/format/classic/classic.c | 4 +++- 10703 plugins/format/classic/schema.txt | 10 +++++++++- 10704 3 files changed, 18 insertions(+), 2 deletions(-) 10705 10706commit 8253ed4bbdcf14434c2dd650db3f1f651038816a 10707Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10708Date: Wed Jul 2 10:38:45 2003 +0000 10709 10710 * plugins/format/classic/idmef-db-select.c: 10711 (normalize_condition): implemented. 10712 (table_entry_new): copy criteria into table entry structure. 10713 Fixed memory leaks in error handling. 10714 (table_list_to_strbuf): put condition in bracket (just in case) 10715 (add_table): normalize condition before matching with condition 10716 in the table entry structure 10717 (criterion_to_sql): use aliased table names. 10718 (build_request): compile table list after processing criteria 10719 10720 * plugins/format/classic/schema.txt: 10721 new version of database schema file, courtesy of Davor Ocelic 10722 <docelic@mail.inet.hr>. 10723 10724 ChangeLog | 16 +++ 10725 plugins/format/classic/idmef-db-select.c | 163 +++++++++++++++++++++--------- 10726 plugins/format/classic/schema.txt | 79 +++++++-------- 10727 3 files changed, 169 insertions(+), 89 deletions(-) 10728 10729commit 773f8fe61194ed189ba792ecd914f097524f438e 10730Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10731Date: Tue Jul 1 11:13:04 2003 +0000 10732 10733 *** empty log message *** 10734 10735 ChangeLog | 5 +++-- 10736 1 files changed, 3 insertions(+), 2 deletions(-) 10737 10738commit 0a5f23d9403aa066b6809b480545beb4b8e74e58 10739Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10740Date: Tue Jul 1 11:11:41 2003 +0000 10741 10742 * plugins/format/classic/classic.c: 10743 (get_message): more readable debug messages :). Handle 1-to-N 10744 relations better ( still not perfect :( ). Don't check if 10745 selection is NULL, the calling function already does that. 10746 10747 * plugins/format/classic/idmef-db-select.c: 10748 don't try to build the FROM ... LEFT JOIN ... statements at once; 10749 instead, first build a table list and then compile to SQL. 10750 Alias all tables. That should make extracting values with 1-to-N 10751 relations work correctly. Add a debug messsage containing a number 10752 of rows extracted. 10753 10754 ChangeLog | 19 +- 10755 plugins/format/classic/classic.c | 35 ++- 10756 plugins/format/classic/idmef-db-select.c | 570 +++++++++++++++++++----------- 10757 3 files changed, 396 insertions(+), 228 deletions(-) 10758 10759commit ab9bdd8f0d2edb4f437285aaf044ccf3960c9468 10760Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10761Date: Mon Jun 30 22:15:40 2003 +0000 10762 10763 * plugins/format/classic/idmef-db-get.c: 10764 * plugins/format/classic/include/idmef-db-get.h: 10765 new files 10766 add the support of a whole message fetching 10767 10768 * plugins/format/classic/classic.c: 10769 (classic_get_alert) 10770 call get_alert when the selection argument is NULL in order 10771 to fetch the whole message 10772 10773 ChangeLog | 20 + 10774 bindings/perl/PreludeDB.c | 2 +- 10775 plugins/format/classic/Makefile.am | 2 +- 10776 plugins/format/classic/classic.c | 4 +- 10777 plugins/format/classic/idmef-db-get.c | 2556 +++++++++++++++++++++++++ 10778 plugins/format/classic/idmef-db-insert.c | 2 +- 10779 plugins/format/classic/include/idmef-db-get.h | 33 + 10780 src/sql.c | 2 + 10781 8 files changed, 2617 insertions(+), 4 deletions(-) 10782 10783commit 0c6b86a7b788f42f822b9b5e5bd5a880539a9276 10784Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10785Date: Fri Jun 27 07:30:43 2003 +0000 10786 10787 * src/sql.c: 10788 * src/include/sql.h: 10789 (prelude_sql_field_value_int16) 10790 (prelude_sql_field_value_uint16) 10791 new functions 10792 10793 src/include/sql.h | 2 ++ 10794 src/sql.c | 24 ++++++++++++++++++++++++ 10795 2 files changed, 26 insertions(+), 0 deletions(-) 10796 10797commit 6446d4e04ef7dc40c1c11d2e0598a77a6d021323 10798Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10799Date: Mon Jun 23 22:10:46 2003 +0000 10800 10801 *** empty log message *** 10802 10803 plugins/format/classic/classic.c | 2 +- 10804 1 files changed, 1 insertions(+), 1 deletions(-) 10805 10806commit 55e149b41bbcab03ffcfb137391ce53339fe9e61 10807Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10808Date: Mon Jun 23 21:46:12 2003 +0000 10809 10810 * plugins/format/classic/classic.c: 10811 (get_message): add some log() statements to help debugging. 10812 10813 ChangeLog | 5 +++++ 10814 plugins/format/classic/classic.c | 25 +++++++++++++++++++++++-- 10815 2 files changed, 28 insertions(+), 2 deletions(-) 10816 10817commit ab5cdcfe4a520ce8ee837dd365220be2c9bf4a8c 10818Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10819Date: Mon Jun 23 20:47:44 2003 +0000 10820 10821 * plugins/format/classic/classic.c: 10822 (get_message): handle NULL fields correctly. 10823 10824 * plugins/format/classic/idmef-db-select.c: 10825 build query differently, using LEFT JOIN statements. This allows 10826 to handle empty tables / records correctly when used along with 10827 filled ones. 10828 10829 ChangeLog | 10 +++ 10830 plugins/format/classic/classic.c | 8 ++- 10831 plugins/format/classic/idmef-db-select.c | 96 ++++++++---------------------- 10832 3 files changed, 42 insertions(+), 72 deletions(-) 10833 10834commit 6c663cfb506cbe0cc894f19c536c213227fb375f 10835Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10836Date: Sun Jun 22 23:21:05 2003 +0000 10837 10838 * plugins/format/classic/classic.c: 10839 (get_message): call idmef_selection_set_object_iterator() 10840 before processing each row. Use idmef_value_new_for_object() 10841 instead of idmef_value_new_generic() to handle enums 10842 correctly. 10843 10844 ChangeLog | 8 ++++++++ 10845 plugins/format/classic/classic.c | 11 ++++------- 10846 2 files changed, 12 insertions(+), 7 deletions(-) 10847 10848commit 3242075b88429b6eba2aa42d39de72d8dcba77ec 10849Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10850Date: Sun Jun 22 13:32:21 2003 +0000 10851 10852 * plugins/format/classic/classic.c: 10853 (get_message): don't use prelude_sql_field_idmef_value(), 10854 do convertion manually, obtaining variable type via 10855 idmef_object_get_type(). This is caused by some braindead 10856 type mappings (uint64_t as STRING, eh?). 10857 10858 ChangeLog | 8 ++++++++ 10859 plugins/format/classic/classic.c | 7 ++++++- 10860 2 files changed, 14 insertions(+), 1 deletions(-) 10861 10862commit a5e69ac3b0c553c6bcaa9d7b8e4ae5f1ebcc3cce 10863Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10864Date: Sun Jun 1 17:20:09 2003 +0000 10865 10866 * plugins/format/classic/idmef-db-select.c: 10867 (objects_to_sql): 10868 remove unneeded cached_obj variable. 10869 10870 ChangeLog | 6 ++++++ 10871 plugins/format/classic/idmef-db-select.c | 1 - 10872 2 files changed, 6 insertions(+), 1 deletions(-) 10873 10874commit 7220abc443ddfe28ae2fb20b1d1613a20b8f2df3 10875Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10876Date: Thu May 29 20:32:31 2003 +0000 10877 10878 * bindings/perl/PreludeDB/*: 10879 removed 10880 10881 * bindings/perl/*: 10882 new files, the perl binding has been rewritten using swig 10883 10884 * configure.in: 10885 * Makefile.am: 10886 modified to support the perl binding in the build process 10887 10888 * plugins/format/classic/idmef-db-select.c: 10889 in criterion_to_sql, check if db_object_find's return value is NULL 10890 rename idmef_object_get_num function's call in idmef_object_get_numeric 10891 because idmef_object_get_num does not exist 10892 10893 ChangeLog | 17 + 10894 Makefile.am | 2 +- 10895 bindings/Makefile.am | 1 + 10896 bindings/perl/Makefile.am | 25 + 10897 bindings/perl/PreludeDB.c | 1697 ++++++++++++++++++++++++++++++ 10898 bindings/perl/PreludeDB.i | 165 +++ 10899 bindings/perl/PreludeDB.pm | 334 ++++++ 10900 bindings/perl/PreludeDB/Changes | 6 - 10901 bindings/perl/PreludeDB/MANIFEST | 8 - 10902 bindings/perl/PreludeDB/Makefile.PL | 17 - 10903 bindings/perl/PreludeDB/PreludeDB.pm | 131 --- 10904 bindings/perl/PreludeDB/PreludeDB.xs | 338 ------ 10905 bindings/perl/PreludeDB/README | 38 - 10906 bindings/perl/PreludeDB/ppport.h | 540 ---------- 10907 bindings/perl/PreludeDB/test.pl | 97 -- 10908 bindings/perl/PreludeDB/typemap | 5 - 10909 bindings/perl/generate.sh | 3 + 10910 configure.in | 40 + 10911 plugins/format/classic/idmef-db-select.c | 11 +- 10912 src/db-interface.c | 3 +- 10913 20 files changed, 2294 insertions(+), 1184 deletions(-) 10914 10915commit 919f0ee4e75dfbe0a414cbc99bfa75975839238c 10916Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10917Date: Mon May 19 20:06:17 2003 +0000 10918 10919 * plugins/format/classic/classic.c: 10920 * plugins/format/classic/idmef-db-select.c: 10921 * plugins/format/classic/include/idmef-db-select.h: 10922 * src/sql.c: 10923 * src/include/sql.h: 10924 * src/db-interface.c: 10925 * src/include/db-interface.h: 10926 * src/include/plugin-format.h: 10927 libpreludedb API changes, idmef_cache is not used anymore, 10928 idmef_selection is now used for object selection and 10929 idmef_message is used to store the fetched fields 10930 10931 ChangeLog | 14 ++ 10932 plugins/format/classic/classic.c | 261 ++++++++++------------ 10933 plugins/format/classic/idmef-db-select.c | 54 ++--- 10934 plugins/format/classic/include/idmef-db-select.h | 3 +- 10935 src/db-interface.c | 113 ++++------ 10936 src/include/db-interface.h | 20 +- 10937 src/include/plugin-format.h | 49 ++--- 10938 src/include/sql.h | 2 +- 10939 src/sql.c | 19 +-- 10940 9 files changed, 235 insertions(+), 300 deletions(-) 10941 10942commit b739568917913c3b5496745a58e65b47dedd3734 10943Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10944Date: Sun May 18 17:17:08 2003 +0000 10945 10946 * plugins/format/classic/schema.txt: 10947 minor modification to fit idmef_data's last changes 10948 10949 * plugins/format/classic/classic.c: 10950 minor modifications to fit the idmef_criterion_new's 10951 changes 10952 10953 ChangeLog | 9 +++++++++ 10954 plugins/format/classic/classic.c | 2 -- 10955 plugins/format/classic/schema.txt | 2 +- 10956 3 files changed, 10 insertions(+), 3 deletions(-) 10957 10958commit a6130d5890fa5f2c1ff4708241942bdaefae0077 10959Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10960Date: Wed May 14 08:31:32 2003 +0000 10961 10962 * src/sql-plugins.c: 10963 * src/sql.c: 10964 minor modifications to fit idmef_string's last changes 10965 10966 ChangeLog | 6 ++++++ 10967 1 files changed, 6 insertions(+), 0 deletions(-) 10968 10969commit a3f3ac9fb2d0a66e7ea66bd56d7fe501af21d9f5 10970Author: Nicolas Delon <nicolas.delon@prelude-ids.com> 10971Date: Wed May 14 08:09:45 2003 +0000 10972 10973 * src/sql-plugins.c: 10974 * src/sql.c: 10975 minor modifications to fit idmef_string's last changes 10976 10977 src/sql-plugins.c | 1 + 10978 src/sql.c | 3 ++- 10979 2 files changed, 3 insertions(+), 1 deletions(-) 10980 10981commit 36d1f139b7eb30a7b971b148cd0b29014fdb76b9 10982Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10983Date: Thu May 8 19:21:36 2003 +0000 10984 10985 * plugins/format/classic/include/idmef-db-select.h: 10986 * plugins/format/classic/include/idmef-db-insert.h: 10987 change #define'd constants names to match file names. 10988 10989 ChangeLog | 8 +++++++- 10990 plugins/format/classic/include/idmef-db-insert.h | 6 +++--- 10991 plugins/format/classic/include/idmef-db-select.h | 6 +++--- 10992 3 files changed, 13 insertions(+), 7 deletions(-) 10993 10994commit 8e69029590e38064379e9e0f2f1b2ce3f27bd01d 10995Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 10996Date: Thu May 8 19:14:05 2003 +0000 10997 10998 (these modifications should have been checked in on 2003-05-05) 10999 11000 * plugins/format/classic/include/idmef-db-output.h: 11001 renamed to idmef-db-insert.h 11002 11003 * plugins/format/classic/include/idmef-db-read.h: 11004 renamed to idmef-db-select.h 11005 11006 * plugins/forma/classic/include/idmef-db-select.h: 11007 apply modifications corresponding to those in 11008 idmef-db-select.c 11009 11010 ChangeLog | 15 +++++++++- 11011 plugins/format/classic/include/idmef-db-insert.h | 31 +++++++++++++++++++++ 11012 plugins/format/classic/include/idmef-db-output.h | 30 -------------------- 11013 plugins/format/classic/include/idmef-db-read.h | 32 ---------------------- 11014 plugins/format/classic/include/idmef-db-select.h | 32 ++++++++++++++++++++++ 11015 5 files changed, 77 insertions(+), 63 deletions(-) 11016 11017commit d7f8312cb24301bfea27edf93d8cecfb39767688 11018Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11019Date: Mon May 5 21:35:35 2003 +0000 11020 11021 * plugins/format/classic/idmef-db-select.c: 11022 (objects_to_sql): 11023 avoid a SIGSEGV in a situation when a requested object 11024 is not present in database schema. 11025 11026 ChangeLog | 7 +++++++ 11027 plugins/format/classic/idmef-db-select.c | 11 +++++++++++ 11028 2 files changed, 18 insertions(+), 0 deletions(-) 11029 11030commit 9410593cb87e29f99155e1f17d9b6ee3e87443bb 11031Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11032Date: Mon May 5 21:03:12 2003 +0000 11033 11034 * plugins/sql/mysql/mysql.c(db_query): 11035 fix a bug that returned a non-null pointer for select that 11036 returns no rows (this bug was introduced in the last mysql.c 11037 modification by using mysql_store_result which has not the same 11038 behaviour that mysql_use_result 11039 11040 * plugins/format/classic/Makefile.am: 11041 the last fix did not work, this one works 11042 11043 * src/db-interface.c: 11044 * src/include/db-interface.h: 11045 a lot of modifications, now, we provide a higher level (easier to use, 11046 more efficient) of abstraction on top of the sql database 11047 11048 * plugins/format/classic/idmef-db-output.c: 11049 has been renamed in idmef-db-insert.c 11050 11051 * plugins/format/classic/idmef-db-read.c: 11052 has been renamed in idmef-db-select.c 11053 11054 * plugins/format/classic/classic.c: 11055 * plugins/format/classic/idmef-db-insert.c: 11056 * plugins/format/classic/idmef-db-select.c: 11057 a lot of modifications to fit the new format plugin API 11058 11059 ChangeLog | 28 + 11060 plugins/format/classic/Makefile.am | 7 +- 11061 plugins/format/classic/classic.c | 263 ++++-- 11062 plugins/format/classic/idmef-db-insert.c | 1353 ++++++++++++++++++++++++++++++ 11063 plugins/format/classic/idmef-db-output.c | 1352 ----------------------------- 11064 plugins/format/classic/idmef-db-read.c | 819 ------------------ 11065 plugins/format/classic/idmef-db-select.c | 629 ++++++++++++++ 11066 plugins/sql/mysql/mysql.c | 9 +- 11067 src/db-interface.c | 194 ++++- 11068 src/include/db-interface.h | 25 +- 11069 src/include/plugin-format.h | 54 +- 11070 11 files changed, 2419 insertions(+), 2314 deletions(-) 11071 11072commit e94ea5341fab96b79414a52446f8a68ec5b015fa 11073Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11074Date: Mon May 5 17:20:54 2003 +0000 11075 11076 * src/sql.c: 11077 (prelude_sql_field_idmef_value): 11078 modify to accomodate a change in idmef_string_new() syntax. 11079 11080 ChangeLog | 6 ++++++ 11081 src/sql.c | 3 +-- 11082 2 files changed, 7 insertions(+), 2 deletions(-) 11083 11084commit 142d94c13cd910857c797f6251226e511178122e 11085Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11086Date: Sun Apr 27 21:40:25 2003 +0000 11087 11088 * plugins/format/classic/idmef-db-read.c: 11089 fix compilation warnings. 11090 (objects_to_sql): 11091 fix possible use of uninitialized values on error. 11092 (criterion_to_sql): 11093 modified to reflect recent libprelude API changes 11094 (relation_less, relation_greater). 11095 11096 * src/gdb.c: 11097 fix warnings. 11098 11099 ChangeLog | 13 ++++++++++++ 11100 configure.in | 2 +- 11101 plugins/format/classic/idmef-db-read.c | 34 ++++++++++++++++++------------- 11102 src/gdb.c | 7 +++++- 11103 4 files changed, 40 insertions(+), 16 deletions(-) 11104 11105commit 2d9c3f130bea22109b45993c51d3b096ebf60c20 11106Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11107Date: Tue Apr 15 21:10:37 2003 +0000 11108 11109 *** empty log message *** 11110 11111 src/include/queue.h | 39 --------------------------------------- 11112 1 files changed, 0 insertions(+), 39 deletions(-) 11113 11114commit f5242a0f3fdefa561060029bd99253804f35e1cc 11115Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11116Date: Tue Apr 1 20:46:22 2003 +0000 11117 11118 * plugins/format/classic/classic.c(add_criterion): 11119 use idmef_value_ref() instead of idmef_value_clone() 11120 11121 ChangeLog | 5 +++++ 11122 plugins/format/classic/classic.c | 2 +- 11123 2 files changed, 6 insertions(+), 1 deletions(-) 11124 11125commit 80f399c86c357e246fd3b872d5fff25a1b365aee 11126Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11127Date: Sun Mar 16 13:13:57 2003 +0000 11128 11129 *** empty log message *** 11130 11131 ChangeLog | 15 +++++++++++++++ 11132 1 files changed, 15 insertions(+), 0 deletions(-) 11133 11134commit 8edd2b1572c59706ab6b64c99e062488de77b2cc 11135Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11136Date: Sun Mar 16 13:13:34 2003 +0000 11137 11138 * plugins/format/classic/idmef-db-read.c: 11139 (build_request): handle queries without WHERE clause 11140 11141 plugins/format/classic/idmef-db-read.c | 5 +++-- 11142 1 files changed, 3 insertions(+), 2 deletions(-) 11143 11144commit feb4afaa5117824771b841e40304b981ecbb3066 11145Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11146Date: Sun Mar 16 13:01:53 2003 +0000 11147 11148 2003-03-16 Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11149 11150 * plugins/format/classic/idmef-db-read.c 11151 (criterion_to_sql): handle empty criteria chain correctly 11152 11153 2003-03-14 Nicolas Delon <delon.nicolas@wanadoo.fr> 11154 11155 * plugins/format/classic/Makefile.am 11156 fix a compilation rule error 11157 11158 plugins/format/classic/Makefile.am | 2 +- 11159 plugins/format/classic/idmef-db-read.c | 17 +++++++++++------ 11160 2 files changed, 12 insertions(+), 7 deletions(-) 11161 11162commit 727be0b221fcf39d73b8993faabb5e392083b326 11163Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11164Date: Sat Feb 22 00:24:51 2003 +0000 11165 11166 * plugins/sql/mysql/mysql.c: 11167 functions prelude_sql_{fields,rows}_num works now, 11168 mysql_use_result has been replaced by mysql_store_result 11169 Thanks to Vincent Glaume for the bug report. 11170 11171 * src/include/sql.h: 11172 add a comment to explain what does the return value of the 11173 prelude_sql_field_fetch mean 11174 11175 * plugins/format/classic/Makefile.am: 11176 link classic.so against libpreludedb in order to make the 11177 perl binding working 11178 11179 ChangeLog | 15 +++++++++++++++ 11180 bindings/perl/PreludeDB/test.pl | 4 +++- 11181 plugins/format/classic/Makefile.am | 2 +- 11182 plugins/sql/mysql/mysql.c | 5 +---- 11183 src/include/sql.h | 9 +++++++++ 11184 5 files changed, 29 insertions(+), 6 deletions(-) 11185 11186commit 4ef7f0bf43abc9754581366302d924a1e46b88e7 11187Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11188Date: Tue Feb 18 22:42:32 2003 +0000 11189 11190 * plugins/format/classic/pgsql.sql: 11191 included a patch from Herve Debar <herve.debar@francetelecom.com> 11192 (a syntax fix) 11193 11194 ChangeLog | 6 ++++++ 11195 plugins/format/classic/pgsql.sql | 3 ++- 11196 2 files changed, 8 insertions(+), 1 deletions(-) 11197 11198commit ddc22a5979426e91f0ddbbb7c2e54d8bb8b38795 11199Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11200Date: Sat Feb 15 08:01:34 2003 +0000 11201 11202 *** empty log message *** 11203 11204 ChangeLog | 21 ++++++++++++++++++++- 11205 1 files changed, 20 insertions(+), 1 deletions(-) 11206 11207commit aa793918f97dff5b936d5f3fb4703df319707303 11208Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11209Date: Sat Feb 15 08:00:47 2003 +0000 11210 11211 * plugins/format/classic/idmef-db-read.c: 11212 use SELECT DISTINCT instead of SELECT (eliminates duplicates 11213 introduced by 1-to-N relations). 11214 11215 plugins/format/classic/idmef-db-read.c | 2 +- 11216 1 files changed, 1 insertions(+), 1 deletions(-) 11217 11218commit 6b72b6308979cfc98b97dd9826caac4d1ba54930 11219Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11220Date: Sat Feb 15 06:03:40 2003 +0000 11221 11222 * plugins/format/classic/idmef-db-read.c: 11223 fix handling of 1-to-N relations 11224 11225 * src/idmef-object-list.c: 11226 * src/include/idmef-object-list.h: 11227 removed. 11228 11229 * src/Makefile.am: 11230 * src/include/Makefile.am: 11231 updated accordingly. 11232 11233 plugins/format/classic/idmef-db-read.c | 81 ++++++++++++--------- 11234 src/Makefile.am | 1 - 11235 src/idmef-object-list.c | 121 -------------------------------- 11236 src/include/Makefile.am | 1 - 11237 src/include/idmef-object-list.h | 39 ---------- 11238 5 files changed, 46 insertions(+), 197 deletions(-) 11239 11240commit 88948db90af6b5c63cd84ccb878c12708fa116ff 11241Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11242Date: Fri Feb 14 14:09:53 2003 +0000 11243 11244 * configure.in: 11245 add a variable for directory for holding configuration of 11246 format plugins 11247 11248 * plugins/format/classic/Makefile.am: 11249 add plugin and config directories to DEFS. 11250 compile db-object.c. 11251 install schema.txt. 11252 11253 * plugins/format/classic/include/db-object.h 11254 * plugins/format/classic/db-object.c: 11255 * plugins/format/classic/schema.txt: 11256 new file. Parser and config file for describing database structure 11257 11258 * plugins/format/classic/include/idmef-db-read.h: 11259 * plugins/format/classic/idmef-db-read.c: 11260 * plugins/format/classic/classic.c: 11261 add IDMEF message reading support. 11262 11263 * src/idmef-db-values.c: 11264 * src/include/idmef-db-values.h: 11265 Removed. idmef_cache_t used instead. 11266 11267 * src/Makefile.am: 11268 * src/include/Makefile.am: 11269 updated accordingly 11270 11271 * src/db-interface-string.c: 11272 * src/db-interface.c: 11273 * src/db.c 11274 * src/format-plugins.c: 11275 * src/include/db-interface.h: 11276 * src/include/plugin-format.h: 11277 modify to reflect used API. 11278 11279 * src/include/param-string.h 11280 * src/param-string.c: 11281 fix various bugs resulting in SIGSEGVs 11282 (strbuf_sprintf): handle empty strings correctly 11283 (strbuf_string): 11284 (strbug_empty): 11285 (strbuf_clear): implemented 11286 11287 * src/db.c: 11288 change comment to indicate that reinitialization attempts are OK 11289 11290 ChangeLog | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 11291 configure.in | 3 +++ 11292 2 files changed, 52 insertions(+), 0 deletions(-) 11293 11294commit 68aa87ab2c1a5b262843e7ee2a9cb62449a066f1 11295Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11296Date: Fri Feb 14 14:08:05 2003 +0000 11297 11298 * configure.in: 11299 add a variable for directory for holding configuration of 11300 format plugins 11301 11302 * plugins/format/classic/Makefile.am: 11303 add plugin and config directories to DEFS. 11304 compile db-object.c. 11305 install schema.txt. 11306 11307 * plugins/format/classic/include/db-object.h 11308 * plugins/format/classic/db-object.c: 11309 * plugins/format/classic/schema.txt: 11310 new file. Parser and config file for describing database structure 11311 11312 * plugins/format/classic/include/idmef-db-read.h: 11313 * plugins/format/classic/idmef-db-read.c: 11314 * plugins/format/classic/classic.c: 11315 add IDMEF message reading support. 11316 11317 * src/idmef-db-values.c: 11318 * src/include/idmef-db-values.h: 11319 Removed. idmef_cache_t used instead. 11320 11321 * src/Makefile.am: 11322 * src/include/Makefile.am: 11323 updated accordingly 11324 11325 * src/db-interface-string.c: 11326 * src/db-interface.c: 11327 * src/db.c 11328 * src/format-plugins.c: 11329 * src/include/db-interface.h: 11330 * src/include/plugin-format.h: 11331 modify to reflect used API. 11332 11333 * src/include/param-string.h 11334 * src/param-string.c: 11335 fix various bugs resulting in SIGSEGVs 11336 (strbuf_sprintf): handle empty strings correctly 11337 (strbuf_string): 11338 (strbug_empty): 11339 (strbuf_clear): implemented 11340 11341 * src/db.c: 11342 change comment to indicate that reinitialization attempts are OK 11343 11344 plugins/format/classic/Makefile.am | 9 +- 11345 plugins/format/classic/classic.c | 147 +++++- 11346 plugins/format/classic/db-object.c | 376 ++++++++++++ 11347 plugins/format/classic/idmef-db-read.c | 753 +++++++++++++++++++++++- 11348 plugins/format/classic/include/db-object.h | 50 ++ 11349 plugins/format/classic/include/idmef-db-read.h | 6 +- 11350 plugins/format/classic/schema.txt | 44 ++ 11351 src/Makefile.am | 1 - 11352 src/db-interface-string.c | 2 - 11353 src/db-interface.c | 35 +- 11354 src/db.c | 12 +- 11355 src/format-plugins.c | 2 - 11356 src/idmef-db-values.c | 32 - 11357 src/include/Makefile.am | 1 - 11358 src/include/db-interface.h | 9 +- 11359 src/include/idmef-db-values.h | 33 - 11360 src/include/plugin-format.h | 10 +- 11361 src/include/strbuf.h | 6 + 11362 src/param-string.c | 17 +- 11363 src/strbuf.c | 28 +- 11364 20 files changed, 1457 insertions(+), 116 deletions(-) 11365 11366commit 53a72e60840d4f54c9119c204b7d207aff1c16df 11367Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11368Date: Fri Jan 17 23:26:57 2003 +0000 11369 11370 fix a mistake in ChangeLog 11371 11372 ChangeLog | 2 +- 11373 1 files changed, 1 insertions(+), 1 deletions(-) 11374 11375commit a4db2b5e2c0a7ee0bff65f59a7aaeb565b46653f 11376Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11377Date: Fri Jan 17 23:25:50 2003 +0000 11378 11379 2003-01-17 Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11380 11381 * plugins/format/classic/classic.c: 11382 remove obsoleted call to set_state() (so the code compiles ;P) 11383 11384 ChangeLog | 5 +++++ 11385 1 files changed, 5 insertions(+), 0 deletions(-) 11386 11387commit d08f093c8c46e85d02ed7ddd77eebccf4c7c8e18 11388Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11389Date: Fri Jan 17 22:18:16 2003 +0000 11390 11391 plugins/format/classic/classic.c: 11392 remove obsoleted call to set_state() 11393 11394 plugins/format/classic/classic.c | 2 -- 11395 1 files changed, 0 insertions(+), 2 deletions(-) 11396 11397commit 3caa21101f590eedd3b4d0e8eff528aa51113579 11398Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11399Date: Thu Jan 16 22:05:03 2003 +0000 11400 11401 correct URL 11402 11403 README | 2 +- 11404 1 files changed, 1 insertions(+), 1 deletions(-) 11405 11406commit be3a7b4069b7bdcb885efaabe9e1f7e1a3617f67 11407Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11408Date: Thu Jan 16 22:02:29 2003 +0000 11409 11410 * plugins/format/classic/classic: 11411 removed unnecessary plugin (un)subscription code. 11412 11413 ChangeLog | 5 +++++ 11414 plugins/format/classic/classic.c | 31 +++---------------------------- 11415 2 files changed, 8 insertions(+), 28 deletions(-) 11416 11417commit 4faada04df04932d66158658342db0c6d53a8490 11418Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11419Date: Sat Jan 11 21:38:52 2003 +0000 11420 11421 * plugins/format/classic/Makefile.am: 11422 link the plugin dynamically against libprelude to avoid linker 11423 errors when used from Perl. 11424 11425 * bindings/*: 11426 new files. Perl 5.8 bindings from Nicolas Delon 11427 <delon.nicolas@wanadoo.fr> 11428 11429 ChangeLog | 10 + 11430 bindings/perl/PreludeDB/Changes | 6 + 11431 bindings/perl/PreludeDB/MANIFEST | 8 + 11432 bindings/perl/PreludeDB/Makefile.PL | 17 + 11433 bindings/perl/PreludeDB/PreludeDB.pm | 131 ++++++++ 11434 bindings/perl/PreludeDB/PreludeDB.xs | 338 +++++++++++++++++++++ 11435 bindings/perl/PreludeDB/README | 38 +++ 11436 bindings/perl/PreludeDB/ppport.h | 540 ++++++++++++++++++++++++++++++++++ 11437 bindings/perl/PreludeDB/test.pl | 95 ++++++ 11438 bindings/perl/PreludeDB/typemap | 5 + 11439 plugins/format/classic/Makefile.am | 1 + 11440 11 files changed, 1189 insertions(+), 0 deletions(-) 11441 11442commit 71029ebaf5b51f9100e67b5b78f184f31df29a71 11443Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11444Date: Tue Jan 7 23:16:25 2003 +0000 11445 11446 * plugins/sql/mysql.c: 11447 * plugins/sql/pgsql.c: 11448 (db_query): don't change session status to st_query if there are 11449 no results. Remove unneeded st_transaction state (backend will 11450 check these things anyhow). Patch from Nicolas Delon 11451 <delon.nicolas@wanadoo.fr> (with my cooperation ;)). 11452 11453 * src/sql.c: 11454 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11455 (prelude_sql_insert): 11456 fix bug in error handling. 11457 (prelude_sql_row_free): 11458 Check for NULL argument. 11459 (prelude_sql_field_info_type): 11460 Implemented. 11461 11462 * src/include/sql.h: 11463 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11464 updated accordingly. 11465 11466 * plugins/format/classic/idmef-db-output.c: 11467 added error handling. Added transaction support: BEGIN; at the 11468 start, COMMIT; when we're done or ROLLBACK on error. Finally :) 11469 11470 * src/idmef-db-values.c: 11471 * src/include/idmef-db-values.h: 11472 new file. Implementation of container datatype for data read 11473 from database will be placed here. 11474 11475 * src/strbuf.c: 11476 * src/include/strbuf.h: 11477 new file. Provides a dynamically resizable char * buffer. 11478 11479 * src/idmef-object-list.c: 11480 * src/include/idmef-object-list.h: 11481 new file. Local implementation of lists of idmef_object_t objects. 11482 11483 * src/Makefile.am: 11484 * src/include/Makefile.am: 11485 modified accordingly 11486 11487 * src/plugin-format.h: 11488 API change: add hooks for alert reading function. 11489 11490 * plugins/format/classic/idmef-db-read.c: 11491 * plugins/format/classic/include/idmef-db-read.h: 11492 new file. Alert reading code will be placed here. 11493 11494 * plugins/format/classic/classic.c: 11495 register callback for alert reading. Remove check for database 11496 type duplicating the one from idmef-db-output.c. 11497 11498 * plugins/format/classic/Makefile.am: 11499 modified accordingly. 11500 11501 * plugins/format/classic/include/idmef-db-output.h: 11502 change preprocessor macros to avoid names clash. 11503 11504 * plugins/format/classic/classic.c: 11505 add support for alert reading API. 11506 11507 * src/db-interface.c: 11508 * src/include/db-interface.c: 11509 (prelude_db_interface_read_idmef_objects): implemented. 11510 11511 * src/db.c: 11512 fix includes adapting to new API. Update copyright notice. 11513 11514 * src/format-plugins.c: 11515 fix includes adapting to new API. 11516 11517 ChangeLog | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 11518 1 files changed, 73 insertions(+), 0 deletions(-) 11519 11520commit 930a14d516549dc6e11c7637fcd92cff0cf04907 11521Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11522Date: Tue Jan 7 23:15:16 2003 +0000 11523 11524 * plugins/sql/pgsql.c: 11525 (db_query): don't change session status to st_query if there are 11526 no results. Remove unneeded st_transaction state (backend will 11527 check these things anyhow). Patch from Nicolas Delon 11528 <delon.nicolas@wanadoo.fr> (with my cooperation ;)). 11529 11530 * src/sql.c: 11531 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11532 (prelude_sql_insert): 11533 fix bug in error handling. 11534 (prelude_sql_row_free): 11535 Check for NULL argument. 11536 (prelude_sql_field_info_type): 11537 Implemented. 11538 11539 * src/include/sql.h: 11540 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11541 updated accordingly. 11542 11543 * plugins/format/classic/idmef-db-output.c: 11544 added error handling. Added transaction support: BEGIN; at the 11545 start, COMMIT; when we're done or ROLLBACK on error. Finally :) 11546 11547 * src/idmef-db-values.c: 11548 * src/include/idmef-db-values.h: 11549 new file. Implementation of container datatype for data read 11550 from database will be placed here. 11551 11552 * src/strbuf.c: 11553 * src/include/strbuf.h: 11554 new file. Provides a dynamically resizable char * buffer. 11555 11556 * src/idmef-object-list.c: 11557 * src/include/idmef-object-list.h: 11558 new file. Local implementation of lists of idmef_object_t objects. 11559 11560 * src/Makefile.am: 11561 * src/include/Makefile.am: 11562 modified accordingly 11563 11564 * src/plugin-format.h: 11565 API change: add hooks for alert reading function. 11566 11567 * plugins/format/classic/idmef-db-read.c: 11568 * plugins/format/classic/include/idmef-db-read.h: 11569 new file. Alert reading code will be placed here. 11570 11571 * plugins/format/classic/classic.c: 11572 register callback for alert reading. Remove check for database 11573 type duplicating the one from idmef-db-output.c. 11574 11575 * plugins/format/classic/Makefile.am: 11576 modified accordingly. 11577 11578 * plugins/format/classic/include/idmef-db-output.h: 11579 change preprocessor macros to avoid names clash. 11580 11581 * plugins/format/classic/classic.c: 11582 add support for alert reading API. 11583 11584 * src/db-interface.c: 11585 * src/include/db-interface.c: 11586 (prelude_db_interface_read_idmef_objects): implemented. 11587 11588 * src/db.c: 11589 fix includes adapting to new API. Update copyright notice. 11590 11591 * src/format-plugins.c: 11592 fix includes adapting to new API. 11593 11594 -------------------------------------------------------------------- 11595 11596 plugins/format/classic/idmef-db-read.c | 57 +++++++++++ 11597 plugins/format/classic/include/idmef-db-read.h | 32 ++++++ 11598 src/idmef-object-list.c | 121 ++++++++++++++++++++++++ 11599 src/include/idmef-object-list.h | 39 ++++++++ 11600 4 files changed, 249 insertions(+), 0 deletions(-) 11601 11602commit 6f742aa2e8d02dd60b974693735a494addab8ecc 11603Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11604Date: Tue Jan 7 23:12:42 2003 +0000 11605 11606 * plugins/sql/pgsql.c: 11607 (db_query): don't change session status to st_query if there are 11608 no results. Remove unneeded st_transaction state (backend will 11609 check these things anyhow). Patch from Nicolas Delon 11610 <delon.nicolas@wanadoo.fr> (with my cooperation ;)). 11611 11612 * src/sql.c: 11613 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11614 (prelude_sql_insert): 11615 fix bug in error handling. 11616 (prelude_sql_row_free): 11617 Check for NULL argument. 11618 (prelude_sql_field_info_type): 11619 Implemented. 11620 11621 * src/include/sql.h: 11622 Patch from Nicolas Delon <delon.nicolas@wanadoo.fr>: 11623 updated accordingly. 11624 11625 * plugins/format/classic/idmef-db-output.c: 11626 added error handling. Added transaction support: BEGIN; at the 11627 start, COMMIT; when we're done or ROLLBACK on error. Finally :) 11628 11629 * src/idmef-db-values.c: 11630 * src/include/idmef-db-values.h: 11631 new file. Implementation of container datatype for data read 11632 from database will be placed here. 11633 11634 * src/strbuf.c: 11635 * src/include/strbuf.h: 11636 new file. Provides a dynamically resizable char * buffer. 11637 11638 * src/idmef-object-list.c: 11639 * src/include/idmef-object-list.h: 11640 new file. Local implementation of lists of idmef_object_t objects. 11641 11642 * src/Makefile.am: 11643 * src/include/Makefile.am: 11644 modified accordingly 11645 11646 * src/plugin-format.h: 11647 API change: add hooks for alert reading function. 11648 11649 * plugins/format/classic/idmef-db-read.c: 11650 * plugins/format/classic/include/idmef-db-read.h: 11651 new file. Alert reading code will be placed here. 11652 11653 * plugins/format/classic/classic.c: 11654 register callback for alert reading. Remove check for database 11655 type duplicating the one from idmef-db-output.c. 11656 11657 * plugins/format/classic/Makefile.am: 11658 modified accordingly. 11659 11660 * plugins/format/classic/include/idmef-db-output.h: 11661 change preprocessor macros to avoid names clash. 11662 11663 * plugins/format/classic/classic.c: 11664 add support for alert reading API. 11665 11666 * src/db-interface.c: 11667 * src/include/db-interface.c: 11668 (prelude_db_interface_read_idmef_objects): implemented. 11669 11670 * src/db.c: 11671 fix includes adapting to new API. Update copyright notice. 11672 11673 * src/format-plugins.c: 11674 fix includes adapting to new API. 11675 11676 11677 -------------------------------------------------------------------- 11678 11679 plugins/format/classic/Makefile.am | 2 +- 11680 plugins/format/classic/classic.c | 25 ++- 11681 plugins/format/classic/idmef-db-output.c | 276 ++++++++++++++-------- 11682 plugins/format/classic/include/idmef-db-output.h | 6 +- 11683 plugins/sql/mysql/mysql.c | 94 ++------ 11684 plugins/sql/pgsql/pgsql.c | 62 ++---- 11685 src/Makefile.am | 3 + 11686 src/db-interface-string.c | 4 +- 11687 src/db-interface.c | 34 +++- 11688 src/db.c | 9 +- 11689 src/format-plugins.c | 5 +- 11690 src/gdb.c | 1 + 11691 src/idmef-db-values.c | 32 +++ 11692 src/include/Makefile.am | 4 + 11693 src/include/db-interface.h | 4 + 11694 src/include/idmef-db-values.h | 33 +++ 11695 src/include/plugin-format.h | 7 + 11696 src/include/sql.h | 1 + 11697 src/include/strbuf.h | 37 +++ 11698 src/sql.c | 12 +- 11699 src/strbuf.c | 110 +++++++++ 11700 21 files changed, 529 insertions(+), 232 deletions(-) 11701 11702commit 64fc9fadb92b30e7b864c7d8d467389753c5f0d2 11703Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11704Date: Sat Jan 4 20:17:07 2003 +0000 11705 11706 cleanup 11707 11708 src/dispatch.c | 89 -------------------------------------------------------- 11709 1 files changed, 0 insertions(+), 89 deletions(-) 11710 11711commit e023a62c1b47fa8ef04a7a6dbb29c8880247fbbb 11712Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11713Date: Sat Jan 4 17:43:30 2003 +0000 11714 11715 * plugins/sql/mysql/mysql.c: 11716 * plugins/sql/pgsql/pgsql.c: 11717 * src/include/plugin-sql.h: 11718 * src/include/sql.h: 11719 * src/sql.c: 11720 updated copyright notices 11721 11722 * src/sql.c(prelude_sql_field_value_idmef): 11723 call idmef_value_have_own_data() after bulding idmef_string_t 11724 object. 11725 11726 * src/include/plugin-sql.h: 11727 sql plugin API re-designed 11728 we no longer convert the database result in our own format 11729 we no longer use the errno global variable, instead of this, 11730 the sql plugin must maintain an internal errno-type variable 11731 11732 * src/{sql.c,include/sql.h}: 11733 a lot of changes to fit the new sql plugin API 11734 11735 * src/{sql-table.c,include/sql-table.h}: 11736 as we are not doing results conversion anymore, those files 11737 have been deleted 11738 11739 * plugins/sql/mysql/mysql.c: 11740 a lot of changes to fit the new sql plugin API 11741 dbport argument in db_setup is supported 11742 code cleanup, we no longer use mysql API deprecated functions 11743 we no longer fetch the query result in one time, instead of this, 11744 we fetch the result row by row 11745 11746 * plugins/sql/pgsql/pgsql.c 11747 a lot of changes to fit the new sql plugin API 11748 11749 ChangeLog | 38 ++ 11750 plugins/format/classic/classic.c | 1 - 11751 plugins/format/classic/idmef-db-output.c | 1 - 11752 plugins/sql/mysql/mysql.c | 630 +++++++++++++++++++----------- 11753 plugins/sql/pgsql/pgsql.c | 542 ++++++++++++++++---------- 11754 src/Makefile.am | 3 +- 11755 src/db-interface.c | 1 - 11756 src/db.c | 2 +- 11757 src/format-plugins.c | 2 +- 11758 src/include/Makefile.am | 6 +- 11759 src/include/plugin-sql.h | 81 +++- 11760 src/include/sql-table.h | 73 ---- 11761 src/include/sql.h | 69 +++- 11762 src/message-queue.c | 60 --- 11763 src/queue.c | 181 --------- 11764 src/sql-plugins.c | 3 +- 11765 src/sql-table.c | 371 ------------------ 11766 src/sql.c | 447 ++++++++++++++++++++-- 11767 18 files changed, 1322 insertions(+), 1189 deletions(-) 11768 11769commit 6c4e677b96fec7eb735c6b0bd0a9f232ed15696f 11770Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11771Date: Wed Jan 1 12:57:05 2003 +0000 11772 11773 * src/db-interface-string.c(get_sql_connection_data): 11774 free 'data' structure correctly on error. 11775 Happy New Year :) 11776 11777 ChangeLog | 6 ++++++ 11778 src/db-interface-string.c | 14 +++++++------- 11779 2 files changed, 13 insertions(+), 7 deletions(-) 11780 11781commit 5ff1d12255a44d307bd12dee46ade26766b341cc 11782Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11783Date: Tue Dec 31 17:18:14 2002 +0000 11784 11785 * src/db-interface-string.c(get_sql_connection_data): 11786 fix memory leaks on errors. 11787 11788 ChangeLog | 5 +++++ 11789 src/db-interface-string.c | 6 ++++++ 11790 2 files changed, 11 insertions(+), 0 deletions(-) 11791 11792commit ec9205eee18b2c42e34a30f7fca21be1a2529c51 11793Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11794Date: Tue Dec 31 16:04:40 2002 +0000 11795 11796 * src/db-interface-string.c(get_sql_connection_data): 11797 add handling of "port" keyword. 11798 11799 11800 Happy New Year :) 11801 11802 ChangeLog | 5 +++++ 11803 1 files changed, 5 insertions(+), 0 deletions(-) 11804 11805commit 2c33900af31a91374b5f1cc5843c67ce7565e682 11806Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11807Date: Tue Dec 31 16:04:05 2002 +0000 11808 11809 * src/db-interface-string.c(get_sql_connection_data): 11810 add handling of "port" keyword. 11811 11812 11813 Happy New Year :) 11814 11815 src/db-interface-string.c | 12 ++++++++++++ 11816 1 files changed, 12 insertions(+), 0 deletions(-) 11817 11818commit cbcfbe07e6fe3f36b3ca9bc2bd015a273225dc00 11819Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11820Date: Fri Dec 20 13:34:54 2002 +0000 11821 11822 * plugins/sql/pgsql.c(db_query): 11823 fix a memory leak and a possible NULL pointer dereference on error. 11824 Thanks to Nicolas Delon <delon.nicolas@wanadoo.fr> for pointing 11825 this out. 11826 11827 ChangeLog | 7 +++++++ 11828 1 files changed, 7 insertions(+), 0 deletions(-) 11829 11830commit c13b76389d17f8aba837653a2c4d26b5afa10de2 11831Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11832Date: Fri Dec 20 13:33:25 2002 +0000 11833 11834 * plugins/sql/pgsql.c(db_query): 11835 fix a memory leak and a possible NULL pointer dereference on error. 11836 Thanks to Nicolas Delon <delon.nicolas@wanadoo.fr> for pointing 11837 this out. 11838 11839 plugins/sql/pgsql/pgsql.c | 7 ++++++- 11840 1 files changed, 6 insertions(+), 1 deletions(-) 11841 11842commit fa2ab54d4bd9e074b9097fbaae6221270cc7a790 11843Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11844Date: Thu Dec 19 21:41:01 2002 +0000 11845 11846 * plugins/sql/mysql.c 11847 Remove no longer used connection_closed state. 11848 (db_connect): 11849 modify accordingly 11850 (db_cleanup): 11851 rename to cleanup. Change type to void. Remove unneeded check 11852 for connection state. 11853 (db_close): 11854 call cleanup(). 11855 11856 * plugins/pgsql/pgsql.c: 11857 ditto. 11858 11859 * src/db-connection-data.c(prelude_db_connection_data_destroy): 11860 add missing call to free the structure. 11861 11862 * src/db-connection.c: 11863 * src/include/db-connection.h: 11864 (prelude_db_connection_destroy): 11865 implemented. 11866 11867 * src/db-interface-string.c: 11868 fix memory leaks related to calls to parameter_value() 11869 11870 * src/db-interface.c 11871 (prelude_db_interface_new): 11872 set interface state to active after creating 11873 (prelude_db_interface_destroy): 11874 don't abort on prelude_db_interface_deactivate() error 11875 add missing call to prelude_db_connection_destroy() 11876 11877 * src/sql.c 11878 (prelude_sql_escape): 11879 style fix. 11880 (prelude_sql_close): 11881 free() the structure 11882 11883 ChangeLog | 39 +++++++++++++++++++++++ 11884 plugins/sql/mysql/mysql.c | 18 +++------- 11885 plugins/sql/pgsql/pgsql.c | 18 +++------- 11886 src/db-connection-data.c | 2 + 11887 src/db-connection.c | 9 +++++ 11888 src/db-interface-string.c | 72 ++++++++++++++++++++++++++++--------------- 11889 src/db-interface.c | 18 +++++----- 11890 src/include/db-connection.h | 2 +- 11891 src/sql.c | 4 ++- 11892 9 files changed, 122 insertions(+), 60 deletions(-) 11893 11894commit 8877c186591a920581b4439b1a3efeb66ce2811c 11895Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11896Date: Thu Dec 19 13:14:39 2002 +0000 11897 11898 * plugins/sql/mysql/mysql.c: 11899 implement handling of queries returning results 11900 (this has been done by Nicolas Delon <delon.nicolas@wanadoo.fr>) 11901 11902 ChangeLog | 6 ++ 11903 plugins/sql/mysql/mysql.c | 118 ++++++++++++++++++++++++++++++++++++++++++++- 11904 2 files changed, 122 insertions(+), 2 deletions(-) 11905 11906commit e756875f3193392fd3735034f98f1abecb7831d7 11907Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11908Date: Sat Dec 14 16:55:25 2002 +0000 11909 11910 * src/sql-table.c: 11911 add missing copyright notice. 11912 11913 ChangeLog | 5 +++++ 11914 src/sql-table.c | 23 +++++++++++++++++++++++ 11915 2 files changed, 28 insertions(+), 0 deletions(-) 11916 11917commit 4c2884244fffe161bb4688c0cfd4e5f8470d4c25 11918Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11919Date: Fri Dec 13 23:33:59 2002 +0000 11920 11921 * src/db-interface.c: 11922 allow interface specification with format = NULL 11923 11924 * src/db-interface.c: 11925 * src/include/db-interface-h: 11926 (prelude_db_interface_get_connection) 11927 (prelude_db_interface_get_connection_data) 11928 new function. 11929 11930 * src/sql-table.c: 11931 * src/include/sql-table.h: 11932 rename prelude_sql_row_add_field() to prelude_sql_row_set_field() 11933 to reflect actual behavior. Add new function 11934 prelude_sql_row_get_width(). 11935 11936 * plugins/sql/pgsql/pgsql.c(get_query_result): 11937 fix a bug preventing function from working :-) 11938 (add missing call to prelude_sql_row_set_field()) 11939 11940 ChangeLog | 21 +++++++++++++++++++ 11941 plugins/sql/pgsql/pgsql.c | 2 + 11942 src/db-interface.c | 47 +++++++++++++++++++++++++++++--------------- 11943 src/include/db-interface.h | 4 +++ 11944 src/include/sql-table.h | 3 +- 11945 src/sql-table.c | 11 ++++++++- 11946 6 files changed, 69 insertions(+), 19 deletions(-) 11947 11948commit 9c87234736aee3fbd2eac2c4c82b2454723b61fc 11949Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11950Date: Mon Dec 9 22:57:01 2002 +0000 11951 11952 *** empty log message *** 11953 11954 src/include/param-string.h | 4 +++- 11955 1 files changed, 3 insertions(+), 1 deletions(-) 11956 11957commit e980c913d30d57bfdebdd92238fd2166573e29d2 11958Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11959Date: Mon Dec 9 22:55:20 2002 +0000 11960 11961 * src/include/sql.h: 11962 * src/include/sql-table.h: 11963 * src/include/param-string.h: 11964 add missing copyright notice 11965 11966 * src/include/param-string.h: 11967 add missing #ifdef 11968 11969 ChangeLog | 10 ++++++++++ 11970 src/include/param-string.h | 29 +++++++++++++++++++++++++++++ 11971 src/include/sql-table.h | 23 +++++++++++++++++++++++ 11972 src/include/sql.h | 23 +++++++++++++++++++++++ 11973 4 files changed, 85 insertions(+), 0 deletions(-) 11974 11975commit 965e546901a66e416b01c47625cea39ec947cd0c 11976Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 11977Date: Mon Dec 9 22:16:47 2002 +0000 11978 11979 * src/sql-table.c: 11980 * src/include/sql-table.h: 11981 prefix public functions and structures with prelude_ 11982 (so all public SQL functions are now prefixed with prelude_sql_) 11983 11984 * plugins/sql/mysql/mysql.c: 11985 * plugins/sql/pgsql/pgsql.c: 11986 * src/sql.c: 11987 * src/include/sql.h: 11988 * src/include/plugin-sql.h: 11989 update accordingly. 11990 11991 * src/include/plugin-sql.h: 11992 add missing plugin_init() prototype. 11993 11994 * src/include/format.h: 11995 removed. 11996 11997 ChangeLog | 23 ++++++++++++++- 11998 plugins/sql/mysql/mysql.c | 2 +- 11999 plugins/sql/pgsql/pgsql.c | 22 +++++++------- 12000 src/include/format.h | 15 ---------- 12001 src/include/plugin-sql.h | 5 ++- 12002 src/include/sql-table.h | 38 +++++++++++++------------- 12003 src/include/sql.h | 2 +- 12004 src/sql-table.c | 66 ++++++++++++++++++++++---------------------- 12005 src/sql.c | 4 +- 12006 9 files changed, 91 insertions(+), 86 deletions(-) 12007 12008commit f9284b9dacd9dda9507bc167719201fc5bb6d6e4 12009Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12010Date: Mon Dec 9 21:30:40 2002 +0000 12011 12012 * src/include/format.h: 12013 * src/sql.c: 12014 prefix public functions with prelude_ (so all public SQL functions 12015 are now prefixed with prelude_sql_) 12016 12017 * src/include/format.h: 12018 * src/db-interface.c: 12019 * plugins/format/classic/idmef-db-output.c: 12020 modified accordingly 12021 12022 ChangeLog | 12 ++ 12023 plugins/format/classic/idmef-db-output.c | 230 +++++++++++++++--------------- 12024 src/db-interface.c | 6 +- 12025 src/include/format.h | 2 +- 12026 src/include/sql.h | 18 ++-- 12027 src/sql.c | 22 ++-- 12028 6 files changed, 151 insertions(+), 139 deletions(-) 12029 12030commit f8b3c234d5bbfba6ade9bcf4e0f73ad797a1c2ac 12031Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12032Date: Mon Dec 9 20:43:03 2002 +0000 12033 12034 * src/include/sql.h: 12035 * src/sql.c: 12036 SQL connection handling code from sql-plugins.c. sql_connection_t 12037 structure made opaque. sql.h is a public header, offering 12038 application access to our SQL layer. 12039 12040 * src/sql-plugins.c: 12041 * src/include/plugin-sql.h: 12042 remove code moved to sql.[ch]. 12043 12044 * src/Makefile.am: 12045 * src/include/Makefile.am: 12046 modified accordingly 12047 12048 * plugins/format/classic/classic.c: 12049 * plugins/format/classic/idmef-db-output.c: 12050 * src/db-interface.c: 12051 include "sql.h" instead of "plugin-sql.h" 12052 12053 ChangeLog | 22 ++ 12054 plugins/format/classic/classic.c | 2 +- 12055 plugins/format/classic/idmef-db-output.c | 2 +- 12056 src/Makefile.am | 1 + 12057 src/db-interface.c | 2 +- 12058 src/include/Makefile.am | 1 + 12059 src/include/plugin-sql.h | 28 --- 12060 src/include/sql.h | 27 +++ 12061 src/sql-plugins.c | 268 ------------------------- 12062 src/sql.c | 319 ++++++++++++++++++++++++++++++ 12063 10 files changed, 373 insertions(+), 299 deletions(-) 12064 12065commit b6928de35ee93fba8eb6a1422f3fa2538ba629ca 12066Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12067Date: Sat Dec 7 21:11:56 2002 +0000 12068 12069 * src/db-interface-string.c: 12070 remove unneeded includes. 12071 12072 ChangeLog | 5 +++++ 12073 src/db-interface-string.c | 4 +--- 12074 2 files changed, 6 insertions(+), 3 deletions(-) 12075 12076commit b9278d319a0c4d01e43db527809650019b0ab285 12077Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12078Date: Sat Dec 7 20:54:34 2002 +0000 12079 12080 * src/db-interface.c(prelude_db_interface_connect): 12081 add missing "break" statement 12082 12083 * src/db-interface-string.c: 12084 * src/include/db-interface-string.h: 12085 new file. Reintroducing "ODBC-style" constructor for 12086 prelude_db_interface_t. 12087 12088 * src/Makefile.am: 12089 * src/include/Makefile.am: 12090 update accordingly. 12091 12092 ChangeLog | 14 ++++ 12093 src/Makefile.am | 1 + 12094 src/db-interface-string.c | 142 +++++++++++++++++++++++++++++++++++++ 12095 src/db-interface.c | 2 + 12096 src/include/Makefile.am | 1 + 12097 src/include/db-interface-string.h | 29 ++++++++ 12098 6 files changed, 189 insertions(+), 0 deletions(-) 12099 12100commit 6c66af1dd75b32aa8a339b10948e6f8f972a82bd 12101Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12102Date: Sat Dec 7 20:37:28 2002 +0000 12103 12104 * src/sql-connection-data.c: 12105 handle NULL parameter values correctly in all functions 12106 12107 * src/include/db-type.h: 12108 define prelude_db_type_invalid 12109 12110 ChangeLog | 8 ++++++++ 12111 1 files changed, 8 insertions(+), 0 deletions(-) 12112 12113commit 25611510b726e68213f54f8e1c78f019c7c2f24a 12114Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12115Date: Sat Dec 7 20:36:06 2002 +0000 12116 12117 * src/sql-connection-data.c: 12118 handle NULL parameter values correctly in all functions 12119 12120 * src/include/db-type.h: 12121 define prelude_db_type_invalid 12122 12123 * src/include/db-connection-data.c: 12124 * src/include/db-interface.c: 12125 removed (fixing wrong commit) 12126 12127 src/db-connection-data.c | 90 ++++++++++++++++++++++++++++++++++++++ 12128 src/include/db-connection-data.c | 85 ----------------------------------- 12129 src/include/db-type.h | 1 + 12130 src/sql-connection-data.c | 56 ++++++++++++++++++------ 12131 4 files changed, 133 insertions(+), 99 deletions(-) 12132 12133commit b5b70a60183d8d47efb2c7adafad6c5d775046b3 12134Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12135Date: Sat Dec 7 18:24:45 2002 +0000 12136 12137 * src/db-interface.c: 12138 don't include "param-string.h" 12139 12140 ChangeLog | 5 +++++ 12141 src/db-interface.c | 1 - 12142 2 files changed, 5 insertions(+), 1 deletions(-) 12143 12144commit 797daad9a8d304abdb29b36010a49fe1d77dee2a 12145Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12146Date: Sat Dec 7 18:15:55 2002 +0000 12147 12148 * src/db-interface.c(prelude_db_interface_new): 12149 avoid problems when 'format' or 'name' parameter is NULL 12150 12151 ChangeLog | 5 +++++ 12152 src/db-interface.c | 9 ++++++++- 12153 2 files changed, 13 insertions(+), 1 deletions(-) 12154 12155commit 4036f81b6437bd5aee4c97f1b6ee4096d7cec9fd 12156Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12157Date: Sat Dec 7 16:19:32 2002 +0000 12158 12159 * src/include/db-type.h: 12160 new file. prelude_db_type_t moved from db-connection.h 12161 12162 * src/include/db-connection.h: 12163 modified accordingly. 12164 12165 * src/include/Makefile.am: 12166 modified accordingly. 12167 12168 * plugins/format/classic/classic.c: 12169 * plugins/format/classic/idmef-db-output.c: 12170 * src/db-connection.c: 12171 * src/db-interface.c: 12172 * src/db.c: 12173 * src/format-plugins.c: 12174 * src/sql-plugins.c: 12175 include "db-type.h" 12176 12177 * src/sql-connection-data.c: 12178 * src/include/sql-connection-data.h: 12179 (prelude_sql_connection_data_set_name): 12180 (prelude_sql_connection_data_get_name): 12181 implemented. 12182 12183 * src/param-string.c: 12184 declare local functions as static 12185 12186 ChangeLog | 29 ++++++++++++++++++++++++++ 12187 plugins/format/classic/classic.c | 1 + 12188 plugins/format/classic/idmef-db-output.c | 1 + 12189 src/db-connection.c | 1 + 12190 src/db-interface.c | 1 + 12191 src/db.c | 1 + 12192 src/format-plugins.c | 1 + 12193 src/include/Makefile.am | 1 + 12194 src/include/db-connection-data.h | 3 +- 12195 src/include/db-connection.h | 6 ----- 12196 src/include/db-type.h | 33 ++++++++++++++++++++++++++++++ 12197 src/include/sql-connection-data.h | 6 ++++- 12198 src/param-string.c | 10 ++++---- 12199 src/sql-connection-data.c | 18 ++++++++++++++++ 12200 src/sql-plugins.c | 1 + 12201 15 files changed, 100 insertions(+), 13 deletions(-) 12202 12203commit 421ca95fa687a7886a9c4f4ecb59c6fa052497b0 12204Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12205Date: Sat Dec 7 15:44:32 2002 +0000 12206 12207 * src/db-interface.c: 12208 * src/include/db-connection-data.c: 12209 add missing copyright notice 12210 12211 ChangeLog | 6 ++++++ 12212 src/db-interface.c | 22 ++++++++++++++++++++++ 12213 src/include/db-connection-data.c | 23 +++++++++++++++++++++++ 12214 3 files changed, 51 insertions(+), 0 deletions(-) 12215 12216commit be401069b1765d7e8e6f24862d79681a26e22923 12217Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12218Date: Sat Dec 7 15:33:54 2002 +0000 12219 12220 * src/db-connection-data.c 12221 * src/include/db-connection-data.c 12222 * src/db-interface.c 12223 * src/include/db-interface.h 12224 * src/sql-connection-data.c 12225 * src/include/sql-connection-data.h 12226 new files. Object model for connection management has been totally 12227 reworked using opaque datatypes and should finally be correct. 12228 12229 * src/db-connection.c: 12230 * src/include/db-connection.h: 12231 remove code regaring interface object (moved to db-interface.[ch]). 12232 Change structure of prelude_db_connection_t and make opaque. 12233 12234 * src/db.c: 12235 * src/include/db.h: 12236 don't include anything in .h 12237 12238 * plugins/format/classic/classic.c: 12239 * plugins/format/classic/idmef-db-output.c: 12240 modify code as necessary 12241 12242 * plugins/sql/mysql/mysql.c: 12243 * plugins/sql/pgsql/pgsql.c: 12244 fix includes accordingly 12245 12246 * src/Makefile.am: 12247 * src/include/Makefile.am: 12248 modify accordingly 12249 12250 ChangeLog | 32 ++++ 12251 plugins/format/classic/classic.c | 3 +- 12252 plugins/format/classic/idmef-db-output.c | 10 +- 12253 plugins/sql/mysql/mysql.c | 15 ++- 12254 plugins/sql/pgsql/pgsql.c | 19 ++- 12255 src/Makefile.am | 3 + 12256 src/db-connection.c | 253 ++--------------------------- 12257 src/db-interface.c | 254 ++++++++++++++++++++++++++++++ 12258 src/db.c | 15 ++- 12259 src/format-plugins.c | 1 + 12260 src/include/Makefile.am | 6 + 12261 src/include/db-connection-data.c | 62 +++++++ 12262 src/include/db-connection-data.h | 39 +++++ 12263 src/include/db-connection.h | 45 +----- 12264 src/include/db-interface.h | 51 ++++++ 12265 src/include/db.h | 18 -- 12266 src/include/plugin-sql.h | 4 +- 12267 src/include/sql-connection-data.h | 56 +++++++ 12268 src/sql-connection-data.c | 180 +++++++++++++++++++++ 12269 src/sql-plugins.c | 16 ++- 12270 20 files changed, 775 insertions(+), 307 deletions(-) 12271 12272commit 7dadeee523611893730570008558ba0afd4c9c7f 12273Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12274Date: Sun Dec 1 18:50:14 2002 +0000 12275 12276 sync with old changes to HEAD 12277 12278 ChangeLog | 23 ++++++ 12279 plugins/format/classic/idmef-db-output.c | 35 +++++---- 12280 plugins/format/classic/mysql.sql | 14 ++-- 12281 plugins/format/classic/pgsql.sql | 116 +++++++++++++++--------------- 12282 4 files changed, 109 insertions(+), 79 deletions(-) 12283 12284commit a3357fffca40d500884965584dc72f83643e59d9 12285Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12286Date: Tue Sep 24 15:35:57 2002 +0000 12287 12288 *** empty log message *** 12289 12290 src/include/db-connection.h | 7 ------- 12291 1 files changed, 0 insertions(+), 7 deletions(-) 12292 12293commit 19031714c145e09f2f7654a1730b8487389f173f 12294Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12295Date: Tue Sep 24 15:34:12 2002 +0000 12296 12297 *** empty log message *** 12298 12299 ChangeLog | 16 +++ 12300 src/db-connection.c | 217 +++++++++++++++++++++++-------------------- 12301 src/include/db-connection.h | 16 +++ 12302 3 files changed, 147 insertions(+), 102 deletions(-) 12303 12304commit 40b0942461fd4cdb95144e048ebd869057312537 12305Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12306Date: Mon Sep 16 20:25:23 2002 +0000 12307 12308 *** empty log message *** 12309 12310 ChangeLog | 7 +++++++ 12311 1 files changed, 7 insertions(+), 0 deletions(-) 12312 12313commit 73f06d40143dea1c77b83d2a3d65e34aa9bf552c 12314Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12315Date: Mon Sep 16 20:24:59 2002 +0000 12316 12317 moved *.sql to plugins/format/classic 12318 12319 plugins/format/classic/mysql.sql | 389 ++++++++++++++++++++++++++++++++++++++ 12320 plugins/format/classic/pgsql.sql | 374 ++++++++++++++++++++++++++++++++++++ 12321 plugins/sql/mysql/mysql.sql | 389 -------------------------------------- 12322 plugins/sql/pgsql/postgres.sql | 374 ------------------------------------ 12323 4 files changed, 763 insertions(+), 763 deletions(-) 12324 12325commit e170508e5f6e1e2cd9f47d2dc799749ace28275f 12326Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12327Date: Sun Sep 15 20:52:17 2002 +0000 12328 12329 fix transaction handling. remove db_insert(). 12330 12331 ChangeLog | 13 +++++ 12332 plugins/sql/mysql/mysql.c | 118 +++++++++++++++++++-------------------------- 12333 plugins/sql/pgsql/pgsql.c | 78 +++++++++++------------------- 12334 src/include/plugin-sql.h | 6 +- 12335 src/sql-plugins.c | 4 +- 12336 5 files changed, 96 insertions(+), 123 deletions(-) 12337 12338commit 0948cb136edd510ccb59618ab3d1556ed652b969 12339Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12340Date: Thu Sep 12 07:28:14 2002 +0000 12341 12342 *** empty log message *** 12343 12344 ChangeLog | 21 +++++++++++++++++++++ 12345 README | 42 ++++++++++++++++++++++++++++++++++++++---- 12346 configure.in | 16 ++++++++++++++++ 12347 3 files changed, 75 insertions(+), 4 deletions(-) 12348 12349commit 537d1715309210bfb34b20f102878bd792ff28a2 12350Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12351Date: Thu Sep 12 07:17:46 2002 +0000 12352 12353 * src/db-connection.c: 12354 * src/include/db-connection.h: 12355 removed support for connection lists. This should be done 12356 in the application. 12357 12358 Added a new ODBC-style common connection interface 12359 (prelude_db_connect). 12360 12361 * src/param-string.c 12362 * src/include/param-string.h: 12363 Functions needed for parsing connection configuration strings. 12364 12365 * src/sql-table.c: made sql_field_t, sql_row_t, sql_table_t 12366 be opaque datatype, for the sake of binary compatibility. 12367 12368 * lot of cleanup, handle session the right way (tm). 12369 12370 plugins/format/classic/classic.c | 2 +- 12371 plugins/format/classic/idmef-db-output.c | 2 +- 12372 plugins/sql/mysql/mysql.c | 344 +++++++++------------ 12373 plugins/sql/pgsql/pgsql.c | 512 ++++++++++++++---------------- 12374 src/Makefile.am | 5 +- 12375 src/db-connection.c | 213 +++++++------ 12376 src/db.c | 38 +-- 12377 src/format-plugins.c | 39 +--- 12378 src/include/Makefile.am | 2 + 12379 src/include/db-connection.h | 18 +- 12380 src/include/db.h | 3 +- 12381 src/include/param-string.h | 1 + 12382 src/include/plugin-format.h | 8 +- 12383 src/include/plugin-sql.h | 26 +- 12384 src/include/sql-table.h | 59 ++--- 12385 src/param-string.c | 211 ++++++++++++ 12386 src/sql-plugins.c | 72 ++--- 12387 src/sql-table.c | 262 +++++++++++----- 12388 18 files changed, 1003 insertions(+), 814 deletions(-) 12389 12390commit 0e9b4da3ff12f762f8fa75faaf74e4988d55980c 12391Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12392Date: Mon Aug 26 09:43:25 2002 +0000 12393 12394 * src/sql-plugins.c: 12395 if va_copy isn't defined (C99), check for __va_copy (C89). 12396 12397 If __va_copy isn't available, then fallback on the memcpy() 12398 method, but give a compile warning as well explaining this 12399 might result in undefined behavior on certain architecture. 12400 12401 generate_query(): copy the variable argument list in case 12402 generate_dynamic_query() is to be called. This avoid undefined 12403 behavior on some architecture, where you can't use a variable 12404 argument list twice. 12405 12406 ChangeLog | 12 ++++++++++++ 12407 src/sql-plugins.c | 32 +++++++++++++++++++++++++++++++- 12408 2 files changed, 43 insertions(+), 1 deletions(-) 12409 12410commit 9b3d6221000542b44052a82f197758ecaeb22025 12411Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12412Date: Mon Aug 26 08:23:45 2002 +0000 12413 12414 2002-08-26 Yoann Vandoorselaere <yoann@mandrakesoft.com> 12415 12416 * src/sql-plugins.c (sql_query): 12417 (sql_insert): kill code duplication, use generate_query(). 12418 12419 (generate_query): new function. Fix an off by one in 12420 sql_insert() and sql_query. 12421 12422 ChangeLog | 6 ++ 12423 src/sql-plugins.c | 140 +++++++++++++++++++++++------------------------------ 12424 2 files changed, 67 insertions(+), 79 deletions(-) 12425 12426commit 58d96f56f7c8b8d4f80c517d7f83b55c6a32f644 12427Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12428Date: Sun Aug 25 22:39:05 2002 +0000 12429 12430 *** empty log message *** 12431 12432 ChangeLog | 4 ++++ 12433 configure.in | 1 + 12434 2 files changed, 5 insertions(+), 0 deletions(-) 12435 12436commit 3f396fdab8e224650ed50080f429f8ea1fefb3bb 12437Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com> 12438Date: Sun Aug 25 14:06:58 2002 +0000 12439 12440 2002-08-25 Yoann Vandoorselaere <yoann@mandrakesoft.com> 12441 12442 * src/format-plugins.c: avoid using global variable when 12443 possible. Style fix. 12444 12445 ChangeLog | 5 +++++ 12446 src/format-plugins.c | 18 ++++++++++-------- 12447 2 files changed, 15 insertions(+), 8 deletions(-) 12448 12449commit 810783cd42383f2a0a2d7d8ec09125945839793c 12450Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12451Date: Fri Aug 23 22:02:02 2002 +0000 12452 12453 removed rh artifacts ;-) 12454 12455 autogen.sh | 10 +++++----- 12456 1 files changed, 5 insertions(+), 5 deletions(-) 12457 12458commit 25ba5165252697d95c4a7397d41a37abbcf89095 12459Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12460Date: Fri Aug 23 21:15:44 2002 +0000 12461 12462 *** empty log message *** 12463 12464 ChangeLog | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 12465 README | 32 ++++++++++++++++++++++++++++++++ 12466 2 files changed, 83 insertions(+), 1 deletions(-) 12467 12468commit 32a0fc085b51eb90945cc91ec6facb15b2644a22 12469Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12470Date: Fri Aug 23 21:14:35 2002 +0000 12471 12472 mysql plugin ported. README file added. 12473 12474 plugins/format/classic/classic.c | 8 - 12475 plugins/sql/Makefile.am | 3 +- 12476 plugins/sql/mysql/Makefile.am | 2 +- 12477 plugins/sql/mysql/mysql.c | 343 ++++++++++++++++++++++++++++---------- 12478 plugins/sql/pgsql/pgsql.c | 31 ++-- 12479 src/db-connection.c | 16 +- 12480 src/include/plugin-sql.h | 4 +- 12481 src/sql-plugins.c | 7 +- 12482 8 files changed, 285 insertions(+), 129 deletions(-) 12483 12484commit b188cbca62acf9619b0ee93a628780e8cb4d50e3 12485Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12486Date: Thu Aug 22 17:24:36 2002 +0000 12487 12488 clean up. improve interface handling code. 12489 12490 plugins/format/classic/classic.c | 4 +- 12491 plugins/format/classic/idmef-db-output.c | 4 +- 12492 plugins/format/classic/include/idmef-db-output.h | 2 +- 12493 src/db-connection.c | 163 +++++++++++++++++----- 12494 src/db.c | 67 +++++---- 12495 src/include/db-connection.h | 59 +++++++- 12496 src/include/db.h | 8 +- 12497 src/include/plugin-format.h | 2 +- 12498 8 files changed, 228 insertions(+), 81 deletions(-) 12499 12500commit e3305bf6602287a7e98bb15927076dcbf7f21068 12501Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12502Date: Thu Aug 22 15:25:50 2002 +0000 12503 12504 initial db-work commit 12505 12506 ChangeLog | 5 +++++ 12507 1 files changed, 5 insertions(+), 0 deletions(-) 12508 12509commit 2a1439f82ecc3675fd2b677a82afdc08bb3a25e3 12510Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12511Date: Thu Aug 22 15:13:04 2002 +0000 12512 12513 *** empty log message *** 12514 12515 plugins/format/classic/classic.c | 2 + 12516 plugins/format/classic/idmef-db-output.c | 96 +++++++++++++++--------------- 12517 src/db-connection.c | 6 ++ 12518 src/include/plugin-sql.h | 16 +++-- 12519 src/sql-plugins.c | 38 +++--------- 12520 5 files changed, 74 insertions(+), 84 deletions(-) 12521 12522commit fb7e88026bfe27a02d69b7d8ae42806f8b97d441 12523Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl> 12524Date: Wed Aug 21 23:19:21 2002 +0000 12525 12526 Initial revision 12527 12528 COPYING | 340 ++++++ 12529 INSTALL | 182 ++++ 12530 Makefile.am | 3 + 12531 acconfig.h | 8 + 12532 acinclude.m4 | 149 +++ 12533 autogen.sh | 6 + 12534 configure.in | 183 ++++ 12535 libpreludedb-config.in | 71 ++ 12536 plugins/Makefile.am | 1 + 12537 plugins/filters/Makefile.am | 5 + 12538 plugins/filters/skeleton/Makefile.am | 6 + 12539 plugins/filters/skeleton/skeleton.c | 163 +++ 12540 plugins/format/Makefile.am | 1 + 12541 plugins/format/classic/Makefile.am | 6 + 12542 plugins/format/classic/classic.c | 104 ++ 12543 plugins/format/classic/idmef-db-output.c | 1255 ++++++++++++++++++++++ 12544 plugins/format/classic/include/idmef-db-output.h | 30 + 12545 plugins/format/new/idmef-db-output.c | 401 +++++++ 12546 plugins/sql/Makefile.am | 6 + 12547 plugins/sql/mysql/Makefile.am | 11 + 12548 plugins/sql/mysql/mysql.c | 260 +++++ 12549 plugins/sql/mysql/mysql.sql | 389 +++++++ 12550 plugins/sql/pgsql/Makefile.am | 12 + 12551 plugins/sql/pgsql/pgsql.c | 482 +++++++++ 12552 plugins/sql/pgsql/postgres.sql | 374 +++++++ 12553 src/Makefile.am | 16 + 12554 src/db-connection.c | 167 +++ 12555 src/db.c | 74 ++ 12556 src/dispatch.c | 89 ++ 12557 src/filter-plugins.c | 202 ++++ 12558 src/format-plugins.c | 112 ++ 12559 src/gdb.c | 33 + 12560 src/include/Makefile.am | 15 + 12561 src/include/db-connection.h | 19 + 12562 src/include/db.h | 49 + 12563 src/include/dispatch.h | 16 + 12564 src/include/format.h | 15 + 12565 src/include/gdb.h | 7 + 12566 src/include/plugin-filter.h | 88 ++ 12567 src/include/plugin-format.h | 51 + 12568 src/include/plugin-sql.h | 133 +++ 12569 src/include/queue.h | 39 + 12570 src/include/sql-table.h | 66 ++ 12571 src/message-queue.c | 60 + 12572 src/queue.c | 181 ++++ 12573 src/sql-plugins.c | 357 ++++++ 12574 src/sql-table.c | 225 ++++ 12575 47 files changed, 6462 insertions(+), 0 deletions(-) 12576