Browse Source

key import in Inline case, too

doxygen-key-id
Volker Birk 2 years ago
parent
commit
c588719702
2 changed files with 9 additions and 1 deletions
  1. +7
    -0
      src/message_api.c
  2. +2
    -1
      test/src/ElevatedAttachmentsTest.cc

+ 7
- 0
src/message_api.c View File

@ -3845,6 +3845,13 @@ static PEP_STATUS _decrypt_message(
goto pEp_error;
}
}
status = import_keys_from_decrypted_msg(session, msg,
&keys_were_imported,
&imported_private_key_address,
private_il,
(imported_key_fprs ? &_imported_key_list : NULL),
(changed_public_keys ? &_changed_keys : NULL));
break;
default:


+ 2
- 1
test/src/ElevatedAttachmentsTest.cc View File

@ -396,7 +396,8 @@ TEST_F(ElevatedAttachmentsTest, check_encrypt_decrypt_message_elevated) {
status = decrypt_message(session, art_msg, &dec_msg, &keylist, &rating, &flags);
ASSERT_EQ(status, PEP_STATUS_OK);
ASSERT_TRUE(dec_msg);
ASSERT_STREQ(dec_msg->attachments->mime_type, "application/pgp-keys");
// today the engine is sucking keys in
// ASSERT_STREQ(dec_msg->attachments->mime_type, "application/pgp-keys");
ASSERT_STREQ(dec_msg->shortmsg, "pEp");
stringpair_list_t *of;


Loading…
Cancel
Save