diff options
author | lloyd <[email protected]> | 2008-09-28 16:04:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 16:04:33 +0000 |
commit | 4a04f965bd43bd591c8973ed025dc312823f1607 (patch) | |
tree | 30016b6e1ff6188dbcc0e183a7ae53b60051c960 /doc | |
parent | 6edc83ddef93bddf70f1b259d80b104bf14524c2 (diff) |
Modularize the Adler32 checksum in checksums/adler32
Add a new option --disable-modules which allows for disabling any
set of modules that normally would be autoloaded.
Rename the Botan feature test macros from BOTAN_EXT_BLAH to BOTAN_HAS_BLAH,
which will be much more sensible especially when everything is done in this
fashion (eg, BOTAN_HAS_BLOWFISH or BOTAN_HAS_RSA, etc)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/building.tex | 4 | ||||
-rw-r--r-- | doc/examples/bzip.cpp | 4 | ||||
-rw-r--r-- | doc/examples/decrypt.cpp | 4 | ||||
-rw-r--r-- | doc/examples/encrypt.cpp | 4 | ||||
-rw-r--r-- | doc/examples/hash_fd.cpp | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/doc/building.tex b/doc/building.tex index 2cb1d0723..3a378947e 100644 --- a/doc/building.tex +++ b/doc/building.tex @@ -190,8 +190,8 @@ overwritten every time the configure script is run (and does not exist until after you run the script for the first time). Also included in \filename{config.h} are macros which are defined if one or -more extensions are available. All of them begin with \verb|BOTAN_EXT_|. For -example, if \verb|BOTAN_EXT_COMPRESSOR_BZIP2| is defined, then an application +more extensions are available. All of them begin with \verb|BOTAN_HAS_|. For +example, if \verb|BOTAN_HAS_COMPRESSOR_BZIP2| is defined, then an application using Botan can include \filename{<botan/bzip2.h>} and use the Bzip2 filters. \macro{BOTAN\_MP\_WORD\_BITS}: This macro controls the size of the diff --git a/doc/examples/bzip.cpp b/doc/examples/bzip.cpp index a16d4f8fe..1abe4d309 100644 --- a/doc/examples/bzip.cpp +++ b/doc/examples/bzip.cpp @@ -12,7 +12,7 @@ This file is in the public domain #include <iostream> #include <botan/botan.h> -#if defined(BOTAN_EXT_COMPRESSOR_BZIP2) +#if defined(BOTAN_HAS_COMPRESSOR_BZIP2) #include <botan/bzip2.h> #endif @@ -51,7 +51,7 @@ int main(int argc, char* argv[]) try { Botan::Filter* bzip = 0; -#ifdef BOTAN_EXT_COMPRESSOR_BZIP2 +#ifdef BOTAN_HAS_COMPRESSOR_BZIP2 if(decompress) bzip = new Botan::Bzip_Decompression(small); else diff --git a/doc/examples/decrypt.cpp b/doc/examples/decrypt.cpp index e0c4a1f48..7018e5f49 100644 --- a/doc/examples/decrypt.cpp +++ b/doc/examples/decrypt.cpp @@ -18,7 +18,7 @@ This file is in the public domain #include <botan/botan.h> -#if defined(BOTAN_EXT_COMPRESSOR_ZLIB) +#if defined(BOTAN_HAS_COMPRESSOR_ZLIB) #include <botan/zlib.h> #endif @@ -110,7 +110,7 @@ int main(int argc, char* argv[]) Pipe pipe(new Base64_Decoder, get_cipher(algo + "/CBC", bc_key, iv, DECRYPTION), -#ifdef BOTAN_EXT_COMPRESSOR_ZLIB +#ifdef BOTAN_HAS_COMPRESSOR_ZLIB new Zlib_Decompression, #endif new Fork( diff --git a/doc/examples/encrypt.cpp b/doc/examples/encrypt.cpp index 7c8649004..959461b63 100644 --- a/doc/examples/encrypt.cpp +++ b/doc/examples/encrypt.cpp @@ -26,7 +26,7 @@ This file is in the public domain #include <botan/botan.h> -#if defined(BOTAN_EXT_COMPRESSOR_ZLIB) +#if defined(BOTAN_HAS_COMPRESSOR_ZLIB) #include <botan/zlib.h> #endif @@ -140,7 +140,7 @@ int main(int argc, char* argv[]) new Base64_Encoder ), new Chain( -#ifdef BOTAN_EXT_COMPRESSOR_ZLIB +#ifdef BOTAN_HAS_COMPRESSOR_ZLIB new Zlib_Compression, #endif get_cipher(algo + "/CBC", bc_key, iv, ENCRYPTION), diff --git a/doc/examples/hash_fd.cpp b/doc/examples/hash_fd.cpp index d6487095a..1deed6988 100644 --- a/doc/examples/hash_fd.cpp +++ b/doc/examples/hash_fd.cpp @@ -18,7 +18,7 @@ I guess any POSIX.1 compliant OS (in theory). #include <iostream> #include <botan/botan.h> -#if !defined(BOTAN_EXT_PIPE_UNIXFD_IO) +#if !defined(BOTAN_HAS_PIPE_UNIXFD_IO) #error "You didn't compile the pipe_unixfd module into Botan" #endif |