Home GnuPG
Diffusion GnuPG a2a90717466a

agent: Make an MD encoding function more robust.

Description

agent: Make an MD encoding function more robust.

* agent/pksign.c (do_encode_md): Use ascii_tolower and avoid
uninitalized TMP in the error case.

This is just in case libgcrypt ever returns an algorithm name longer
than 15 bytes.

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

Details

Provenance
wernerAuthored on May 28 2019, 12:13 PM
Parents
rG19415a265253: agent: Remove unused agent_show_message.
Branches
Unknown
Tags
Unknown