summaryrefslogtreecommitdiff
path: root/plugin/plugin.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-03-23 23:57:03 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-03-23 23:57:03 +0100
commit1eadbd183a474fe072d7099e1a81f73c5de96774 (patch)
tree65e59b589d824e02cf4355e359993367ac0c0a4f /plugin/plugin.c
parenta46d06fe90c5963e9c769e5bbfa6349721e95cc7 (diff)
downloadfribid-1eadbd183a474fe072d7099e1a81f73c5de96774.tar.gz
fribid-1eadbd183a474fe072d7099e1a81f73c5de96774.tar.bz2
fribid-1eadbd183a474fe072d7099e1a81f73c5de96774.zip
Implement the "NonVisibleData" parameter
This parameter works like TextToBeSigned, except that the text is not shown to the user. It's used by Skatteverket (the Swedish Tax Office) to sign XML documents, for instance.
Diffstat (limited to 'plugin/plugin.c')
-rw-r--r--plugin/plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/plugin.c b/plugin/plugin.c
index 322f6be..386d3db 100644
--- a/plugin/plugin.c
+++ b/plugin/plugin.c
@@ -69,6 +69,7 @@ void plugin_free(Plugin *plugin) {
free(plugin->info.sign.policys);
free(plugin->info.sign.subjectFilter);
free(plugin->info.sign.message);
+ free(plugin->info.sign.invisibleMessage);
free(plugin->info.sign.signature);
break;
}
@@ -124,6 +125,7 @@ static char **getParamPointer(Plugin *plugin, const char *name) {
case PT_Signer:
if (!strcmp(name, "Nonce")) return &plugin->info.sign.challenge;
if (!strcmp(name, "TextToBeSigned")) return &plugin->info.sign.message;
+ if (!strcmp(name, "NonVisibleData")) return &plugin->info.sign.invisibleMessage;
return getCommonParamPointer(plugin, name);
default:
return NULL;