Hi,

When I open this HTML file in Mozilla:

<html>
<SCRIPT LANGUAGE="JavaScript">

crmfObject = crypto.generateCRMFRequest(
"CN=undefined",
"regToken", "authenticator",
null,
"setCRMFRequest();",
1024, null, "rsa-sign");
  alert("oi");
  alert(crmfObject.request);

</script>
</html>


and then close it, the last function to be executed is:


09/08 10:11:08 +C_CloseSession : start
09/08 10:11:08 Active session list:
09/08 10:11:08 Session ID: 88A1BE0
09/08 10:11:08 Session ID: 8854FF8
09/08 10:11:08 Removing session: 4
09/08 10:11:08 session_FreeSession, will call slot_ReleaseConnection
09/08 10:11:08 +slot_ReleaseConnection : start
09/08 10:11:08 Attempting release
09/08 10:11:08 session_l->session.slotID == slotID
09/08 10:11:08 closeSessionLocked: rv = 0
09/08 10:11:08  -C_CloseSession : end RV(0x0)


So, the 'C_Finalize', which should be called from '_fini()', is not called.

In  'p11x_unixdll.c' we have:

#ifdef __USE_FINI__

#include "cryptoki.h"



void _fini()
{
  log_Log(LOG_HIGH, "_fini CALLED!! \n");
 C_Finalize(0);
}

#endif

So I understand that '__USE_FINI__' is not defined.

I tried to change the 'src/Makefile' like this:
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libmusclepkcs11\" -DVERSION=\"0.0.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBMUSCLECARD=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VPRINTF=1 -D__USE_FINI__=1

But I get this link error:


.libs/p11x_unixdll.o: In function `_fini':/var/tmp/UIC_Installer/muscleframework-1.1.5/libmusclepkcs11/src/p11x_unixdll.c:22: multiple definition of `_fini' /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o:/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:11: first defined here
collect2: ld returned 1 exit status


How to I get '_fini()' to be executed?



Thanks!





_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to