blob: a7be8741b56eb691269f2a4cfcabbc90cc270276 [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
12#include <ndn-cpp/common.hpp>
13#include <cryptopp/asn.h>
14
15namespace ndn {
16
17namespace Asn {
18struct Error : public std::runtime_error { Error(const std::string &what) : std::runtime_error(what) {} };
19}
20
21size_t
22DEREncodeGeneralTime(CryptoPP::BufferedTransformation &bt, MillisecondsSince1970 time);
23
24void
25BERDecodeTime(CryptoPP::BufferedTransformation &bt, MillisecondsSince1970 &time);
26
27} // namespace ndn
28
29#endif // NDN_ASN_EXT_HPP
30