Created attachment 409814 [details] Testing content. Description of problem: Probe filehash computes incorrect sha1sum (md5 sum is fine). See attached content and the corresponding result. There are strange zeros and ones in computed hash. According to documentation SHA1 is 160-bit checksum, hence it should contain 40 hexadecimals (i.e. sha1 string should contain 40 characters). Version-Release number of selected component (if applicable): commit 1d6b556e23cec6ba5e057a7b6b84aaa840419ce1 How reproducible: always Steps to Reproduce: 1. use tests/OVAL/probes/test_probes.c to evaluate attached content Actual results: <system_data> <filehash_item xmlns="..." id="1" status="exists"> <path>/dev</path> <filename>null</filename> <md5>d41d8cd98f00b204e9800998ecf8427e</md5> <sha1>da39a3ee5e6b4b0d3255bfef95601890afd80709010000000100000000000000</sha1> </filehash_item> </system_data> Expected results: <system_data> <filehash_item xmlns="..." id="1" status="exists"> <path>/dev</path> <filename>null</filename> <md5>d41d8cd98f00b204e9800998ecf8427e</md5> <sha1>da39a3ee5e6b4b0d3255bfef95601890afd80709</sha1> </filehash_item> </system_data> Additional info:
Created attachment 409819 [details] Testing result.
http://git.fedorahosted.org/git/?p=openscap.git;a=commitdiff;h=baf2e0539d3dbced90a9234931fc861548252383 This should fix it.
Thanks Dan, it works now :-).