Skip to content

Commit

Permalink
Merge pull request #180 from Nitrokey/gpg-pcscd
Browse files Browse the repository at this point in the history
tests: Add support for gnupg over pcscd
  • Loading branch information
robin-nitrokey authored Oct 26, 2023
2 parents 5634604 + 3fa0028 commit 87fcb21
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tests/virt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,24 @@ pub fn gpg_status(key: KeyType, sign_count: usize) -> Vec<&'static str> {
let reader = r"Reader:Virtual PCD \d\d \d\d:AID:D276000124010304[A-Z0-9]*:openpgp-card";
#[cfg(feature = "dangerous-test-real-card")]
let reader = concat!(
r"Reader:",
"Reader:",
"((",
// ID for the internal ccid driver
env!("OPCARD_DANGEROUS_TEST_CARD_USB_VENDOR"),
":",
env!("OPCARD_DANGEROUS_TEST_CARD_USB_PRODUCT"),
":X:0:AID:D276000124010304[A-Z0-9]*:openpgp-card"
":X:0",
")|(",
// ID for the pcscd driver
r"Nitrokey 3 \[CCID/ICCD Interface\] \d\d \d\d",
"))",
":AID:",
// AID
"D276000124010304",
env!("OPCARD_DANGEROUS_TEST_CARD_PGP_VENDOR"),
env!("OPCARD_DANGEROUS_TEST_CARD_PGP_SERIAL"),
"0000",
":openpgp-card:",
);

[
Expand Down

0 comments on commit 87fcb21

Please sign in to comment.