The trust module should have stub C_Login and C_Logout calls. Although in theory callers would respect CKF_USER_PIN_INITIALIZED, and only call C_Login and C_Logout when that that flag is set. On the other hand realistically, NSS and other callers call C_Logout just for fun. So return appropriate error codes without precondition warnings when they do.
Created attachment 77168 [details] [review] Don't complain when applications call C_Logout or C_Login
Attachment 77168 [details] pushed as 4560373 - Don't complain when applications call C_Logout or C_Login
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.