aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 22:42:40 +0000
committerlloyd <[email protected]>2008-09-28 22:42:40 +0000
commit60fac1a24709d8854489eaf27c2f5b32de56dd6f (patch)
treed30ece3f0e1ae14e78520bde3c5b0aaf7b8d505f /src
parentc32a8e6c7ecf97fc9423e6a967ce3d98b0689404 (diff)
Put OpenPGP codec routines into codec/openpgp module
Diffstat (limited to 'src')
-rw-r--r--src/codec/openpgp/modinfo.txt8
-rw-r--r--src/codec/openpgp/openpgp.cpp (renamed from src/openpgp.cpp)0
-rw-r--r--src/codec/openpgp/openpgp.h32
3 files changed, 40 insertions, 0 deletions
diff --git a/src/codec/openpgp/modinfo.txt b/src/codec/openpgp/modinfo.txt
new file mode 100644
index 000000000..32a18fa4f
--- /dev/null
+++ b/src/codec/openpgp/modinfo.txt
@@ -0,0 +1,8 @@
+realname "OpenPGP Codec"
+
+define OPENPGP_CODEC
+
+<add>
+openpgp.cpp
+openpgp.h
+</add>
diff --git a/src/openpgp.cpp b/src/codec/openpgp/openpgp.cpp
index 2a84b037e..2a84b037e 100644
--- a/src/openpgp.cpp
+++ b/src/codec/openpgp/openpgp.cpp
diff --git a/src/codec/openpgp/openpgp.h b/src/codec/openpgp/openpgp.h
new file mode 100644
index 000000000..1a078a630
--- /dev/null
+++ b/src/codec/openpgp/openpgp.h
@@ -0,0 +1,32 @@
+/*************************************************
+* OpenPGP Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_OPENPGP_H__
+#define BOTAN_OPENPGP_H__
+
+#include <botan/data_src.h>
+#include <string>
+#include <map>
+
+namespace Botan {
+
+namespace OpenPGP {
+
+/*************************************************
+* OpenPGP Base64 encoding/decoding *
+*************************************************/
+BOTAN_DLL std::string encode(const byte[], u32bit, const std::string&,
+ const std::map<std::string, std::string>&);
+BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&,
+ std::map<std::string, std::string>&);
+
+BOTAN_DLL std::string encode(const byte[], u32bit, const std::string&);
+BOTAN_DLL SecureVector<byte> decode(DataSource&, std::string&);
+
+}
+
+}
+
+#endif