~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/ec2/client.py

  • Committer: Thomas Hervé
  • Date: 2009-10-21 19:40:18 UTC
  • Revision ID: thomas@canonical.com-20091021194018-nbcgy745732s00xs
Default to HmacSHA256 instead of HmacSHA1: it's more secure and provides
compatibility with Eucalyptus [r=oubiwann]

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
        self.params = {
769
769
            "Version": api_version,
770
770
            "SignatureVersion": "2",
771
 
            "SignatureMethod": "HmacSHA1",
 
771
            "SignatureMethod": "HmacSHA256",
772
772
            "Action": action,
773
773
            "AWSAccessKeyId": self.creds.access_key,
774
774
            "Timestamp": iso8601time(time_tuple),