all: rename Tlv namespace to tlv for consistency
This commit renames the Tlv namespace defined in
tlv.hpp to tlv to be more consistent with tlv::security
and tlv::nfd. A Tlv namespace alias is provided for
backwards compatibility.
Change-Id: I21278d6a077afe7776802c3296997d4c1c44c6c6
diff --git a/src/signature.hpp b/src/signature.hpp
index c2cb8c2..9d7749b 100644
--- a/src/signature.hpp
+++ b/src/signature.hpp
@@ -33,21 +33,21 @@
class Signature
{
public:
- class Error : public Tlv::Error
+ class Error : public tlv::Error
{
public:
explicit
Error(const std::string& what)
- : Tlv::Error(what)
+ : tlv::Error(what)
{
}
};
- /// @deprecated use Tlv::SignatureTypeValue instead.
+ /// @deprecated use tlv::SignatureTypeValue instead.
enum {
- Sha256 = Tlv::DigestSha256,
- Sha256WithRsa = Tlv::SignatureSha256WithRsa,
- Sha256WithEcdsa = Tlv::SignatureSha256WithEcdsa
+ Sha256 = tlv::DigestSha256,
+ Sha256WithRsa = tlv::SignatureSha256WithRsa,
+ Sha256WithEcdsa = tlv::SignatureSha256WithEcdsa
};
Signature()
@@ -75,7 +75,7 @@
/**
* @brief Set SignatureInfo from a block
*
- * @throws Tlv::Error if supplied block is not formatted correctly
+ * @throws tlv::Error if supplied block is not formatted correctly
*/
void
setInfo(const Block& info);