aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/asn1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/asn1.cpp')
-rw-r--r--doc/examples/asn1.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/examples/asn1.cpp b/doc/examples/asn1.cpp
index 95757ec19..b0a6aa104 100644
--- a/doc/examples/asn1.cpp
+++ b/doc/examples/asn1.cpp
@@ -1,4 +1,10 @@
/*
+* (C) 2009 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+/*
A simple ASN.1 parser, similiar to 'dumpasn1' or 'openssl asn1parse', though
without some of the bells and whistles of those. Primarily used for testing
the BER decoder. The output format is modeled loosely on 'asn1parse -i'
@@ -14,12 +20,8 @@
- Nov 25: Much improved BIT STRING output
Can deal with non-constructed taggings
Can produce UTF-8 output
-
- This file is in the public domain.
*/
-/*******************************************************************/
-
// Set this if your terminal understands UTF-8; otherwise output is in Latin-1
#define UTF8_TERMINAL 1
@@ -30,8 +32,6 @@
*/
#define INITIAL_LEVEL 0
-/*******************************************************************/
-
#include <botan/botan.h>
#include <botan/bigint.h>
#include <botan/der_enc.h>
@@ -56,7 +56,7 @@ int main(int argc, char* argv[])
printf("Usage: %s <file>\n", argv[0]);
return 1;
}
-
+
Botan::LibraryInitializer init;
try {