35 const std::string & identifier ,
unsigned int timeout )
37 std::unique_ptr<Verifier> ptr ;
39 if( p.first.empty() || p.first ==
"exit" )
41 ptr = std::make_unique<InternalVerifier>() ;
43 else if( p.first ==
"net" )
45 ptr = std::make_unique<NetworkVerifier>( es , p.second , timeout , timeout ) ;
49 ptr = std::make_unique<ExecutableVerifier>( es ,
G::Path(p.second) ) ;
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
static Result parse(const std::string &identifier, bool allow_spam)
Parses an identifier like "/usr/bin/foo" or "net:127.0.0.1:99" or "net:/run/spamd....
static std::string check(const std::string &identifier, bool allow_spam)
Parses and checks an identifier.
static std::string check(const std::string &identifier)
Checks an identifier.
static std::unique_ptr< Verifier > newVerifier(GNet::ExceptionSink, const std::string &identifier, unsigned int timeout)
Returns a Verifier on the heap.
A Path object represents a file system path.
Result tuple for GSmtp::FactoryParser::parse().