Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkcs11: leverage sc_wait_for_event to avoid unneccesary queries to card #3126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 24, 2024

  1. pkcs11: leverage sc_wait_for_event to avoid unneccesary queries to card

    card_detect_all() is now used as global entry point even to reader
    specific card detection (card_detect() is removed). This enforces
    a constant update of reader_states so that no events are silently
    dropped. This removes the need for having a timer in C_GetSlotInfo() for
    avoiding too many queries. If the reader implementation (i.e.
    reader-*.c) does not implement wait_for_event, then all slots will be
    queried on request just like it used to be.
    
    fixes OpenSC#3107
    frankmorgner committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    7091cff View commit details
    Browse the repository at this point in the history
  2. fixed formatting

    frankmorgner committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    e4a0d1d View commit details
    Browse the repository at this point in the history