X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fsec.h;h=841492f747c45c602a1f72fdf8f1d3d59aefccf4;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=290cc3e3f145d1cd6d206b52946e47ac32f948a8;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/sec.h b/src/headers/sec.h index 290cc3e..841492f 100755 --- a/src/headers/sec.h +++ b/src/headers/sec.h @@ -1,11 +1,12 @@ -/* @(#) $Id: sec.h,v 1.20 2009/06/24 17:06:26 dcid Exp $ */ +/* @(#) $Id: ./src/headers/sec.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right 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 */ @@ -21,7 +22,7 @@ typedef struct _keyentry unsigned int local; unsigned int keyid; unsigned int global; - + char *id; char *key; char *name; @@ -37,8 +38,8 @@ typedef struct _keystore { /* Array with all the keys */ keyentry **keyentries; - - + + /* Hashes, based on the id/ip to lookup the keys. */ void *keyhash_id; void *keyhash_ip; @@ -66,7 +67,7 @@ void OS_FreeKeys(keystore *keys); /* Checks if key changed. */ int OS_CheckUpdateKeys(keystore *keys); - + /* Update the keys if they changed on the system. */ int OS_UpdateKeys(keystore *keys); @@ -97,7 +98,7 @@ int OS_IsAllowedDynamicID(keystore *keys, char *id, char *srcip); /** Function prototypes -- send/recv messages **/ /* Decrypt and decompress a remote message. */ -char *ReadSecMSG(keystore *keys, char *buffer, char *cleartext, +char *ReadSecMSG(keystore *keys, char *buffer, char *cleartext, int id, int buffer_size); /* Creates an ossec message (encrypts and compress) */ @@ -114,7 +115,7 @@ int CreateSecMSG(keystore *keys, char *msg, char *msg_encrypted, int id); #endif #define SENDER_COUNTER "sender_counter" -#define KEYSIZE 128 +#define KEYSIZE 128 #endif