aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/tpm/tpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prov/tpm/tpm.h')
-rw-r--r--src/lib/prov/tpm/tpm.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/prov/tpm/tpm.h b/src/lib/prov/tpm/tpm.h
index 2e67a4a5b..fb4f027d5 100644
--- a/src/lib/prov/tpm/tpm.h
+++ b/src/lib/prov/tpm/tpm.h
@@ -14,13 +14,14 @@
#include <botan/bigint.h>
#include <botan/rng.h>
#include <botan/uuid.h>
+#include <functional>
//TODO remove this
#include <tss/tspi.h>
namespace Botan {
-class TPM_Error : public Exception
+class TPM_Error final : public Exception
{
public:
TPM_Error(const std::string& err) : Exception(err) {}
@@ -36,7 +37,7 @@ class TPM_Error : public Exception
*
* TODO: handling owner password?
*/
-class BOTAN_PUBLIC_API(2,0) TPM_Context
+class BOTAN_PUBLIC_API(2,0) TPM_Context final
{
public:
/**
@@ -72,7 +73,7 @@ class BOTAN_PUBLIC_API(2,0) TPM_Context
TSS_HTPM m_tpm;
};
-class BOTAN_PUBLIC_API(2,0) TPM_RNG : public Hardware_RNG
+class BOTAN_PUBLIC_API(2,0) TPM_RNG final : public Hardware_RNG
{
public:
TPM_RNG(TPM_Context& ctx) : m_ctx(ctx) {}
@@ -103,7 +104,7 @@ enum class TPM_Storage_Type { User, System };
* Also implements the public interface, but does not have usable
* TODO: derive from RSA_PublicKey???
*/
-class BOTAN_PUBLIC_API(2,0) TPM_PrivateKey : public Private_Key
+class BOTAN_PUBLIC_API(2,0) TPM_PrivateKey final : public Private_Key
{
public:
// TODO: key import?