45 std::string programName(argv[0]);
46 std::string configFileName(
"nlsr.conf");
49 while ((opt = getopt(argc, argv,
"hf:V")) != -1) {
55 configFileName = optarg;
58 std::cout << NLSR_VERSION_BUILD_STRING << std::endl;
66 ndn::KeyChain keyChain;
67 ndn::Face face(
nullptr, keyChain);
72 std::cerr <<
"Error in configuration file processing" << std::endl;
84 certStore.
insert(*certificate);
90 catch (
const std::exception& e) {
91 std::cerr <<
"FATAL: " << boost::diagnostic_information(e) << std::endl;
int main(int argc, char **argv)
static void printUsage(std::ostream &os, const std::string &programName)