summaryrefslogtreecommitdiff
path: root/plugin/plugin.h
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-06-09 17:56:11 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 21:48:08 +0100
commit74489a59dd0fc0d519f7c19b8598f65696a05147 (patch)
treeb2b01afe5ec7a3db55c8e303233ade8c759e5232 /plugin/plugin.h
parent8379b263db4a77324c2132f38718e8fd597db967 (diff)
downloadfribid-74489a59dd0fc0d519f7c19b8598f65696a05147.tar.gz
fribid-74489a59dd0fc0d519f7c19b8598f65696a05147.tar.bz2
fribid-74489a59dd0fc0d519f7c19b8598f65696a05147.zip
Implemented signing
Diffstat (limited to 'plugin/plugin.h')
-rw-r--r--plugin/plugin.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/plugin/plugin.h b/plugin/plugin.h
index ea781b0..aa7dddf 100644
--- a/plugin/plugin.h
+++ b/plugin/plugin.h
@@ -4,6 +4,7 @@
typedef enum {
PT_Version,
PT_Authentication,
+ PT_Signer,
} PluginType;
typedef enum {
@@ -24,9 +25,20 @@ typedef struct {
/* Input parameters */
char *challenge;
char *policys;
+ void *dummy1; // To be compatible with .sign below
+ void *dummy0;
/* Output parameters */
char *signature;
} auth;
+ struct {
+ /* Input parameters */
+ char *challenge;
+ char *policys;
+ char *subjectFilter;
+ char *message;
+ /* Output parameters */
+ char *signature;
+ } sign;
} info;
} Plugin;
@@ -38,11 +50,12 @@ void plugin_free(Plugin *plugin);
/* Javascript API */
char *version_getVersion(Plugin *plugin);
-char *auth_getParam(Plugin *plugin, const char *name);
-bool auth_setParam(Plugin *plugin, const char *name, const char *value);
-int auth_performAction(Plugin *plugin, const char *action);
-int auth_performAction_Authenticate(Plugin *plugin);
-int auth_getLastError(Plugin *plugin);
+char *sign_getParam(Plugin *plugin, const char *name);
+bool sign_setParam(Plugin *plugin, const char *name, const char *value);
+int sign_performAction(Plugin *plugin, const char *action);
+int sign_performAction_Authenticate(Plugin *plugin);
+int sign_performAction_Sign(Plugin *plugin);
+int sign_getLastError(Plugin *plugin);
// TODO more functions...
#endif