aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-01-25 18:02:38 +0000
committerWerner Koch <[email protected]>2022-01-25 18:02:38 +0000
commit38c666ec3fdb0e3a8762889ae99faca4adb68b68 (patch)
tree67c3f49f1e99286e2dacbefde1af23cd31d20079
parentdoc: Add comments on the legacy status of gpgconf.conf. (diff)
downloadgnupg-38c666ec3fdb0e3a8762889ae99faca4adb68b68.tar.gz
gnupg-38c666ec3fdb0e3a8762889ae99faca4adb68b68.zip
scd: Also prefer Yubikeys if no reader port is given.
* scd/apdu.c (select_a_reader): Extend the white list.
-rw-r--r--scd/apdu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 254353af6..6d7f59dd1 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -1199,7 +1199,8 @@ select_a_reader (const char *list, unsigned int len)
};
const char *white_list_to_prefer[] = {
/* We do substring match by strstr(3). */
- "SPRx32"
+ "SPRx32",
+ "Yubico"
};
const char *p = list;
const char *candidate = NULL;