Home GnuPG
Diffusion GPGME 09667a600698

Cpp: Handle empty recipients consistently
09667a600698Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Cpp: Handle empty recipients consistently

* lang/cpp/src/context.cpp (Context::getKeysFromRecipients):
New helper.
(Context::encrypt, Context::startEncryption, Context::signAndEncrypt)
(Context::startCombinedSigningAndEncryption): Use new helper.
* lang/cpp/src/context.h (Context::getKeysFromRecipients): Add
as private helper.

bf776ce was incomplete as the code to handle recpients
was duplicated four times. This is now unified and constently
uses a nullptr instead of an empty array.

Details

Provenance
aheineckeAuthored on Aug 10 2016, 2:12 PM
Parents
rMb602d8bc7bd7: core: Handle ENCRYPT_SYMMETRIC also for sig & enc
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rM09667a600698: Cpp: Handle empty recipients consistently (authored by Andre Heinecke <aheinecke@intevation.de>).Aug 10 2016, 2:12 PM