aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_att.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asn1/asn1_att.cpp')
-rw-r--r--src/asn1/asn1_att.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/asn1/asn1_att.cpp b/src/asn1/asn1_att.cpp
index 7c16ff3a5..c8d771e25 100644
--- a/src/asn1/asn1_att.cpp
+++ b/src/asn1/asn1_att.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* Attribute Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* Attribute
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/asn1_obj.h>
#include <botan/der_enc.h>
@@ -10,18 +12,18 @@
namespace Botan {
-/*************************************************
-* Create an Attribute *
-*************************************************/
+/*
+* Create an Attribute
+*/
Attribute::Attribute(const OID& attr_oid, const MemoryRegion<byte>& attr_value)
{
oid = attr_oid;
parameters = attr_value;
}
-/*************************************************
-* Create an Attribute *
-*************************************************/
+/*
+* Create an Attribute
+*/
Attribute::Attribute(const std::string& attr_oid,
const MemoryRegion<byte>& attr_value)
{
@@ -29,9 +31,9 @@ Attribute::Attribute(const std::string& attr_oid,
parameters = attr_value;
}
-/*************************************************
-* DER encode a Attribute *
-*************************************************/
+/*
+* DER encode a Attribute
+*/
void Attribute::encode_into(DER_Encoder& codec) const
{
codec.start_cons(SEQUENCE)
@@ -42,9 +44,9 @@ void Attribute::encode_into(DER_Encoder& codec) const
.end_cons();
}
-/*************************************************
-* Decode a BER encoded Attribute *
-*************************************************/
+/*
+* Decode a BER encoded Attribute
+*/
void Attribute::decode_from(BER_Decoder& codec)
{
codec.start_cons(SEQUENCE)