idautils.py: Replaced GetInputFileMD5 with a call to the IDC version

This commit is contained in:
gergely.erdelyi 2008-11-02 08:37:57 +00:00
parent c8f6c02147
commit 919b3d9987

View File

@ -12,6 +12,7 @@
idautils.py - High level utility functions for IDA idautils.py - High level utility functions for IDA
""" """
import idaapi import idaapi
import idc
def refs(ea, funcfirst, funcnext): def refs(ea, funcfirst, funcnext):
""" """
@ -341,12 +342,4 @@ def GetInputFileMD5():
@return: MD5 string or None on error @return: MD5 string or None on error
""" """
ua=idaapi.uchar_array(16) return idc.GetInputMD5()
if idaapi.retrieve_input_file_md5(ua.cast()):
md5str=""
for i in range(16):
md5str += "%02x" % ua[i]
return md5str
else:
return None