Home GnuPG

cpp: Fix addrSpec for keys without email

Description

cpp: Fix addrSpec for keys without email

* lang/cpp/src/key.cpp (UserID::addrSpec): Use uid->address instead
of normalizing again.
(&operator<<(std::ostream &, const UserID &): Print it.

This saves a normalization and fixes the case where a user id
is just a mail address without name, in that case gpgme sets
"address" but not email. Because the email is then the name.

Details

Provenance
aheineckeAuthored on Dec 15 2016, 11:31 AM
Parents
rGPGMEPP27143a5c7085: cpp: Fix update of partial key in verifyresult
Branches
Unknown
Tags
Unknown