NB! This project is outdated and unmaintained, please refer to the OpenSC MacInstaller instead!
| Reported by: | martin | Owned by: | martin |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | component1 | Version: | |
| Severity: | major | Keywords: | |
| Cc: |
Case:
com.apple.tokend.opensc:GemSAFE00c0001a495e0e68 com.apple.tokend.opensc:ID-kaartX0000995 com.apple.tokend.opensc:ID-kaartA1323605
Index: OpenSCToken.cpp
===================================================================
--- OpenSCToken.cpp (revision 93)
+++ OpenSCToken.cpp (working copy)
@@ -289,13 +289,6 @@
otdLog(" Default Score: %d\n", score);
}
- // Create a tokenUid
- if (mScP15Card->label != NULL)
- strlcpy(tokenUid, mScP15Card->label, TOKEND_MAX_UID);
- if (mScP15Card->serial_number != NULL)
- strlcpy(tokenUid + strlen(tokenUid), mScP15Card->serial_number,
- TOKEND_MAX_UID - strlen(tokenUid));
-
otdLog(" score = %d, tokenUid = \"%s\"\n", score, tokenUid);
}
}
See http://www.army.mil/ako/info/guides/CACconfig/setup/page3.html for the similar problem description and solution.
The strategy of not calculating an UID at all works - though it might take slightly longer before a token becomes usable after insertion.