aboutsummaryrefslogtreecommitdiff
path: root/lib/libeclat.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-09-19 19:43:22 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-09-19 19:43:22 +0300
commit96871660d41c0130460f52057c0334cec46f7dd3 (patch)
tree3c78ca7b60d127a8745c4da5e71a184dd3fa13e8 /lib/libeclat.h
parent7bec448cd0383ef533ab7c0c6e19374d515dfecf (diff)
downloadeclat-96871660d41c0130460f52057c0334cec46f7dd3.tar.gz
eclat-96871660d41c0130460f52057c0334cec46f7dd3.tar.bz2
Implement query-to-url function.
* lib/q2url.c: New file. * lib/Makefile.am: Add new file. * lib/libeclat.h (ec2_query) <signature>: New member. (eclat_query_to_url): New proto. (eclat_query_signature): Change signature. * lib/reqsign.c (eclat_query_signature): Store signature to req->signature.
Diffstat (limited to 'lib/libeclat.h')
-rw-r--r--lib/libeclat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libeclat.h b/lib/libeclat.h
index 1212dc4..aacc0e2 100644
--- a/lib/libeclat.h
+++ b/lib/libeclat.h
@@ -39,9 +39,11 @@ struct ec2_query {
char *uri; /* URI without parameters */
char *verb; /* GET or POST */
struct grecs_symtab *params; /* Query parameters */
+ char *signature;
};
-int eclat_query_signature(struct ec2_query *req, char *secret,
- char **signature);
+int eclat_query_signature(struct ec2_query *req, char *secret);
+
+char *eclat_query_to_url(struct ec2_query *req, char **post_params);

Return to:

Send suggestions and report system problems to the System administrator.