mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Adds stand alone _md5 and _sha1 modules for use by hashlib on systems
when the OpenSSL library is either not present or not found by setup.py. These are derived from the public domain libtomcrypt (libtom.org) just like the existing sha256 and sha512 modules.
This commit is contained in:
parent
b3b4dbef20
commit
2f21eb3a15
6 changed files with 1118 additions and 16 deletions
5
setup.py
5
setup.py
|
@ -618,6 +618,11 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension('_sha256', ['sha256module.c']) )
|
||||
exts.append( Extension('_sha512', ['sha512module.c']) )
|
||||
|
||||
if not openssl_ver:
|
||||
# no openssl at all, use our own md5 and sha1
|
||||
exts.append( Extension('_md5', ['md5module.c']) )
|
||||
exts.append( Extension('_sha1', ['sha1module.c']) )
|
||||
|
||||
# Modules that provide persistent dictionary-like semantics. You will
|
||||
# probably want to arrange for at least one of them to be available on
|
||||
# your machine, though none are defined by default because of library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue