mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
openssl 0.9.6 is too old to use, use our own modules
This commit is contained in:
parent
2f21eb3a15
commit
b2c3a537cd
1 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
@ -613,12 +613,12 @@ class PyBuildExt(build_ext):
|
||||||
else:
|
else:
|
||||||
missing.append('_hashlib')
|
missing.append('_hashlib')
|
||||||
|
|
||||||
if (openssl_ver < 0x00908000):
|
if openssl_ver < 0x00908000:
|
||||||
# OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
|
# OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
|
||||||
exts.append( Extension('_sha256', ['sha256module.c']) )
|
exts.append( Extension('_sha256', ['sha256module.c']) )
|
||||||
exts.append( Extension('_sha512', ['sha512module.c']) )
|
exts.append( Extension('_sha512', ['sha512module.c']) )
|
||||||
|
|
||||||
if not openssl_ver:
|
if openssl_ver < 0x00907000:
|
||||||
# no openssl at all, use our own md5 and sha1
|
# no openssl at all, use our own md5 and sha1
|
||||||
exts.append( Extension('_md5', ['md5module.c']) )
|
exts.append( Extension('_md5', ['md5module.c']) )
|
||||||
exts.append( Extension('_sha1', ['sha1module.c']) )
|
exts.append( Extension('_sha1', ['sha1module.c']) )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue