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.
 

42 lines
922 B

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <pEp/message_cache.hh>
#include "pep-server.h"
pEp::Server::Server(DBus::Connection &connection)
: DBus::ObjectAdaptor(connection, "/security/pep")
{
}
pEp::Server::~Server()
{
}
void pEp::Server::send_test(const pEpDBusMessage& src)
{
message m;
m << src;
std::cout << "Got something" << std::endl;
return;
}
void pEp::Server::decrypt_message(const pEpDBusMessage& src, const pEpDBusStringList& keylist, const pEpDBusRating& rating,
const pEpDBusEncryptionFlags& flags, pEpDBusStatus& status, pEpDBusMessage& dst)
{
std::cout << "Trying to decrypt the data" << std::endl;
//status PEP_STATUS_OK;
status = PEP_STATUS_OK;
// message m = src;
// src = m;
//status = ::decrypt_message( mSession, src, dst, keylist, rating, flags ));
}