mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Use usedforsecurity=False when calling hashlib.md5 (#1662)
This clears "ValueError: ... disabled for FIPS" for systems with FIPS mechanisms enabled. Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
This commit is contained in:
parent
e184db0eb8
commit
0db42a1012
@ -1284,8 +1284,8 @@ class TrickWorkflow(WorkflowCommon):
|
||||
self.status = Job.Status.FAILED
|
||||
if self.missing:
|
||||
return self.status
|
||||
if (hashlib.md5(open(self.test_data,'rb').read()).hexdigest() !=
|
||||
hashlib.md5(open(self.baseline_data,'rb').read()).hexdigest()):
|
||||
if (hashlib.md5(open(self.test_data,'rb').read(), usedforsecurity=False).hexdigest() !=
|
||||
hashlib.md5(open(self.baseline_data,'rb').read(), usedforsecurity=False).hexdigest()):
|
||||
self.status = Job.Status.FAILED
|
||||
else:
|
||||
self.status = Job.Status.SUCCESS
|
||||
|
Loading…
Reference in New Issue
Block a user