aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-06-19 12:30:16 +0000
committerWerner Koch <[email protected]>2019-06-21 09:42:58 +0000
commit9551275857c1f9a75fee5736fa6c3cf361364f22 (patch)
tree7f6fae1cb5af658866dd9abfa57962b3f60c914a /scd/app-openpgp.c
parentpo: Update Japanese Translation. (diff)
downloadgnupg-9551275857c1f9a75fee5736fa6c3cf361364f22.tar.gz
gnupg-9551275857c1f9a75fee5736fa6c3cf361364f22.zip
scd: Use enums for cardtype and apptype.
* scd/app-common.h (cardtype_t): New. (apptype_t): New. (struct card_ctx_s): Change type of cardtype. (struct app_ctx_s): Change type of apptype. Adjust all users. * scd/app.c (struct app_priority_list_s): Add field apptype. (strcardtype): New. Use as needed. (strapptype): New. Use as needed. -- Using strcmp is lame and we can't use a switch to let the compiler complain about missed cases. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 4f17a3c44..b93b7b557 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -5224,7 +5224,7 @@ app_select_openpgp (app_t app)
{
unsigned int manufacturer;
- app->apptype = "OPENPGP";
+ app->apptype = APPTYPE_OPENPGP;
app->did_chv1 = 0;
app->did_chv2 = 0;