[opencryptoki-users] Support both 32 and 64 bit apps simultineouly using openCryptoki 2.2.2
Brought to you by:
ebarretto
From: Qiyan S. <Qiy...@Su...> - 2006-02-22 00:29:07
|
Hi, In 2.2.0 and before, openCryptoki dlopens 32 bit stdll if sizeof(long) == 4. Otherwise it dlopens the 64 bit stdll, as shown below (from apiutil.c): if ( sizeof(long) == 4 ) { dllload[i].dlop_p = dlopen(sinfp->dll_location,RTLD_NOW); } else { // 64 bit env sprintf(buffer,"%s64",sinfp->dll_location); dllload[i].dlop_p = dlopen(buffer,RTLD_NOW); } In 2.2.2 release, this has been changed to just dllload[i].dlop_p = dlopen(sinfp->dll_location,RTLD_NOW); This works for 32 bit apps. For 64 bit apps, however, it still tries to dlopen the 32 bit stdll and fails. How to run 64 bit apps using 2.2.2 release? Thanks, Qiyan |