|
|
@ -2,14 +2,13 @@ |
|
|
|
#include <boost/locale.hpp> |
|
|
|
#include <string> |
|
|
|
#include <sstream> |
|
|
|
#include <pEp/pEpEngine.h> |
|
|
|
#include "Identity.hh" |
|
|
|
#include "Message.hh" |
|
|
|
#include "basic_api.hh" |
|
|
|
|
|
|
|
namespace pEp { |
|
|
|
namespace PythonAdapter { |
|
|
|
using namespace std; |
|
|
|
|
|
|
|
static const char *version_string = "p≡p Python adapter version 0.1"; |
|
|
|
static string about() |
|
|
|
{ |
|
|
|
string version = string(version_string) + "\np≡p version " |
|
|
@ -160,6 +159,9 @@ BOOST_PYTHON_MODULE(pEp) |
|
|
|
(void(Message::*)(PEP_enc_format)) &Message::enc_format, |
|
|
|
"0: unencrypted, 1: inline PGP, 2: S/MIME, 3: PGP/MIME, 4: p≡p format"); |
|
|
|
|
|
|
|
def("update_identity", &update_identity, "update identity information"); |
|
|
|
def("myself", &myself, "ensures that the own identity is being complete"); |
|
|
|
|
|
|
|
PyModuleDef * _def = PyModule_GetDef(scope().ptr()); |
|
|
|
_def->m_free = free_module; |
|
|
|
|
|
|
|