exit this loop if the adapter returns PEP_SYNC_NO_CHANNEL, because there will be no passphrase

IOS-2327 Release_2.1.0-RC14
Volker Birk 3 years ago
parent 5615054236
commit c06656d762

@ -262,6 +262,12 @@ PEP_STATUS try_base_prepare_message(
do {
// then try passphrases from the cache
status = session->messageToSend(NULL);
// if there will be no passphrase then exit
if (status == PEP_SYNC_NO_CHANNEL)
break;
// if a passphrase is needed ask the app
if (status == PEP_PASSPHRASE_REQUIRED || status == PEP_WRONG_PASSPHRASE) {
pEp_identity* _me = identity_dup(me);
if (!_me)

@ -5457,6 +5457,12 @@ PEP_STATUS try_encrypt_message(
do {
// then try passphrases from the cache
status = session->messageToSend(NULL);
// if there will be no passphrase then exit
if (status == PEP_SYNC_NO_CHANNEL)
break;
// if a passphrase is needed ask the app
if (status == PEP_PASSPHRASE_REQUIRED || status == PEP_WRONG_PASSPHRASE) {
pEp_identity* _me = identity_dup(src->from);
if (!_me)

Loading…
Cancel
Save