OpenSC / libp11

PKCS#11 wrapper library
GNU Lesser General Public License v2.1
307 stars 186 forks source link

Invalidate cache when session is removed. #502

Closed druth0 closed 1 year ago

druth0 commented 1 year ago

Before this change invalid cached handles for keys and certificates may be returned when all session handles are invalid.

This change clears cached items associated with a slot when no more valid sessions exist.