Commit dbaf6eba authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add test for normalized sender address in encrypt-only mode

GnuPG-bug-id: 5283
parent a98a9de2
Pipeline #65275 passed with stage
in 7 minutes and 58 seconds
......@@ -1118,6 +1118,17 @@ private Q_SLOTS:
testKey("", CMS).primaryFingerprint());
void test_sender_is_set__encrypt_only_mode()
KeyResolverCore resolver(/*encrypt=*/ true, /*sign=*/ false);
resolver.setRecipients({"", ""});
const auto result = resolver.resolve();
QCOMPARE(resolver.normalizedSender(), QLatin1String{""});
Key testKey(const char *email, Protocol protocol = UnknownProtocol)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment