diff options
author | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
commit | 811fed1957f284456e1455032f729e74c4fed458 (patch) | |
tree | a0cfed4f7ff52149db0ff091f8670351fadeea29 /doc/examples/bzip.cpp | |
parent | cf6319e4e663f4214a0f9e1509087a58a181910f (diff) |
Add copyright and license notes to pretty much every file that didn't have them,
including the examples and self-test code.
Most of these files had not copyright/license information at all; since a major
point of the examples is to allow users to copy and paste code that already
does something they want, an ambigious license is not good.
Diffstat (limited to 'doc/examples/bzip.cpp')
-rw-r--r-- | doc/examples/bzip.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/examples/bzip.cpp b/doc/examples/bzip.cpp index 02252fb94..c3509c4da 100644 --- a/doc/examples/bzip.cpp +++ b/doc/examples/bzip.cpp @@ -1,10 +1,10 @@ /* -An Botan example application which emulates a poorly written version of bzip2 - -Written by Jack Lloyd ([email protected]), Jun 9, 2001 - -This file is in the public domain +* Bzip2 Compression/Decompression +* (C) 2009 Jack Lloyd +* +* Distributed under the terms of the Botan license */ + #include <string> #include <cstring> #include <vector> @@ -12,6 +12,14 @@ This file is in the public domain #include <iostream> #include <botan/botan.h> +/* +* If Bzip2 isn't included, we know nothing works at compile time, but +* we wait to fail at runtime. Otherwise I would get 2-3 mails a month +* about how this was failing to compile (even with an informative +* #error message explaining the situation) because bzip2 wasn't +* included in the build. +*/ + #if defined(BOTAN_HAS_COMPRESSOR_BZIP2) #include <botan/bzip2.h> #endif |