Branch: refs/heads/master
Home: https://github.com/OpenSC/libp11
Commit: 02461b101a4592bc009935da8568e9820d88b641
https://github.com/OpenSC/libp11/commit/02461b101a4592bc009935da8568e9820d88b641
Author: Kevin King <kc...@go...>
Date: 2023-02-28 (Tue, 28 Feb 2023)
Changed paths:
M src/p11_slot.c
Log Message:
-----------
Check validity of session in pkcs11_get_session
Before this change, if a session handle became invalid it would still be
returned to the caller.
This commit uses C_GetSessionInfo to check that a handle is still valid before
returning it from the pool. If a session is no longer valid, it is discarded.
|