blob: afd33dcee2c6224588fd2c25dd61b7a7e741cdbc [file] [log] [blame]
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -08001/**
2 * Copyright (C) 2013 Regents of the University of California.
3 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
4 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
5 * @author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
6 * See COPYING for copyright and distribution information.
7 */
8
9#ifndef NDN_ASN_EXT_HPP
10#define NDN_ASN_EXT_HPP
11
Alexander Afanasyev19508852014-01-29 01:01:51 -080012#include "../../common.hpp"
Junxiao Shi482ccc52014-03-31 13:05:24 -070013#include "../../security/cryptopp.hpp"
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080014
15namespace ndn {
16
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080017size_t
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070018DEREncodeGeneralTime(CryptoPP::BufferedTransformation& bt,
19 const time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080020
21void
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070022BERDecodeTime(CryptoPP::BufferedTransformation& bt,
23 time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080024
25} // namespace ndn
26
27#endif // NDN_ASN_EXT_HPP