blob: 0d64d4037289861dc952fb60f6610e4f4471f34b [file] [log] [blame]
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -08002/**
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07003 * Copyright (c) 2013-2014, Regents of the University of California.
4 * All rights reserved.
5 *
6 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
7 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
8 *
9 * This file licensed under New BSD License. See COPYING for detailed information about
10 * ndn-cxx library copyright, permissions, and redistribution restrictions.
11 *
12 * @author: Alexander Afanasyev <http://lasr.cs.ucla.edu/afanasyev/index.html>
13 * @author: Yingdi Yu <http://irl.cs.ucla.edu/~yingdi/>
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080014 */
15
16#ifndef NDN_ASN_EXT_HPP
17#define NDN_ASN_EXT_HPP
18
Alexander Afanasyev19508852014-01-29 01:01:51 -080019#include "../../common.hpp"
Junxiao Shi482ccc52014-03-31 13:05:24 -070020#include "../../security/cryptopp.hpp"
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080021
Alexander Afanasyev258ec2b2014-05-14 16:15:37 -070022#include "../../util/time.hpp"
23
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080024namespace ndn {
25
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080026size_t
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070027DEREncodeGeneralTime(CryptoPP::BufferedTransformation& bt,
28 const time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080029
30void
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070031BERDecodeTime(CryptoPP::BufferedTransformation& bt,
32 time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080033
34} // namespace ndn
35
36#endif // NDN_ASN_EXT_HPP