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>