<def-group>
  <definition class="compliance" id="snmpd_use_approved_hash" version="1">
    <metadata>
      <title>SNMPD Must Use Approved Hash Algorithm</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The SNMP service must require the use of a FIPS 140-2 
	  approved cryptographic hash algorithm as part of its authentication 
	  and integrity methods.</description>
    </metadata>
    <criteria>
      <criterion test_ref="test_snmpd_use_approved_hash" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="Testing snmpd.conf permissions" id="test_snmpd_use_approved_hash" version="1">
    <ind:object object_ref="object_snmpd_use_approved_hash" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="snmpd.conf" id="object_snmpd_use_approved_hash" version="1">
    <ind:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="local" />
    <ind:path>/</ind:path>
    <ind:filename>snmpd.conf</ind:filename>
    <ind:pattern operation="pattern match">^(?!#|[\s]*#)[\s]*(?i)(?:createUser)[\s]+(?:(?!SHA).)+$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
