From 131b6ab56cbec838346fd493f3fe96438e3b58e7 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 9 Jul 2014 13:01:57 +0300 Subject: Implement signature version 4 signing process * lib/libeclat.h (ec2_param) : New member. (ec2_query) : Remove. : New members (eclat_query_create): Take two more arguments. All uses changed. (eclat_query_add_param_encoded) (eclat_query_add_header): New functions. * lib/q2url.c (eclat_query_to_url): Don't create Signature param: it is already in the param list (for v2 process). * lib/qaddparm.c (eclat_query_add_param_encoded): New function. (eclat_query_add_header): New function. * lib/qcreat.c (eclat_query_create): Take region and access key as additional parameters. * lib/qencode.c (encode_param): Skip parameters that have encoded set to true. * lib/reqsign.c (querysign2): Store access key in AWSAccessKeyId and the generated signature in the Signature parameters. (eclat_hex_encode): New function. (querysign4): Implement signature version 4 signing process. * src/ec2map.c: Update call to eclat_query_create. * src/eclat.c: Likewise. * src/util.c (eclat_send_query): Sign the query and add requested headers prior to sending. * doc/eclat.conf.5: Document signature-version. * NEWS: Likewise. --- NEWS | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 3c6c74d..be9c4a8 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -Eclat NEWS -- history of user-visible changes. 2014-02-04 +Eclat NEWS -- history of user-visible changes. 2014-07-09 Copyright (C) 2012-2014 Sergey Poznyakoff See the end of file for copying conditions. @@ -12,6 +12,13 @@ Version 1.0.90, (Git) lsaattr describe-image-attribute setaattr modify-image-attribute +* Implement signature version 4 signing + +The signature version 4 signing process is enabled by adding the +following statement in the eclat configuration file: + + signature-version 4; + Version 1.0, 2013-12-20 -- cgit v1.2.1