jolly has uploaded this change for review.
CCID: Fix “unsupported Secure” test case
Expect SlotStatus or DataBlock. The specification states that DataBlock
response is used to indicate, if Secure command is not suppported.
Existing implementation, such as Omnikey Cardman 3121 or
osmo-ccid-firmware respond with SlotStatus instead.
Change-Id: I21517c3e28e0d0e42e8a177b7c668bff15c35aa0
---
M ccid/CCID_Tests.ttcn
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/87/42787/1
diff --git a/ccid/CCID_Tests.ttcn b/ccid/CCID_Tests.ttcn
index 566cb3e..3ff9c36 100644
--- a/ccid/CCID_Tests.ttcn
+++ b/ccid/CCID_Tests.ttcn
@@ -461,6 +461,9 @@
[] CCID.receive(tr_CCID_DataBlock(hdr_in := tr_CCID_HeaderIN_FAIL(CCID_ERR_CMD_NOT_SUPPORTED))) {
setverdict(pass);
}
+ [] CCID.receive(tr_CCID_SlotStatus(hdr_in := tr_CCID_HeaderIN_FAIL(CCID_ERR_CMD_NOT_SUPPORTED))) {
+ setverdict(pass);
+ }
[] as_ccid_any();
}
}
To view, visit change 42787. To unsubscribe, or for help writing mail filters, visit settings.