|
|
@ -5,6 +5,7 @@ |
|
|
|
#include <iostream> |
|
|
|
#include <assert.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <pEp/keymanagement.h> |
|
|
|
|
|
|
|
using namespace pEp; |
|
|
|
using namespace std; |
|
|
@ -23,10 +24,18 @@ PEP_STATUS notifyHandshake(void *obj, pEp_identity *me, pEp_identity *partner, s |
|
|
|
|
|
|
|
int main() |
|
|
|
{ |
|
|
|
cout << "creating identity for me\n"; |
|
|
|
pEp_identity *me = new_identity("alice@peptest.ch", NULL, "23", "Who the F* is Alice"); |
|
|
|
assert(me); |
|
|
|
PEP_STATUS status = myself(Adapter::session(), me); |
|
|
|
throw_status(status); |
|
|
|
|
|
|
|
cout << "starting the adapter including sync\n"; |
|
|
|
Adapter(messageToSend, notifyHandshake); |
|
|
|
sleep(3); |
|
|
|
Adapter::shutdown(); |
|
|
|
|
|
|
|
free_identity(me); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|