summaryrefslogtreecommitdiffstats
path: root/libraries/gdata/deprecated_sha.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/gdata/deprecated_sha.patch')
-rw-r--r--libraries/gdata/deprecated_sha.patch21
1 files changed, 0 insertions, 21 deletions
diff --git a/libraries/gdata/deprecated_sha.patch b/libraries/gdata/deprecated_sha.patch
deleted file mode 100644
index 7c52b337e1..0000000000
--- a/libraries/gdata/deprecated_sha.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-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)