Data Packet Verification Added
diff --git a/src/nlsr_conf_processor.cpp b/src/nlsr_conf_processor.cpp
index e6067f9..13432d0 100644
--- a/src/nlsr_conf_processor.cpp
+++ b/src/nlsr_conf_processor.cpp
@@ -99,10 +99,14 @@
{
processConfCommandMaxFacesPerPrefix(pnlsr,nt.getRestOfLine());
}
- else if( (nt.getFirstToken() == "logdir"))
+ else if( (nt.getFirstToken() == "log-dir"))
{
processConfCommandLogDir(pnlsr,nt.getRestOfLine());
}
+ else if( (nt.getFirstToken() == "cert-dir"))
+ {
+ processConfCommandCertDir(pnlsr,nt.getRestOfLine());
+ }
else if( (nt.getFirstToken() == "detailed-logging") )
{
processConfCommandDetailedLogging(pnlsr,nt.getRestOfLine());
@@ -364,6 +368,20 @@
}
return 0;
}
+
+ int
+ ConfFileProcessor::processConfCommandCertDir(Nlsr& pnlsr, string command)
+ {
+ if(command.empty() )
+ {
+ cerr <<" Wrong command format ! [cert-dir /path/to/cert/dir]!"<<endl;
+ }
+ else
+ {
+ pnlsr.getConfParameter().setCertDir(command);
+ }
+ return 0;
+ }
int
ConfFileProcessor::processConfCommandDebugging(Nlsr& pnlsr, string command)