|
|
@ -166,7 +166,7 @@ namespace cryptoki { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Init::Init(const std::string& library, bool exc): |
|
|
|
Init::Init(const std::string& library, bool exc) try: |
|
|
|
_exc(exc), _res(CKR_OK), _fn(0) { |
|
|
|
_exc(exc), _res(CKR_OK), _fn(0) { |
|
|
|
CRYPTOKI_LOG("library: "<<library); |
|
|
|
CRYPTOKI_LOG("library: "<<library); |
|
|
|
//! calls @c functionList
|
|
|
|
//! calls @c functionList
|
|
|
@ -176,6 +176,8 @@ namespace cryptoki { |
|
|
|
//! calls @c C_Initialize
|
|
|
|
//! calls @c C_Initialize
|
|
|
|
check(_fn->C_Initialize(0), //! @todo add optional argument
|
|
|
|
check(_fn->C_Initialize(0), //! @todo add optional argument
|
|
|
|
CRYPTOKI_FN_LOG("C_Initialize")); |
|
|
|
CRYPTOKI_FN_LOG("C_Initialize")); |
|
|
|
|
|
|
|
} catch (...) { |
|
|
|
|
|
|
|
throw access_error(CRYPTOKI_FN_LOG("C_Initialize")+": Error in library"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Init::operator bool() { |
|
|
|
Init::operator bool() { |
|
|
|