Below a program that shows the problem out of the context of SafeSign 
(libaetpkss.so). The program runs fine on Windows (XP), and hangs on Ubuntu 
with 
PCSC-Lite 1.5.3

#! /usr/bin/env python

from smartcard.scard import *

try:
     hresult, hcontext = SCardEstablishContext(SCARD_SCOPE_USER)
     if hresult != SCARD_S_SUCCESS:
         raise Exception('Failed to establish context : ' +
                         SCardGetErrorMessage(hresult))
     print 'Context established!'

     try:

         hresult = SCardCancel(hcontext)
         if hresult != SCARD_S_SUCCESS:
             raise Exception('Failed to cancel context : ' +
                             SCardGetErrorMessage(hresult))
         print 'context canceled'

     finally:
         hresult = SCardReleaseContext(hcontext)
         if hresult != SCARD_S_SUCCESS:
             raise Exception('Failed to release context: ' +
                             SCardGetErrorMessage(hresult))
         print 'Released context.'

except Exception, message:
     print "Exception:", message

Cheers,

Jan

BTW  If you encounter problems with SafeSign you can always send a bug
report to supp...@aeteurope.nl

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to