summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-10-03 20:12:19 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:12 +0100
commitabef8b3d334628b895ebe1daafb54a2a65dadb79 (patch)
tree9b29cf9ec1f6d03049f65b371e3e1ccd4c5d3ee6 /plugin
parent41f7acdfd6e6873cddb075de7b346aa9c04427bc (diff)
downloadfribid-abef8b3d334628b895ebe1daafb54a2a65dadb79.tar.gz
fribid-abef8b3d334628b895ebe1daafb54a2a65dadb79.tar.bz2
fribid-abef8b3d334628b895ebe1daafb54a2a65dadb79.zip
Allow the "Policys" parameter to be unset
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ipc.c3
-rw-r--r--plugin/plugin.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/plugin/ipc.c b/plugin/ipc.c
index 51c65aa..3629e86 100644
--- a/plugin/ipc.c
+++ b/plugin/ipc.c
@@ -114,7 +114,8 @@ char *version_getVersion(Plugin *plugin) {
static void sendSignCommon(const Plugin *plugin) {
pipe_sendString(pipeout, plugin->info.auth.challenge);
- pipe_sendString(pipeout, plugin->info.auth.policys);
+ pipe_sendString(pipeout, (plugin->info.auth.policys != NULL ?
+ plugin->info.auth.policys : ""));
pipe_sendString(pipeout, plugin->url);
pipe_sendString(pipeout, plugin->hostname);
pipe_sendString(pipeout, plugin->ip);
diff --git a/plugin/plugin.c b/plugin/plugin.c
index 504d7cb..11b5b42 100644
--- a/plugin/plugin.c
+++ b/plugin/plugin.c
@@ -102,7 +102,7 @@ bool sign_setParam(Plugin *plugin, const char *name, const char *value) {
}
static bool hasSignParams(const Plugin *plugin) {
- return (plugin->info.auth.challenge && plugin->info.auth.policys);
+ return (plugin->info.auth.challenge);
}
int sign_performAction(Plugin *plugin, const char *action) {