Hi,

I've been trying to get the SCA tokend going but no success to far (using 
opensc.tokend from sca trunk r138 with SCA 0.3.0-pre3).

OpenSC likes the card(s):
0>p...@pwo-mac ~% /Library/OpenSC/bin/opensc-tool -an
Using reader with a card: Argos Mini II 00 00
3b:9f:94:80:1f:c3:00:68:10:44:05:01:46:49:53:45:31:c8:07:90:00:18
SetCOS
0>p...@pwo-mac ~% /Library/OpenSC/bin/pkcs15-tool -D
Using reader with a card: Argos Mini II 00 00
PKCS#15 Card [IDENTITETSKORT]:
        Version        : 2
        Serial number  : XXXXXXX
        Manufacturer ID: NIDEL
        Language       : sv
        Flags          : Login required
... [PIN, KEY and X.509 objects listed] ...

When tokend is started on card insertion I end up with the following in 
system.log:
Mar  3 00:57:40 pwo-mac com.apple.ReportCrash.Root[82771]: 2010-03-03 
00:57:40.095 ReportCrash[82771:2903] Saved crash report for OpenSC[82768] 
version ??? (???) to 
/Library/Logs/DiagnosticReports/OpenSC_2010-03-03-005740_localhost.crash

The stack-trace in the crash report looks like this:
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libstdc++.6.dylib                   0x92abf30e std::string::assign(char 
const*, unsigned long) + 60
1   libstdc++.6.dylib                   0x92abf3c9 std::string::assign(char 
const*) + 37
2   com.apple.securitytokend            0x0007ccb5 tokend_server_probe(unsigned 
int, unsigned int, int*, unsigned int*, char*) + 120
3   com.apple.securitytokend            0x0007aa39 _Xprobe(mach_msg_header_t*, 
mach_msg_header_t*) + 154
4   com.apple.securitytokend            0x00078b4c 
tokend_server(mach_msg_header_t*, mach_msg_header_t*) + 125
5   com.apple.securitytokend            0x00085166 
Security::MachPlusPlus::MachServer::runServerThread(bool) + 1204
6   com.apple.securitytokend            0x00085393 
Security::MachPlusPlus::MachServer::run(unsigned long, int) + 125
7   com.apple.securitytokend            0x000789a5 
Security::Tokend::Server::operator()(int, char const**, unsigned int) + 663
8   com.apple.securitytokend            0x00078595 SecTokendMain + 494
9   com.apple.tokend.opensc             0x000025b7 main + 189
10  com.apple.tokend.opensc             0x00001b5d start + 53

Looking the the debug output probe() seems to run to completion.. it seems to 
crash before establish() is called...
In OpenSCToken::probe()
  tokend_establish_context(): 0
  sc_connect_card(): 0
  card: SetCOS
  sc_pkcs15_bind(): 0
  Get Score from config file: 10
    score = 10, tokenUid = "IDENTITETSKORTXXXXXXX"

Any ideas what is going on here or how to debug it further ?

ps. The build process for opensc.tokend is no fun :)

-- 
Pawel

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to