DBus interface in order to connect DBus applications to the p≡p engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
731 B

#include <pep-client.h>
DBus::BusDispatcher dispatcher;
int main()
{
DBus::default_dispatcher = &dispatcher;
DBus::Connection conn = DBus::Connection::SessionBus();
pEp::Client client(conn, "/security/pep", "security.pep");
message m;
pEp_identity from;
from.address="leviathan@libresilicon.com";
m.from=&from;
/*pEpDBusMessage src, dst;
pEpDBusStringList keylist;
pEpDBusRating rating;
pEpDBusEncryptionFlags flags;
pEpDBusStatus status;
src.clear();*/
//client.decrypt_message(src,keylist,rating,flags,status,dst);
//dst >> m;
::DBus::MessageIter wi;
::DBus::Variant _src;
pEpDBusMessage src;
src << m;
client.send_test(src);
return 0;
}