* gpgsm/t-genkey.c: Rewritten. * gpgsm/Makefile.am (noinst_PROGRAMS): Add t-genkey. * gpg/t-genkey.c: Include <stdlib.h>. (main): Check result->fpr before checking its length.
* gpgsm/t-genkey.c: New file (not added to Makefile.am because of gpg-agent bug).