Bug 484473
| Summary: | needs updating to use hashlib instead of deprecated md5 and sha modules | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Henrik Nordström <henrik> |
| Component: | python-crypto | Assignee: | Thorsten Leemhuis <fedora> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | fedora, s.adam |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-02-18 19:25:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Henrik Nordström
2009-02-07 00:02:55 UTC
Can you confirm this is fixed in 2.0.1-15? I haven't setup my rawhide VM to test yet... http://koji.fedoraproject.org/koji/taskinfo?taskID=1111208 Same problem in 2.0.1-15. The patch in CVS looks about right, but is not added to the spec file so not part of the build.. Needs to be both a Patch0: source line, and a %patch0 statement in %prep Sorry about that, fixed now. Rebuilding now: http://koji.fedoraproject.org/koji/taskinfo?taskID=1111411 I've also changed the patch a bit, as to remain compatible with PEP 247 we can't simply replace the md5/sha modules with their hashlib equivalents - hashlib provides a function and not a module with the digest_size and blocksize properties. The SHA and MD5 functions will now contain the correct values for digest_size and blocksize (the same values as the objects from hashlib have) as before there were hardcoded from the Python sha and md5 modules. Stewart, upstream has a report reg. this as well:
https://bugs.launchpad.net/pycrypto/+bug/269429
There are also fixes in git:
http://gitweb.pycrypto.org/?p=crypto/pycrypto-2.x.git;a=commitdiff;h=d2311689910240e425741a546576129f4c9735e2
http://gitweb.pycrypto.org/?p=crypto/pycrypto-2.x.git;a=commitdiff;h=84b793416b52311643bfd456a4544444afbfb5da
Should we use those just to be on the safe side?
BTW: Steward, would you be interested to take over python-crypto? I don#t need it anymore
Fixed in 2.0.1-17: http://koji.fedoraproject.org/koji/buildinfo?buildID=82882 |