gpg: Fix detecting OpenPGP card by serialno.
* g10/card-util.c (get_info_for_key_operation): Use ->apptype to determine card's APP. (current_card_status): Even if its SERIALNO is not like OpenPGP card, it's OpenPGP card when app says so.
Backported-from-master: 157f1de64e437cecd75335e9f4077ba9835e3da0
- GnuPG-bug-id: T5100
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>