security: IdentityCertificate sets default FreshnessPeriod to 1 hour
refs #2872
Change-Id: Ib2af1a1c8a5bf99310132f55c0f8b5d80d7a2015
diff --git a/src/security/identity-certificate.cpp b/src/security/identity-certificate.cpp
index 7ec06f9..a80684e 100644
--- a/src/security/identity-certificate.cpp
+++ b/src/security/identity-certificate.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2014 Regents of the University of California.
+ * Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -17,8 +17,6 @@
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
- *
- * @author Yingdi Yu <http://irl.cs.ucla.edu/~yingdi/>
*/
#include "common.hpp"
@@ -37,6 +35,7 @@
IdentityCertificate::IdentityCertificate()
{
+ this->setFreshnessPeriod(time::hours(1));
}
IdentityCertificate::IdentityCertificate(const Data& data)