Minor rename in support of non-dbm file cache
Added the optional_dbm_support branch and made a minor renaming change on this branch for the coming non-dbm file cache support.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ fwknopd_SOURCES = fwknopd.c fwknopd.h config_init.c config_init.h \
|
||||
fwknopd_common.h incoming_spa.c incoming_spa.h \
|
||||
pcap_capture.c pcap_capture.h process_packet.c \
|
||||
process_packet.h log_msg.c log_msg.h utils.c utils.h \
|
||||
sig_handler.c sig_handler.h replay_dbm.c replay_dbm.h \
|
||||
sig_handler.c sig_handler.h replay_cache.c replay_cache.h \
|
||||
access.c access.h fwknopd_errors.c fwknopd_errors.h \
|
||||
tcp_server.c tcp_server.h extcmd.c extcmd.h \
|
||||
fw_util.c fw_util.h fw_util_ipf.c fw_util_ipf.h \
|
||||
|
||||
+2
-2
@@ -37,7 +37,7 @@
|
||||
#include "utils.h"
|
||||
#include "fw_util.h"
|
||||
#include "sig_handler.h"
|
||||
#include "replay_dbm.h"
|
||||
#include "replay_cache.h"
|
||||
#include "tcp_server.h"
|
||||
|
||||
/* Prototypes
|
||||
@@ -239,7 +239,7 @@ main(int argc, char **argv)
|
||||
dump_access_list(&opts);
|
||||
}
|
||||
|
||||
/* Initialize the digest cache (replay attack detection dbm)
|
||||
/* Initialize the digest cache for replay attack detection
|
||||
* if so configured.
|
||||
*/
|
||||
if(strncasecmp(opts.config[CONF_ENABLE_DIGEST_PERSISTENCE], "Y", 1) == 0)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include "utils.h"
|
||||
#include "fw_util.h"
|
||||
#include "fwknopd_errors.h"
|
||||
#include "replay_dbm.h"
|
||||
#include "replay_cache.h"
|
||||
|
||||
/* Validate and in some cases preprocess/reformat the SPA data. Return an
|
||||
* error code value if there is any indication the data is not valid spa data.
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
/*
|
||||
*****************************************************************************
|
||||
*
|
||||
* File: replay_dbm.c
|
||||
* File: replay_cache.c
|
||||
*
|
||||
* Author: Damien S. Stuart
|
||||
*
|
||||
* Purpose: Provides the functions to check for possible replay attacks
|
||||
* by using a dbm (ndbm or gdbm in ndbm compatibility mode) file
|
||||
* to store a digest of previously received SPA packets.
|
||||
* by using a cache of previously seen digests. This cache is a
|
||||
* simple file by default, but can be made to use a dbm solution
|
||||
* (ndbm or gdbm in ndbm compatibility mode) file to store the digest
|
||||
* of a previously received SPA packets.
|
||||
*
|
||||
* Copyright 2010 Damien Stuart (dstuart@dstuart.org)
|
||||
*
|
||||
@@ -30,7 +32,7 @@
|
||||
*
|
||||
*****************************************************************************
|
||||
*/
|
||||
#include "replay_dbm.h"
|
||||
#include "replay_cache.h"
|
||||
#include "log_msg.h"
|
||||
#include "fwknopd_errors.h"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
*****************************************************************************
|
||||
*
|
||||
* File: replay_dbm.h
|
||||
* File: replay_cache.h
|
||||
*
|
||||
* Author: Damien Stuart (dstuart@dstuart.org)
|
||||
*
|
||||
* Purpose: Header file for fwknopd replay_dbm.c functions.
|
||||
* Purpose: Header file for fwknopd replay_cache.c functions.
|
||||
*
|
||||
* Copyright 2010 Damien Stuart (dstuart@dstuart.org)
|
||||
*
|
||||
Reference in New Issue
Block a user