aboutsummaryrefslogtreecommitdiffstats
path: root/misc/python/src/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'misc/python/src/core.cpp')
-rw-r--r--misc/python/src/core.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/python/src/core.cpp b/misc/python/src/core.cpp
index 07252e720..5669a5b83 100644
--- a/misc/python/src/core.cpp
+++ b/misc/python/src/core.cpp
@@ -3,14 +3,15 @@
* (C) 1999-2006 The Botan Project *
*************************************************/
-#include <botan/init.h>
-#include <botan/symkey.h>
+#include <botan/botan.h>
using namespace Botan;
#include <boost/python.hpp>
namespace python = boost::python;
+extern void export_block_ciphers();
extern void export_filters();
+extern void export_pk();
extern void export_x509();
BOOST_PYTHON_MODULE(_botan)
@@ -22,12 +23,14 @@ BOOST_PYTHON_MODULE(_botan)
.def(python::init< python::optional<std::string> >())
.def(python::init< u32bit >())
.def("__str__", &OctetString::as_string)
- .add_property("length", &OctetString::length);
+ .def("__len__", &OctetString::length);
python::enum_<Cipher_Dir>("cipher_dir")
.value("encryption", ENCRYPTION)
.value("decryption", DECRYPTION);
+ export_block_ciphers();
export_filters();
+ export_pk();
export_x509();
}