Home GnuPG
Diffusion GnuPG 9f641430dcde

gpg: Simplify default_recipient().

Description

gpg: Simplify default_recipient().

* g10/pkclist.c (default_recipient): Use hexfingerprint.

Note that on malloc failure this function now returns NULL instead of
terminating the process. However, under memory pressure any function
called latter will very likely fail as well.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 13 2017, 11:00 AM
Parents
rGcd26c5482b10: gpg: Return an error from hexfingerprint on malloc error.
Branches
Unknown
Tags
Unknown