* dlopen() handle
*/
void *handle;
+
+ /**
+ * Name as passed to the constructor
+ */
+ char *name;
};
+METHOD(pkcs11_library_t, get_name, char*,
+ private_pkcs11_library_t *this)
+{
+ return this->name;
+}
+
METHOD(pkcs11_library_t, destroy, void,
private_pkcs11_library_t *this)
{
INIT(this,
.public = {
+ .get_name = _get_name,
.destroy = _destroy,
},
+ .name = name,
.handle = dlopen(file, RTLD_LAZY),
);
*/
CK_FUNCTION_LIST_PTR f;
+ /**
+ * Get the name this instance was created with.
+ *
+ * @return name, as passed to constructor
+ */
+ char* (*get_name)(pkcs11_library_t *this);
+
/**
* Destroy a pkcs11_library_t.
*/