sm: Print a better diagnostic for encryption certificate selection.
* sm/certlist.c (gpgsm_add_to_certlist): Add diagnostic and fold two similar branches.
Without this patch gpgsm printed:
gpgsm: DBG: chan_6 <- RECIPIENT firstname.lastname@example.org
gpgsm: certificate is not usable for encryption
gpgsm: certificate is good
with this patch a
gpgsm: looking for another certificate
is inserted into the log.
- Signed-off-by: Werner Koch <email@example.com>