[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5310 - trunk/softHSM/checks

Rickard Bellgrim rickard at opendnssec.org
Fri Jul 8 16:38:31 CEST 2011


Author: rb
Date: 2011-07-08 16:38:31 +0200 (Fri, 08 Jul 2011)
New Revision: 5310

Modified:
   trunk/softHSM/checks/cryptoki.h
Log:
Turn on CRYPTOKI_EXPORTS


Modified: trunk/softHSM/checks/cryptoki.h
===================================================================
--- trunk/softHSM/checks/cryptoki.h	2011-07-08 13:35:51 UTC (rev 5309)
+++ trunk/softHSM/checks/cryptoki.h	2011-07-08 14:38:31 UTC (rev 5310)
@@ -29,15 +29,15 @@
 /*****************************************************************************
  cryptoki.h
 
- This include file turns off export of functions by the SoftHSM library by not
- setting the #define symbol CRYPTOKI_EXPORTS before the main PKCS #11 header
- file is included. Include this header file in all SoftHSM code that
- does not link into a PKCS #11 library.
+ We need to turn on CRYPTOKI_EXPORTS because we are statically linking with 
+ libsofthsm. If we do not do this, then it will not find the symbols in 
+ Windows.
  *****************************************************************************/
 
 #ifndef SOFTHSM_ATTRIBUTE_H
 #define SOFTHSM_ATTRIBUTE_H
 
+#define CRYPTOKI_EXPORTS
 #define CRYPTOKI_COMPAT
 
 #include "pkcs11.h"




More information about the Opendnssec-commits mailing list