Browse Source

Don't assume full trustwords, added boolean parameter to trustwords so that user decides

sync_removal
Edouard Tisserant 5 years ago
parent
commit
add3ac8ac1
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/basic_api.cc
  2. +1
    -1
      src/basic_api.hh
  3. +1
    -1
      test/multipEp.py

+ 2
- 2
src/basic_api.cc View File

@ -35,7 +35,7 @@ namespace pEp {
_throw_status(status);
}
string _trustwords(Identity me, Identity partner, string lang)
string _trustwords(Identity me, Identity partner, string lang, bool full)
{
if (me.fpr() == "" || partner.fpr() == "")
throw invalid_argument("fingerprint needed in Identities");
@ -46,7 +46,7 @@ namespace pEp {
char *words = NULL;
size_t size = 0;
PEP_STATUS status = get_trustwords(session, me, partner,
lang.c_str(),&words, &size, true);
lang.c_str(),&words, &size, full);
_throw_status(status);
return words;
}


+ 1
- 1
src/basic_api.hh View File

@ -6,7 +6,7 @@ namespace pEp {
namespace PythonAdapter {
void update_identity(Identity& ident);
void myself(Identity& ident);
string _trustwords(Identity me, Identity partner, string lang);
string _trustwords(Identity me, Identity partner, string lang, bool full);
void trust_personal_key(Identity ident);
void set_identity_flags(Identity ident, identity_flags_t flags);


+ 1
- 1
test/multipEp.py View File

@ -304,7 +304,7 @@ def pEp_instance_run(iname, _own_addresses, conn, _msgs_folders, _handshakes_see
printheader("show HANDSHAKE dialog")
printi(signal)
printi("handshake needed between " + repr(me) + " and " + repr(partner))
tw = pEp.trustwords(me, partner, 'en')
tw = pEp.trustwords(me, partner, 'en', True)
printi(tw)
# This is an error from pEpEngine if asked to open handshake dialog twice


Loading…
Cancel
Save