-/* @(#) $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
*/
unsigned int local;
unsigned int keyid;
unsigned int global;
-
+
char *id;
char *key;
char *name;
{
/* Array with all the keys */
keyentry **keyentries;
-
-
+
+
/* Hashes, based on the id/ip to lookup the keys. */
void *keyhash_id;
void *keyhash_ip;
/* Checks if key changed. */
int OS_CheckUpdateKeys(keystore *keys);
-
+
/* Update the keys if they changed on the system. */
int OS_UpdateKeys(keystore *keys);
/** 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) */
#endif
#define SENDER_COUNTER "sender_counter"
-#define KEYSIZE 128
+#define KEYSIZE 128
#endif