Closed michaelweiser closed 5 years ago
At least one specific implementation of CardOS5 cards does not seem to report a serial number which makes OpenSCToken terminate with:
OpenSCToken: (CoreFoundation) Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' +[NSString stringWithUTF8String:]: NULL cString'
This change makes OpenSCToken work for these cards as well.
thanks, looks good. However, please add the following check: if (p15card->tokeninfo != NULL && p15card->tokeninfo->serial_number != NULL)
thanks, looks good. However, please add the following check:
if (p15card->tokeninfo != NULL && p15card->tokeninfo->serial_number != NULL)
Done plus explanatory comment.
thanks
is related to
https://github.com/OpenSC/OpenSC/pull/1791
At least one specific implementation of CardOS5 cards does not seem to report a serial number which makes OpenSCToken terminate with:
OpenSCToken: (CoreFoundation) Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' +[NSString stringWithUTF8String:]: NULL cString'
This change makes OpenSCToken work for these cards as well.