src: Improving consistency and correcting code style
As of this commit, all data structures can be directly constructed from
wire format.
This commit excludes full correction of code style in security/ and
tools/ndnsec*, which will be part of a different commit.
Change-Id: I121ac1f81948bc7468990df52cdefeb2988d91a1
Refs: #1403
diff --git a/src/security/sec-tpm-memory.hpp b/src/security/sec-tpm-memory.hpp
index 2c8cc2b..605d7c8 100644
--- a/src/security/sec-tpm-memory.hpp
+++ b/src/security/sec-tpm-memory.hpp
@@ -21,7 +21,15 @@
*/
class SecTpmMemory : public SecTpm {
public:
- struct Error : public SecTpm::Error { Error(const std::string &what) : SecTpm::Error(what) {} };
+ class Error : public SecTpm::Error
+ {
+ public:
+ explicit
+ Error(const std::string& what)
+ : SecTpm::Error(what)
+ {
+ }
+ };
virtual
~SecTpmMemory();
@@ -69,7 +77,7 @@
getPublicKeyFromTpm(const Name& keyName);
virtual void
- deleteKeyPairInTpm(const Name &keyName);
+ deleteKeyPairInTpm(const Name& keyName);
virtual Block
signInTpm(const uint8_t* data, size_t dataLength, const Name& keyName, DigestAlgorithm digestAlgorithm);