Hi Klaus.
According to BSSSD[*] folks, there are any problems on constructor
and destructor. I can't provide an exlanation of thus, but I think
this is significant.
[*] http://bsssd.sourceforge.net/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- opencryptoki-2.3.2/usr/lib/pkcs11/api/api_interface.c.orig 2010-07-29
21:28:41.000000000 +0900
+++ opencryptoki-2.3.2/usr/lib/pkcs11/api/api_interface.c 2011-01-02
21:45:09.172672483 +0900
@@ -2390,7 +2390,7 @@ C_GetFunctionList ( CK_FUNCTION_LIST_PTR_PTR
ppFunctionList )
C_GetFunctionList ( CK_FUNCTION_LIST_PTR_PTR ppFunctionList )
{
- _init();
+ api_init();
LOG("C_GetFunctionList");
FuncList.version.major = VERSION_MAJOR;
@@ -5168,7 +5168,11 @@ C_WrapKey ( CK_SESSION_HANDLE hSession,
}
+#ifdef __sun
+#pragma init(api_init)
+#else
void api_init(void) __attribute__((constructor));
+#endif
void
api_init(void)
@@ -5194,7 +5198,11 @@ api_init(void)
}
+#ifdef __sun
+#pragma fini(api_fini)
+#else
void api_fini(void) __attribute__((destructor));
+#endif
void
api_fini()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thank you.
--
Norikatsu Shigemura <[email protected]>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech