[opendnssec/SoftHSMv2] fd8e05: use warning messages for failing to enumerate stor...

Rickard Bellgrim rickard at opendnssec.org
Mon Jun 26 19:05:44 CEST 2017


  Branch: refs/heads/develop
  Home:   https://github.com/opendnssec/SoftHSMv2
  Commit: fd8e058840c902d5a52eda616717101514412960
      https://github.com/opendnssec/SoftHSMv2/commit/fd8e058840c902d5a52eda616717101514412960
  Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
  Date:   2017-06-26 (Mon, 26 Jun 2017)

  Changed paths:
    M src/lib/SoftHSM.cpp
    M src/lib/common/softhsm2.conf.in
    M src/lib/object_store/ObjectStore.cpp

  Log Message:
  -----------
  use warning messages for failing to enumerate store

In systems which use p11-kit to register all available PKCS#11
modules, an unconfigured softhsm will always fail to load and
print the following to syslog:
Jun 26 13:29:05 host wget[6407]: ObjectStore.cpp(59): Failed to enumerate object in /var/lib/softhsm/tokens
Jun 26 13:29:05 host wget[6407]: SoftHSM.cpp(476): Could not load the object store

That can be output to any command utilizing p11-kit (e.g., applications
using gnutls or engine_pkcs11 applications).

To avoid that unnecessary print, I decreased the log level of
the message to warning and set the default configuration to
print only error messages to syslog.

Signed-off-by: Nikos Mavrogiannopoulos <nmav at redhat.com>


  Commit: 4aba8d9310853d2daab6822e9e125bcfe7b1af9a
      https://github.com/opendnssec/SoftHSMv2/commit/4aba8d9310853d2daab6822e9e125bcfe7b1af9a
  Author: Rickard Bellgrim <rickard at opendnssec.org>
  Date:   2017-06-26 (Mon, 26 Jun 2017)

  Changed paths:
    M src/lib/SoftHSM.cpp
    M src/lib/common/softhsm2.conf.in
    M src/lib/object_store/ObjectStore.cpp

  Log Message:
  -----------
  Merge pull request #330 from nmav/tmp-fix-warnings

Fix warnings on syslog


Compare: https://github.com/opendnssec/SoftHSMv2/compare/43f7b7db2392...4aba8d931085


More information about the Opendnssec-commits mailing list