You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-24 05:39:17 +03:00
To avoid iterating through the API Session list Anchor->SessListBeg every time we need a session reference, use the session's own pointer as handle. This change MAY introduce segfaults if the caller application passes invalid session handlers that cannot be directly dereferenced, but that usually only means that the application is buggy and needs fixing. Also removes tests with invalid session handlers from obj_mgmt.c Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>