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/certificate-subject-description.cpp b/src/security/certificate-subject-description.cpp
index fc6478f..44cd8c5 100644
--- a/src/security/certificate-subject-description.cpp
+++ b/src/security/certificate-subject-description.cpp
@@ -18,17 +18,17 @@
namespace ndn {
void
-CertificateSubjectDescription::encode(CryptoPP::BufferedTransformation &out) const
+CertificateSubjectDescription::encode(CryptoPP::BufferedTransformation& out) const
{
// RelativeDistinguishedName ::=
// SET OF AttributeTypeAndValue
- //
+ //
// AttributeTypeAndValue ::= SEQUENCE {
// type AttributeType,
// value AttributeValue }
- //
+ //
// AttributeType ::= OBJECT IDENTIFIER
- //
+ //
// AttributeValue ::= ANY DEFINED BY AttributeType
DERSequenceEncoder attributeTypeAndValue(out);
{
@@ -39,17 +39,17 @@
}
void
-CertificateSubjectDescription::decode(CryptoPP::BufferedTransformation &in)
+CertificateSubjectDescription::decode(CryptoPP::BufferedTransformation& in)
{
// RelativeDistinguishedName ::=
// SET OF AttributeTypeAndValue
- //
+ //
// AttributeTypeAndValue ::= SEQUENCE {
// type AttributeType,
// value AttributeValue }
- //
+ //
// AttributeType ::= OBJECT IDENTIFIER
- //
+ //
// AttributeValue ::= ANY DEFINED BY AttributeType
BERSequenceDecoder attributeTypeAndValue(in);