<def-group>
  <definition class="compliance" id="configure_ssh_crypto_policy" version="1">
    {{{ oval_metadata("SSH should be configured to use the system-wide crypto policy setting.") }}}
    <criteria>
      <criterion test_ref="test_configure_ssh_crypto_policy"
      comment="Check that the SSH configuration mandates usage of system-wide crypto policies." />
    </criteria>
  </definition>

  <ind:textfilecontent54_test id="test_configure_ssh_crypto_policy"
  comment="Check that the SSH configuration mandates usage of system-wide crypto policies."
  check="all" check_existence="none_exist" version="1">
    <ind:object object_ref="object_configure_ssh_crypto_policy" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_configure_ssh_crypto_policy" version="1">
    <ind:filepath>/etc/sysconfig/sshd</ind:filepath>
    <ind:pattern operation="pattern match">^\s*(?i)CRYPTO_POLICY\s*=.*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
