aboutsummaryrefslogtreecommitdiffstats
path: root/include/pem.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-18 18:33:19 +0000
committerlloyd <[email protected]>2006-05-18 18:33:19 +0000
commita2c99d3270eb73ef2db5704fc54356c6b75096f8 (patch)
treead3d6c4fcc8dd0f403f8105598943616246fe172 /include/pem.h
Initial checkin1.5.6
Diffstat (limited to 'include/pem.h')
-rw-r--r--include/pem.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/pem.h b/include/pem.h
new file mode 100644
index 000000000..08aa1c0cf
--- /dev/null
+++ b/include/pem.h
@@ -0,0 +1,29 @@
+/*************************************************
+* PEM Encoding/Decoding Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_PEM_H__
+#define BOTAN_PEM_H__
+
+#include <botan/data_src.h>
+
+namespace Botan {
+
+namespace PEM_Code {
+
+/*************************************************
+* PEM Encoding/Decoding *
+*************************************************/
+std::string encode(const byte[], u32bit, const std::string&);
+std::string encode(const MemoryRegion<byte>&, const std::string&);
+
+SecureVector<byte> decode(DataSource&, std::string&);
+SecureVector<byte> decode_check_label(DataSource&, const std::string&);
+bool matches(DataSource&, const std::string& = "");
+
+}
+
+}
+
+#endif