1 diff -aur tlslite-0.3.8/tlslite/TLSRecordLayer.py chromium/tlslite/TLSRecordLayer.py
2 --- tlslite-0.3.8/tlslite/TLSRecordLayer.py 2005-02-22 00:31:41.000000000 -0500
3 +++ chromium/tlslite/TLSRecordLayer.py 2010-08-14 16:54:14.506283500 -0400
5 from utils.cryptomath import getRandomBytes
7 from FileObject import FileObject
11 +# The sha module is deprecated in Python 2.6
15 + from hashlib import sha1 as sha
17 +# The md5 module is deprecated in Python 2.6
21 + from hashlib import md5
26 diff -aur tlslite-0.3.8/tlslite/mathtls.py chromium/tlslite/mathtls.py
27 --- tlslite-0.3.8/tlslite/mathtls.py 2004-10-06 01:01:15.000000000 -0400
28 +++ chromium/tlslite/mathtls.py 2010-08-14 16:54:14.526283600 -0400
30 from utils.cryptomath import *
36 +# The sha module is deprecated in Python 2.6
40 + from hashlib import sha1 as sha
42 +# The md5 module is deprecated in Python 2.6
46 + from hashlib import md5
48 #1024, 1536, 2048, 3072, 4096, 6144, and 8192 bit groups]
49 goodGroupParameters = [(2,0xEEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE48E495C1D6089DAD15DC7D7B46154D6B6CE8EF4AD69B15D4982559B297BCF1885C529F566660E57EC68EDBC3C05726CC02FD4CBF4976EAA9AFD5138FE8376435B9FC61D2FC0EB06E3),\
50 diff -aur tlslite-0.3.8/tlslite/messages.py chromium/tlslite/messages.py
51 --- tlslite-0.3.8/tlslite/messages.py 2004-10-06 01:01:24.000000000 -0400
52 +++ chromium/tlslite/messages.py 2010-08-14 16:54:14.536283600 -0400
55 from X509CertChain import X509CertChain
59 +# The sha module is deprecated in Python 2.6
63 + from hashlib import sha1 as sha
65 +# The md5 module is deprecated in Python 2.6
69 + from hashlib import md5
73 diff -aur tlslite-0.3.8/tlslite/utils/cryptomath.py chromium/tlslite/utils/cryptomath.py
74 --- tlslite-0.3.8/tlslite/utils/cryptomath.py 2004-10-06 01:02:53.000000000 -0400
75 +++ chromium/tlslite/utils/cryptomath.py 2010-08-14 16:54:14.556283600 -0400
82 +# The sha module is deprecated in Python 2.6
86 + from hashlib import sha1 as sha
88 +# The md5 module is deprecated in Python 2.6
92 + from hashlib import md5