aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_int.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-30 18:27:18 +0000
committerlloyd <[email protected]>2009-03-30 18:27:18 +0000
commit96d6eb6f29c55e16a37cf11899547886f735b065 (patch)
tree9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/asn1/asn1_int.h
parent3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff)
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
Diffstat (limited to 'src/asn1/asn1_int.h')
-rw-r--r--src/asn1/asn1_int.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/asn1/asn1_int.h b/src/asn1/asn1_int.h
index 3e0562b9c..619f45b53 100644
--- a/src/asn1/asn1_int.h
+++ b/src/asn1/asn1_int.h
@@ -1,7 +1,9 @@
-/*************************************************
-* ASN.1 Internals Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* ASN.1 Internals
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#ifndef BOTAN_ASN1_H__
#define BOTAN_ASN1_H__
@@ -11,9 +13,9 @@
namespace Botan {
-/*************************************************
-* ASN.1 Type and Class Tags *
-*************************************************/
+/*
+* ASN.1 Type and Class Tags
+*/
enum ASN1_Tag {
UNIVERSAL = 0x00,
APPLICATION = 0x40,
@@ -48,9 +50,9 @@ enum ASN1_Tag {
DIRECTORY_STRING = 0xFF01
};
-/*************************************************
-* Basic ASN.1 Object Interface *
-*************************************************/
+/*
+* Basic ASN.1 Object Interface
+*/
class BOTAN_DLL ASN1_Object
{
public:
@@ -59,9 +61,9 @@ class BOTAN_DLL ASN1_Object
virtual ~ASN1_Object() {}
};
-/*************************************************
-* BER Encoded Object *
-*************************************************/
+/*
+* BER Encoded Object
+*/
class BOTAN_DLL BER_Object
{
public:
@@ -71,9 +73,9 @@ class BOTAN_DLL BER_Object
SecureVector<byte> value;
};
-/*************************************************
-* ASN.1 Utility Functions *
-*************************************************/
+/*
+* ASN.1 Utility Functions
+*/
class DataSource;
namespace ASN1 {
@@ -84,17 +86,17 @@ bool maybe_BER(DataSource&);
}
-/*************************************************
-* General BER Decoding Error Exception *
-*************************************************/
+/*
+* General BER Decoding Error Exception
+*/
struct BER_Decoding_Error : public Decoding_Error
{
BER_Decoding_Error(const std::string&);
};
-/*************************************************
-* Exception For Incorrect BER Taggings *
-*************************************************/
+/*
+* Exception For Incorrect BER Taggings
+*/
struct BER_Bad_Tag : public BER_Decoding_Error
{
BER_Bad_Tag(const std::string&, ASN1_Tag);