[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3652 - in trunk/softHSM: . src/lib

Rickard Bellgrim rickard.bellgrim at iis.se
Thu Aug 5 14:58:32 CEST 2010


Author: rb
Date: 2010-08-05 14:58:32 +0200 (Thu, 05 Aug 2010)
New Revision: 3652

Modified:
   trunk/softHSM/NEWS
   trunk/softHSM/src/lib/file.cpp
Log:
This is a critical error and can be written to stderr. But it should not be done for problems reading the individual databases. Users should read syslog.


Modified: trunk/softHSM/NEWS
===================================================================
--- trunk/softHSM/NEWS	2010-08-05 12:36:07 UTC (rev 3651)
+++ trunk/softHSM/NEWS	2010-08-05 12:58:32 UTC (rev 3652)
@@ -9,6 +9,7 @@
 * The softhsm command now have the option --module <path>
   To use a PKCS#11 library other than SoftHSM.
 * Ticket #163: softhsm-keyconv now support BIND format v1.3
+* Write message to stderr when the config file cannot be found
 
 
 SoftHSM 1.1.4 - 2010-04-06

Modified: trunk/softHSM/src/lib/file.cpp
===================================================================
--- trunk/softHSM/src/lib/file.cpp	2010-08-05 12:36:07 UTC (rev 3651)
+++ trunk/softHSM/src/lib/file.cpp	2010-08-05 12:58:32 UTC (rev 3652)
@@ -63,6 +63,7 @@
     char errorMsg[1024];
     snprintf(errorMsg, sizeof(errorMsg), "Could not open the config file: %s", confPath);
 
+    fprintf(stderr, "SoftHSM: %s\n", errorMsg);
     ERROR_MSG("C_Initialize", errorMsg);
     return CKR_GENERAL_ERROR;
   }




More information about the Opendnssec-commits mailing list