From a6d0e490209638605b17b0bdc66ad03d36909dae Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 5 Apr 2018 11:14:39 +0200 Subject: modules: Add option to control module visibility from proxy This enables to control whether a module will be loaded from the proxy module. The configuration reuses the "enable-in" and "disable-in" options, with a special literal "p11-kit-proxy" as the value. --- p11-kit/private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'p11-kit/private.h') diff --git a/p11-kit/private.h b/p11-kit/private.h index b363b17..4ef63ea 100644 --- a/p11-kit/private.h +++ b/p11-kit/private.h @@ -45,6 +45,11 @@ extern const char *p11_config_package_modules; extern const char *p11_config_system_modules; extern const char *p11_config_user_modules; +/* These are flags used only internally */ +enum { + P11_KIT_MODULE_LOADED_FROM_PROXY = 1 << 16 +}; + CK_RV _p11_load_config_files_unlocked (const char *system_conf, const char *user_conf, int *user_mode); -- cgit v1.1