[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5306 - in trunk/softHSM: . checks

Rickard Bellgrim rickard at opendnssec.org
Fri Jul 8 13:22:43 CEST 2011


Author: rb
Date: 2011-07-08 13:22:43 +0200 (Fri, 08 Jul 2011)
New Revision: 5306

Modified:
   trunk/softHSM/NEWS
   trunk/softHSM/checks/checks.c
Log:
Use _putenv and not setenv.


Modified: trunk/softHSM/NEWS
===================================================================
--- trunk/softHSM/NEWS	2011-07-08 11:09:17 UTC (rev 5305)
+++ trunk/softHSM/NEWS	2011-07-08 11:22:43 UTC (rev 5306)
@@ -28,6 +28,7 @@
 * Windows: Set CRYPTOKI_EXPORTS.
 * Windows: Load library correctly softhsm.
 * Windows: Compatibility function for getpass.
+* Windows: Use _putenv and not setenv.
 
 
 SoftHSM 1.2.1 - 2011-05-03 

Modified: trunk/softHSM/checks/checks.c
===================================================================
--- trunk/softHSM/checks/checks.c	2011-07-08 11:09:17 UTC (rev 5305)
+++ trunk/softHSM/checks/checks.c	2011-07-08 11:22:43 UTC (rev 5306)
@@ -66,7 +66,11 @@
 int main(int argc, char **argv) {
   int c;
 
+#ifdef WIN32
+  _putenv("SOFTHSM_CONF=" CHECKS_SOFTHSM_CONF);
+#else
   setenv("SOFTHSM_CONF", CHECKS_SOFTHSM_CONF, 1);
+#endif
 
   if(argc == 1) {
     usage();




More information about the Opendnssec-commits mailing list