Hello. I *know* that one is suppoed to have one open PKCS#11 session per slot and per thread if you have a multithreaded PKCS#11 app. What's less clear to me is if:
- C_Initialize() is done per-thread or prior to thread creation. (I'd suspect once prior to threads, but I'm not sure, hence I'm asking.) - What about C_GetSlotList()? My inituition says this is safe either way, but there are no clear docs. And if someone says, "Go read PKCS#11 v2.20", I will shoot you. :) Seriously, I was hoping to avoid reading that tome, but I will begrudgingly. Thanks, Dan