blob: bbfe73326178f2c5a2b2c0bf6b4575cffa3f0803 [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
22namespace ndn {
23
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080024size_t
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070025DEREncodeGeneralTime(CryptoPP::BufferedTransformation& bt,
26 const time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080027
28void
Alexander Afanasyevfdbfc6d2014-04-14 15:12:11 -070029BERDecodeTime(CryptoPP::BufferedTransformation& bt,
30 time::system_clock::TimePoint& time);
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080031
32} // namespace ndn
33
34#endif // NDN_ASN_EXT_HPP