| 
				
			 | 
			
			
				
				@@ -41,8 +41,6 @@ int MainClass::main() 
			 | 
		
		
	
		
			
			| 
				41
			 | 
			
				41
			 | 
			
			
				
				     commandLineParser.addOption(&configOption); 
			 | 
		
		
	
		
			
			| 
				42
			 | 
			
				42
			 | 
			
			
				
				     CommandLineOption decryptOption("decrypt", 'd', "Decrypt DATA and exit. Can be specified multiple times. Use - to read from stdin.", "DATA"); 
			 | 
		
		
	
		
			
			| 
				43
			 | 
			
				43
			 | 
			
			
				
				     commandLineParser.addOption(&decryptOption); 
			 | 
		
		
	
		
			
			| 
				44
			 | 
			
				
			 | 
			
			
				
				-    CommandLineOption socketOption("milter", 'm', "Launch milter and specify the socket to listen on (eg: inet:4242@localhost).", "SOCKET"); 
			 | 
		
		
	
		
			
			| 
				45
			 | 
			
				
			 | 
			
			
				
				-    commandLineParser.addOption(&socketOption); 
			 | 
		
		
	
		
			
			| 
				46
			 | 
			
				44
			 | 
			
			
				
				     CommandLineOption helpOption("help", 'h', "Show this help."); 
			 | 
		
		
	
		
			
			| 
				47
			 | 
			
				45
			 | 
			
			
				
				     commandLineParser.addOption(&helpOption); 
			 | 
		
		
	
		
			
			| 
				48
			 | 
			
				46
			 | 
			
			
				
				  
			 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			
				
				@@ -63,16 +61,14 @@ int MainClass::main() 
			 | 
		
		
	
		
			
			| 
				63
			 | 
			
				61
			 | 
			
			
				
				         std::cerr << "Failed to read configuration file: " << strerror(configResult) << std::endl; 
			 | 
		
		
	
		
			
			| 
				64
			 | 
			
				62
			 | 
			
			
				
				         return EX_NOINPUT; 
			 | 
		
		
	
		
			
			| 
				65
			 | 
			
				63
			 | 
			
			
				
				     } 
			 | 
		
		
	
		
			
			| 
				66
			 | 
			
				
			 | 
			
			
				
				-    else if (socketOption.isSet()) 
			 | 
		
		
	
		
			
			| 
				67
			 | 
			
				
			 | 
			
			
				
				-    { 
			 | 
		
		
	
		
			
			| 
				68
			 | 
			
				
			 | 
			
			
				
				-        return launchMilter(socketOption.getValue()); 
			 | 
		
		
	
		
			
			| 
				69
			 | 
			
				
			 | 
			
			
				
				-    } 
			 | 
		
		
	
		
			
			| 
				70
			 | 
			
				64
			 | 
			
			
				
				     else if (decryptOption.isSet()) 
			 | 
		
		
	
		
			
			| 
				71
			 | 
			
				65
			 | 
			
			
				
				     { 
			 | 
		
		
	
		
			
			| 
				72
			 | 
			
				66
			 | 
			
			
				
				         return launchDecrypt(decryptOption.getValues()); 
			 | 
		
		
	
		
			
			| 
				73
			 | 
			
				67
			 | 
			
			
				
				     } 
			 | 
		
		
	
		
			
			| 
				74
			 | 
			
				
			 | 
			
			
				
				- 
			 | 
		
		
	
		
			
			| 
				75
			 | 
			
				
			 | 
			
			
				
				-    return commandLineParser.showHelp(EX_USAGE, true); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				68
			 | 
			
			
				
				+    else 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				69
			 | 
			
			
				
				+    { 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				70
			 | 
			
			
				
				+        return launchMilter(_defaultSocket); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				71
			 | 
			
			
				
				+    } 
			 | 
		
		
	
		
			
			| 
				76
			 | 
			
				72
			 | 
			
			
				
				 } 
			 | 
		
		
	
		
			
			| 
				77
			 | 
			
				73
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				78
			 | 
			
				74
			 | 
			
			
				
				 sfsistat MainClass::mlfiHeader(SMFICTX *ctx) 
			 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			
				
				@@ -112,6 +108,7 @@ int MainClass::loadConfig(const std::string& filePath) 
			 | 
		
		
	
		
			
			| 
				112
			 | 
			
				108
			 | 
			
			
				
				         Json::Value root; 
			 | 
		
		
	
		
			
			| 
				113
			 | 
			
				109
			 | 
			
			
				
				         reader.parse(stream, root); 
			 | 
		
		
	
		
			
			| 
				114
			 | 
			
				110
			 | 
			
			
				
				         _cryptoBusiness->setKey(root["key"].asString()); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				111
			 | 
			
			
				
				+        _defaultSocket = root["socket"].asString(); 
			 | 
		
		
	
		
			
			| 
				115
			 | 
			
				112
			 | 
			
			
				
				     } 
			 | 
		
		
	
		
			
			| 
				116
			 | 
			
				113
			 | 
			
			
				
				     return errno; 
			 | 
		
		
	
		
			
			| 
				117
			 | 
			
				114
			 | 
			
			
				
				 } 
			 |