<def-group>
  <definition class="compliance" id="configure_opensc_nss_db" version="1">
    {{{ oval_metadata("The NSS DB should be set to use opensc library.") }}}
    <criteria>
      <criterion test_ref="test_configure_opensc_nss_db"
      comment="Check opensc library is configured in /etc/pki/nssdb/pkcs11.txt" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test id="test_configure_opensc_nss_db"
  comment="Check opensc library is configured in /etc/pki/nssdb/pkcs11.txt"
  check="all" check_existence="all_exist" version="1">
    <ind:object object_ref="object_configure_opensc_nss_db" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_configure_opensc_nss_db"
  version="1">
    <ind:filepath>/etc/pki/nssdb/pkcs11.txt</ind:filepath>
    <ind:pattern operation="pattern match">^library=opensc.*\.so$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
