blob: ec8415ce9cd3ae540098e331096afdc5f86453b4 [file] [log] [blame]
Jeff Thompsonfa306642013-06-17 15:06:57 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 * Zhenkai Zhu
6 *
7 * BSD license, See the LICENSE file for more information
8 *
9 * Author: Zhenkai Zhu <zhenkai@cs.ucla.edu>
10 * Alexander Afanasyev <alexander.afanasyev@ucla.edu>
11 */
12
13// #include "platforms/osx/keychain-osx.h"
14#include "ndn-cpp/error.h"
15
16#include <boost/test/unit_test.hpp>
17
18#include <fstream>
19
20using namespace ndn;
21using namespace std;
22using namespace boost;
23
24BOOST_AUTO_TEST_SUITE(SecurityTests)
25
26BOOST_AUTO_TEST_CASE (Basic)
27{
28 // Ptr<Keychain> keychain;
29 // BOOST_CHECK_NO_THROW (keychain = Ptr<keychain::OSX>::Create ());
30
31 // Name keyName ("/my/private/key1");
32 // keychain->generateKeyPair (keyName);
33 // // keychain->deleteKeyPair (keyName);
34
35 // Ptr<Blob> key = keychain->getPublicKey (keyName);
36 // ofstream f ("out.pub");
37 // f.write (key->buf (), key->size ());
38}
39
40BOOST_AUTO_TEST_SUITE_END()