Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 3 | * Copyright (c) 2013-2017 Regents of the University of California. |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 4 | * |
| 5 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 6 | * |
| 7 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 8 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 9 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 13 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 16 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 20 | */ |
| 21 | |
| 22 | #include "pib-memory.hpp" |
| 23 | #include "pib.hpp" |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 24 | #include "../security-common.hpp" |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 25 | |
| 26 | namespace ndn { |
| 27 | namespace security { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 28 | namespace pib { |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 29 | |
Yingdi Yu | fe4733a | 2015-10-22 14:24:12 -0700 | [diff] [blame] | 30 | PibMemory::PibMemory(const std::string&) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 31 | : m_hasDefaultIdentity(false) |
| 32 | { |
| 33 | } |
| 34 | |
Yingdi Yu | fe4733a | 2015-10-22 14:24:12 -0700 | [diff] [blame] | 35 | const std::string& |
| 36 | PibMemory::getScheme() |
| 37 | { |
| 38 | static std::string scheme = "pib-memory"; |
| 39 | return scheme; |
| 40 | } |
| 41 | |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 42 | void |
| 43 | PibMemory::setTpmLocator(const std::string& tpmLocator) |
| 44 | { |
Yingdi Yu | 7b3b5e9 | 2015-08-13 19:52:35 -0700 | [diff] [blame] | 45 | m_tpmLocator = tpmLocator; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | std::string |
| 49 | PibMemory::getTpmLocator() const |
| 50 | { |
Yingdi Yu | 7b3b5e9 | 2015-08-13 19:52:35 -0700 | [diff] [blame] | 51 | return m_tpmLocator; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | bool |
| 55 | PibMemory::hasIdentity(const Name& identity) const |
| 56 | { |
| 57 | return (m_identities.count(identity) > 0); |
| 58 | } |
| 59 | |
| 60 | void |
| 61 | PibMemory::addIdentity(const Name& identity) |
| 62 | { |
| 63 | m_identities.insert(identity); |
| 64 | |
| 65 | if (!m_hasDefaultIdentity) { |
| 66 | m_defaultIdentity = identity; |
| 67 | m_hasDefaultIdentity = true; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | void |
| 72 | PibMemory::removeIdentity(const Name& identity) |
| 73 | { |
| 74 | m_identities.erase(identity); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 75 | if (identity == m_defaultIdentity) { |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 76 | m_hasDefaultIdentity = false; |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 77 | m_defaultIdentity.clear(); |
| 78 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 79 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 80 | auto keyNames = getKeysOfIdentity(identity); |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 81 | for (const Name& keyName : keyNames) { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 82 | removeKey(keyName); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 83 | } |
| 84 | } |
| 85 | |
Yingdi Yu | 7b3b5e9 | 2015-08-13 19:52:35 -0700 | [diff] [blame] | 86 | void |
| 87 | PibMemory::clearIdentities() |
| 88 | { |
| 89 | m_hasDefaultIdentity = false; |
| 90 | m_defaultIdentity.clear(); |
| 91 | m_identities.clear(); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 92 | m_defaultKeys.clear(); |
Yingdi Yu | 7b3b5e9 | 2015-08-13 19:52:35 -0700 | [diff] [blame] | 93 | m_keys.clear(); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 94 | m_defaultCerts.clear(); |
Yingdi Yu | 7b3b5e9 | 2015-08-13 19:52:35 -0700 | [diff] [blame] | 95 | m_certs.clear(); |
| 96 | } |
| 97 | |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 98 | std::set<Name> |
| 99 | PibMemory::getIdentities() const |
| 100 | { |
| 101 | return m_identities; |
| 102 | } |
| 103 | |
| 104 | void |
| 105 | PibMemory::setDefaultIdentity(const Name& identityName) |
| 106 | { |
| 107 | addIdentity(identityName); |
| 108 | m_defaultIdentity = identityName; |
| 109 | m_hasDefaultIdentity = true; |
| 110 | } |
| 111 | |
| 112 | Name |
| 113 | PibMemory::getDefaultIdentity() const |
| 114 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 115 | if (m_hasDefaultIdentity) { |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 116 | return m_defaultIdentity; |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 117 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 118 | |
Spyridon Mastorakis | 0d2ed2e | 2015-07-27 19:09:12 -0700 | [diff] [blame] | 119 | BOOST_THROW_EXCEPTION(Pib::Error("No default identity")); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | bool |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 123 | PibMemory::hasKey(const Name& keyName) const |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 124 | { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 125 | return (m_keys.count(keyName) > 0); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 126 | } |
| 127 | |
| 128 | void |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 129 | PibMemory::addKey(const Name& identity, const Name& keyName, |
| 130 | const uint8_t* key, size_t keyLen) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 131 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 132 | addIdentity(identity); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 133 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 134 | m_keys[keyName] = Buffer(key, keyLen); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 135 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 136 | if (m_defaultKeys.count(identity) == 0) { |
| 137 | m_defaultKeys[identity] = keyName; |
| 138 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | void |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 142 | PibMemory::removeKey(const Name& keyName) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 143 | { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 144 | Name identity = v2::extractIdentityFromKeyName(keyName); |
| 145 | |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 146 | m_keys.erase(keyName); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 147 | m_defaultKeys.erase(identity); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 148 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 149 | auto certNames = getCertificatesOfKey(keyName); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 150 | for (const auto& certName : certNames) { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 151 | removeCertificate(certName); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 152 | } |
| 153 | } |
| 154 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 155 | Buffer |
| 156 | PibMemory::getKeyBits(const Name& keyName) const |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 157 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 158 | if (!hasKey(keyName)) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 159 | BOOST_THROW_EXCEPTION(Pib::Error("Key `" + keyName.toUri() + "` not found")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 160 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 161 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 162 | auto key = m_keys.find(keyName); |
| 163 | BOOST_ASSERT(key != m_keys.end()); |
| 164 | return key->second; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 165 | } |
| 166 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 167 | std::set<Name> |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 168 | PibMemory::getKeysOfIdentity(const Name& identity) const |
| 169 | { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 170 | std::set<Name> ids; |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 171 | for (const auto& key : m_keys) { |
| 172 | if (identity == v2::extractIdentityFromKeyName(key.first)) { |
| 173 | ids.insert(key.first); |
| 174 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 175 | } |
| 176 | return ids; |
| 177 | } |
| 178 | |
| 179 | void |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 180 | PibMemory::setDefaultKeyOfIdentity(const Name& identity, const Name& keyName) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 181 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 182 | if (!hasKey(keyName)) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 183 | BOOST_THROW_EXCEPTION(Pib::Error("Key `" + keyName.toUri() + "` not found")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 184 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 185 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 186 | m_defaultKeys[identity] = keyName; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 187 | } |
| 188 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 189 | Name |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 190 | PibMemory::getDefaultKeyOfIdentity(const Name& identity) const |
| 191 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 192 | auto defaultKey = m_defaultKeys.find(identity); |
| 193 | if (defaultKey == m_defaultKeys.end()) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 194 | BOOST_THROW_EXCEPTION(Pib::Error("No default key for identity `" + identity.toUri() + "`")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 195 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 196 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 197 | return defaultKey->second; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 198 | } |
| 199 | |
| 200 | bool |
| 201 | PibMemory::hasCertificate(const Name& certName) const |
| 202 | { |
| 203 | return (m_certs.count(certName) > 0); |
| 204 | } |
| 205 | |
| 206 | void |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 207 | PibMemory::addCertificate(const v2::Certificate& certificate) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 208 | { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 209 | Name certName = certificate.getName(); |
| 210 | Name keyName = certificate.getKeyName(); |
| 211 | Name identity = certificate.getIdentity(); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 212 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 213 | addKey(identity, keyName, certificate.getContent().value(), certificate.getContent().value_size()); |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 214 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 215 | m_certs[certName] = certificate; |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 216 | if (m_defaultCerts.count(keyName) == 0) { |
| 217 | m_defaultCerts[keyName] = certName; |
| 218 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 219 | } |
| 220 | |
| 221 | void |
| 222 | PibMemory::removeCertificate(const Name& certName) |
| 223 | { |
| 224 | m_certs.erase(certName); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 225 | auto defaultCert = m_defaultCerts.find(v2::extractKeyNameFromCertName(certName)); |
| 226 | if (defaultCert != m_defaultCerts.end() && defaultCert->second == certName) { |
| 227 | m_defaultCerts.erase(defaultCert); |
| 228 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 229 | } |
| 230 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 231 | v2::Certificate |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 232 | PibMemory::getCertificate(const Name& certName) const |
| 233 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 234 | if (!hasCertificate(certName)) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 235 | BOOST_THROW_EXCEPTION(Pib::Error("Certificate `" + certName.toUri() + "` does not exist")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 236 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 237 | |
| 238 | auto it = m_certs.find(certName); |
| 239 | return it->second; |
| 240 | } |
| 241 | |
| 242 | std::set<Name> |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 243 | PibMemory::getCertificatesOfKey(const Name& keyName) const |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 244 | { |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 245 | std::set<Name> certNames; |
| 246 | for (const auto& it : m_certs) { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 247 | if (v2::extractKeyNameFromCertName(it.second.getName()) == keyName) { |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 248 | certNames.insert(it.first); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 249 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 250 | } |
| 251 | return certNames; |
| 252 | } |
| 253 | |
| 254 | void |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 255 | PibMemory::setDefaultCertificateOfKey(const Name& keyName, const Name& certName) |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 256 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 257 | if (!hasCertificate(certName)) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 258 | BOOST_THROW_EXCEPTION(Pib::Error("Certificate `" + certName.toUri() + "` does not exist")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 259 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 260 | |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 261 | m_defaultCerts[keyName] = certName; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 262 | } |
| 263 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 264 | v2::Certificate |
| 265 | PibMemory::getDefaultCertificateOfKey(const Name& keyName) const |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 266 | { |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 267 | auto it = m_defaultCerts.find(keyName); |
| 268 | if (it == m_defaultCerts.end()) { |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 269 | BOOST_THROW_EXCEPTION(Pib::Error("No default certificate for key `" + keyName.toUri() + "`")); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 270 | } |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 271 | |
| 272 | auto certIt = m_certs.find(it->second); |
Yingdi Yu | 0399768 | 2015-11-23 16:41:38 -0800 | [diff] [blame] | 273 | BOOST_ASSERT(certIt != m_certs.end()); |
| 274 | return certIt->second; |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 275 | } |
| 276 | |
Yingdi Yu | 6ee2d36 | 2015-07-16 21:48:05 -0700 | [diff] [blame] | 277 | } // namespace pib |
Yingdi Yu | 3bf91f5 | 2015-06-12 19:39:40 -0700 | [diff] [blame] | 278 | } // namespace security |
| 279 | } // namespace ndn |