Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 596001 Details for
Bug 834740
fedpkg is depending on md5, which is not allowed in fips mode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to mark rpkg's use of md5 as valid
rpkg-fips-md5.patch (text/plain), 969 bytes, created by
Toshio Ernie Kuratomi
on 2012-07-03 15:55:23 UTC
(
hide
)
Description:
Patch to mark rpkg's use of md5 as valid
Filename:
MIME Type:
Creator:
Toshio Ernie Kuratomi
Created:
2012-07-03 15:55:23 UTC
Size:
969 bytes
patch
obsolete
>Index: rpkg-1.18/src/pyrpkg/__init__.py >=================================================================== >--- rpkg-1.18.orig/src/pyrpkg/__init__.py >+++ rpkg-1.18/src/pyrpkg/__init__.py >@@ -555,9 +555,20 @@ class Commands(object): > def _hash_file(self, file, hashtype): > """Return the hash of a file given a hash type""" > >+ invalid_hash = False > try: >- sum = hashlib.new(hashtype) >+ sum = hashlib.new(hashtype, usedforsecurity=False) >+ except TypeError, e: >+ if "unexpected keyword argument 'usedforsecurity'" in repr(e): >+ try: >+ sum = hashlib.new(hashtype) >+ except ValueError: >+ invalid_hash = True >+ else: >+ raise > except ValueError: >+ invalid_hash = True >+ if invalid_hash: > raise rpkgError('Invalid hash type: %s' % hashtype) > > input = open(file, 'rb')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 834740
: 596001