1. 31 Aug, 2018 1 commit
  2. 23 Aug, 2018 1 commit
  3. 22 Aug, 2018 11 commits
  4. 21 Aug, 2018 2 commits
  5. 16 Aug, 2018 9 commits
  6. 15 Aug, 2018 2 commits
  7. 09 Aug, 2018 1 commit
    • jandryuk's avatar
      vreader: Handle read failure · 652b01db
      jandryuk authored and Christophe Fergeau's avatar Christophe Fergeau committed
      If a command fails, card_status will not match VCARD_DONE.  That will
      trigger the assert and abort the process.  Instead, handle VCARD_FAIL and
      return an error in that case.  Client software can then deal with the
      error, and we continue running to handle future commands.
      This can be triggered by removing the physical smartcard mid-operation.
      The setup is qemu <-> vscclient <-> pcscd with passthru:
      vscclient -e 'use_hw=yes hw_type=passthru'
      In a Windows VM, I ran `certutil -scinfo` from a cmd window.  While it
      was running, I pulled out my smart card.  Without this patch, vscclient
      terminates.  With it, vscclient continues running.
      The call stack is:
      apdu_cb can return VCARD_FAIL for send_receive or
      vcard_response_new_data failure.
      Signed-off-by: jandryuk's avatarJason Andryuk <jandryuk@gmail.com>
      Acked-by: Jakub Jelen's avatarJakub Jelen <jjelen@redhat.com>
  8. 08 Aug, 2018 3 commits
  9. 06 Aug, 2018 10 commits