blob: e66b672d22f960b5f21491db5b3aa6a2db227ff6 [file] [log] [blame]
Jeff Thompson958bf9b2013-10-12 17:20:51 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/**
3 * Copyright (C) 2013 Regents of the University of California.
4 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
5 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
6 * See COPYING for copyright and distribution information.
7 */
8
Jeff Thompson84cfe1d2013-10-15 17:59:01 -07009#if 1 // TODO: Remove this when we don't throw "not implemented".
10#include <stdexcept>
11#endif
Jeff Thompson958bf9b2013-10-12 17:20:51 -070012#include "../../encoding/der/der.hpp"
13#include <ndn-cpp/security/certificate/certificate-subject-description.hpp>
14
15using namespace std;
16using namespace ndn::ptr_lib;
17
18namespace ndn {
19
20shared_ptr<der::DerNode>
21CertificateSubjectDescription::toDer()
22{
Jeff Thompson84cfe1d2013-10-15 17:59:01 -070023#if 0 // Include again when der is defined.
Jeff Thompson958bf9b2013-10-12 17:20:51 -070024 shared_ptr<der::DerSequence> root(new der::DerSequence());
25
26 shared_ptr<der::DerOid> oid(new der::DerOid(oid_));
27 shared_ptr<der::DerPrintableString> value(new der::DerPrintableString(value_));
28
29 root->addChild(oid);
30 root->addChild(value);
31
32 return root;
Jeff Thompson84cfe1d2013-10-15 17:59:01 -070033#else
34 throw std::runtime_error("not implemented");
35#endif
Jeff Thompson958bf9b2013-10-12 17:20:51 -070036}
37
38}