util: switch to boost::asio::basic_waitable_timer

Change-Id: I2724befc86482adf84f59063e65509a116bb1b46
Refs: #4431
diff --git a/tools/ndnsec/cert-dump.cpp b/tools/ndnsec/cert-dump.cpp
index 436b399..e0b99b4 100644
--- a/tools/ndnsec/cert-dump.cpp
+++ b/tools/ndnsec/cert-dump.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2013-2017 Regents of the University of California.
+ * Copyright (c) 2013-2018 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -22,6 +22,8 @@
 #include "ndnsec.hpp"
 #include "util.hpp"
 
+#include <boost/date_time/posix_time/posix_time_duration.hpp>
+
 namespace ndn {
 namespace ndnsec {
 
@@ -172,15 +174,15 @@
     }
     if (isRepoOut) {
       using namespace boost::asio::ip;
-      tcp::iostream request_stream;
-      request_stream.expires_from_now(boost::posix_time::milliseconds(3000));
-      request_stream.connect(repoHost, repoPort);
-      if (!request_stream) {
+      tcp::iostream requestStream;
+      requestStream.expires_from_now(boost::posix_time::seconds(3));
+      requestStream.connect(repoHost, repoPort);
+      if (!requestStream) {
         std::cerr << "fail to open the stream!" << std::endl;
         return 1;
       }
-      request_stream.write(reinterpret_cast<const char*>(certificate.wireEncode().wire()),
-                           certificate.wireEncode().size());
+      requestStream.write(reinterpret_cast<const char*>(certificate.wireEncode().wire()),
+                          certificate.wireEncode().size());
 
       return 0;
     }