|
|
@ -1867,11 +1867,15 @@ namespace cryptoki { |
|
|
|
CK_USER_TYPE userType=CKU_USER): _session(session) { |
|
|
|
CK_USER_TYPE userType=CKU_USER): _session(session) { |
|
|
|
CRYPTOLOG("log"); |
|
|
|
CRYPTOLOG("log"); |
|
|
|
//! calls @c C_Login
|
|
|
|
//! calls @c C_Login
|
|
|
|
_session.check(_session._slot.library()->C_Login |
|
|
|
try { |
|
|
|
(_session._session, userType, |
|
|
|
_session.check(_session._slot.library()->C_Login |
|
|
|
const_cast<CK_CHAR*>((const CK_CHAR*)pin.c_str()), |
|
|
|
(_session._session, userType, |
|
|
|
(int)pin.size()), |
|
|
|
const_cast<CK_CHAR*>((const CK_CHAR*)pin.c_str()), |
|
|
|
CRYPTOKI_FN_LOG("C_Login")); |
|
|
|
(int)pin.size()), |
|
|
|
|
|
|
|
CRYPTOKI_FN_LOG("C_Login")); |
|
|
|
|
|
|
|
} catch (std::exception& x) { |
|
|
|
|
|
|
|
throw wrong_pin(x.what()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
~Login() { |
|
|
|
~Login() { |
|
|
|