Jeff Thompson | fa30664 | 2013-06-17 15:06:57 -0700 | [diff] [blame^] | 1 | /* -*- 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 | |
| 20 | using namespace ndn; |
| 21 | using namespace std; |
| 22 | using namespace boost; |
| 23 | |
| 24 | BOOST_AUTO_TEST_SUITE(SecurityTests) |
| 25 | |
| 26 | BOOST_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 | |
| 40 | BOOST_AUTO_TEST_SUITE_END() |