Use PendingInterestHandle and ScopedRegisteredPrefixHandle
Refs: #3919, #4316
Change-Id: I1cc5dcda07ae50e5c1afa067d1a00227f71c2233
diff --git a/src/access-manager.hpp b/src/access-manager.hpp
index d2a6f74..3491955 100644
--- a/src/access-manager.hpp
+++ b/src/access-manager.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2018, Regents of the University of California
+/*
+ * Copyright (c) 2014-2019, Regents of the University of California
*
* NAC library is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -70,8 +70,6 @@
AccessManager(const Identity& identity, const Name& dataset,
KeyChain& keyChain, Face& face);
- ~AccessManager();
-
/**
* @brief Authorize a member identified by its certificate @p memberCert to decrypt data
* under the policy
@@ -131,8 +129,8 @@
Face& m_face;
InMemoryStoragePersistent m_ims; // for KEK and KDKs
- const RegisteredPrefixId* m_kekRegId;
- const RegisteredPrefixId* m_kdkRegId;
+ ScopedRegisteredPrefixHandle m_kekReg;
+ ScopedRegisteredPrefixHandle m_kdkReg;
};
} // namespace nac