p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
150 stars 92 forks source link

iter: Add option to stop at token with active session #590

Closed ueno closed 11 months ago

ueno commented 11 months ago

The commit fd7c819eff1de40619ba0231dc8819af76df72a6 introduced a slight backward incompatibility to the P11KitIter behavior when iterating with P11_KIT_ITER_WITH_TOKENS: previously it stopped before opening a token, while now it stops after that.

This adds a compatibility measure so those two are distinguishable with an explicit flag P11_KIT_ITER_WITH_SESSIONS and a kind P11_KIT_ITER_KIND_SESSION.

Related: #589

coveralls commented 11 months ago

Coverage Status

coverage: 69.35% (-0.02%) from 69.369% when pulling c9de40199eaad51788ce87dfaac67621d3ea0c4e on ueno:wip/dueno/iter-fixes into e5f0be33f5d39ad117e1cb84de5a8ac1ebe75548 on p11-glue:master.