diff options
author | lloyd <[email protected]> | 2008-09-28 22:50:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 22:50:07 +0000 |
commit | 0fbff7a11ebea1609eae50d0709e3f08dab98838 (patch) | |
tree | 08a043817bbfb3d24eee1e8f3ba32757bf1411b2 /src | |
parent | 34aa16d924dd350611bfd77c0ac790c0b80b98fb (diff) |
PEM codec module
Diffstat (limited to 'src')
-rw-r--r-- | src/algo_filt.cpp (renamed from src/filters.cpp) | 0 | ||||
-rw-r--r-- | src/codec/openpgp/modinfo.txt | 4 | ||||
-rw-r--r-- | src/codec/pem/pem.cpp (renamed from src/pem.cpp) | 0 | ||||
-rw-r--r-- | src/codec/pem/pem.h | 33 |
4 files changed, 37 insertions, 0 deletions
diff --git a/src/filters.cpp b/src/algo_filt.cpp index 2c8402601..2c8402601 100644 --- a/src/filters.cpp +++ b/src/algo_filt.cpp diff --git a/src/codec/openpgp/modinfo.txt b/src/codec/openpgp/modinfo.txt index 32a18fa4f..4fd298104 100644 --- a/src/codec/openpgp/modinfo.txt +++ b/src/codec/openpgp/modinfo.txt @@ -6,3 +6,7 @@ define OPENPGP_CODEC openpgp.cpp openpgp.h </add> + +<requires> +base64 +</requires> diff --git a/src/pem.cpp b/src/codec/pem/pem.cpp index fb0be6fd5..fb0be6fd5 100644 --- a/src/pem.cpp +++ b/src/codec/pem/pem.cpp diff --git a/src/codec/pem/pem.h b/src/codec/pem/pem.h new file mode 100644 index 000000000..e9f14ddc2 --- /dev/null +++ b/src/codec/pem/pem.h @@ -0,0 +1,33 @@ +/************************************************* +* PEM Encoding/Decoding Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_PEM_H__ +#define BOTAN_PEM_H__ + +#include <botan/data_src.h> + +namespace Botan { + +namespace PEM_Code { + +/************************************************* +* PEM Encoding/Decoding * +*************************************************/ +BOTAN_DLL std::string encode(const byte[], u32bit, + const std::string&, u32bit = 64); +BOTAN_DLL std::string encode(const MemoryRegion<byte>&, + const std::string&, u32bit = 64); + +BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&); +BOTAN_DLL SecureVector<byte> decode_check_label(DataSource&, + const std::string&); +BOTAN_DLL bool matches(DataSource&, const std::string& = "", + u32bit search_range = 4096); + +} + +} + +#endif |