X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_dbd%2Fdb_op.h;h=a6031fcd7512ea22c404eeb8751f54f2b242ea70;hb=refs%2Ftags%2Fupstream%2F2.7;hp=e8b35524da9bb709643fa87927fb4b3921e14b2f;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_dbd/db_op.h b/src/os_dbd/db_op.h index e8b3552..a6031fc 100755 --- a/src/os_dbd/db_op.h +++ b/src/os_dbd/db_op.h @@ -1,17 +1,18 @@ -/* @(#) $Id: db_op.h,v 1.7 2009/06/24 17:06:30 dcid Exp $ */ +/* @(#) $Id: ./src/os_dbd/db_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation. * * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ - + /* Common API for dealing with databases */ @@ -49,11 +50,12 @@ void osdb_escapestr(char *str); * Available chars: a-z, A-Z, 0-9, -, _, ., %, $, @, (, ), +, *, / * Basically: 040-046 (oct) * 050-176 (oct) + * 8/27/2012: Modified to allow new lines - \012 */ static const unsigned char insert_map[] = { '\000', '\000', '\002', '\003', '\004', '\005', '\006', '\007', - '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', + '\010', '\011', '\001', '\013', '\014', '\015', '\016', '\017', '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\047',