diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:58:30 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:58:30 +0200 |
commit | f825602ae6d1b69aa1bd88b5976085dec99a1554 (patch) | |
tree | cbdef4029c3e6a78a1903179940aa7da1bbf8f1d /libraries/gdata/deprecated_sha.patch | |
parent | 8eda6777227681527405517d29fa698444648b13 (diff) | |
download | slackbuilds-f825602ae6d1b69aa1bd88b5976085dec99a1554.tar.gz |
libraries/gdata: Added to 13.0 repository
Diffstat (limited to 'libraries/gdata/deprecated_sha.patch')
-rw-r--r-- | libraries/gdata/deprecated_sha.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/gdata/deprecated_sha.patch b/libraries/gdata/deprecated_sha.patch new file mode 100644 index 0000000000..7c52b337e1 --- /dev/null +++ b/libraries/gdata/deprecated_sha.patch @@ -0,0 +1,21 @@ +diff -Nur -x '*.orig' -x '*~' python-gdata-1.2.4/src/gdata/tlslite/utils/cryptomath.py python-gdata-1.2.4.new/src/gdata/tlslite/utils/cryptomath.py +--- python-gdata-1.2.4/src/gdata/tlslite/utils/cryptomath.py 2008-12-02 03:35:26.000000000 +0100 ++++ python-gdata-1.2.4.new/src/gdata/tlslite/utils/cryptomath.py 2009-05-19 00:44:00.000000000 +0200 +@@ -6,7 +6,7 @@ + import math + import base64 + import binascii +-import sha ++import hashlib + + from compat import * + +@@ -195,7 +195,7 @@ + return int(math.ceil(bits / 8.0)) + + def hashAndBase64(s): +- return stringToBase64(sha.sha(s).digest()) ++ return stringToBase64(hashlib.sha1(s).digest()) + + def getBase64Nonce(numChars=22): #defaults to an 132 bit nonce + bytes = getRandomBytes(numChars) |