aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-03-22 16:48:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-03-22 16:48:12 +0200
commitf9e85b7ddddd3b6a87dfc4d907cb1fbe16e22e77 (patch)
treec5e30ac4b1b0103ac00918f04c729fefb97f89d8 /lib
parentAdd PluginLoader class (diff)
downloadsmolbote-f9e85b7ddddd3b6a87dfc4d907cb1fbe16e22e77.tar.xz
Replace xxd with python script
Diffstat (limited to 'lib')
-rw-r--r--lib/plugin/Kconfig29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/plugin/Kconfig b/lib/plugin/Kconfig
new file mode 100644
index 0000000..1de9403
--- /dev/null
+++ b/lib/plugin/Kconfig
@@ -0,0 +1,29 @@
+config USEPLUGINS
+ bool "Enable plugins"
+ default y
+
+menu "Plugin Settings"
+ depends on USEPLUGINS
+
+ choice PLUGIN_SIGNATURE_CHECK
+ bool "Plugin Signature enforcement"
+ default PLUGIN_SIGNATURE_CHECKED
+
+ config PLUGIN_SIGNATURE_IGNORED
+ bool "Don't check plugin signatures"
+
+ config PLUGIN_SIGNATURE_NONFATAL
+ bool "Check signature validity, but always load plugins"
+
+ config PLUGIN_SIGNATURE_CHECKED
+ bool "Don't load plugins with invalid signatures"
+
+ config PLUGIN_SIGNATURE_ENFORCED
+ bool "Only load plugins with valid signatures"
+
+ endchoice
+
+ config PLUGIN_SIGNATURE_HASH
+ string "Hashing algorithm used by the signature"
+ default "SHA256"
+endmenu