struct gnutls_pkcs11_provider_st {
struct ck_function_list *module;
unsigned active;
+ unsigned trusted; /* in the sense of p11-kit trusted:
+ * it can be used for verification */
struct ck_info info;
};
active_providers++;
providers[active_providers - 1].module = module;
providers[active_providers - 1].active = 1;
+
+ if (p11_kit_module_get_flags(module) & P11_KIT_MODULE_TRUSTED)
+ providers[active_providers - 1].trusted = 1;
+
memcpy(&providers[active_providers - 1].info, &info, sizeof(info));
return 0;