On Wed, 2011-01-26 at 20:29 +0100, Diego Elio Pettenò wrote:
> Il giorno mer, 26/01/2011 alle 13.25 -0600, Kent Yoder ha scritto:
> >   The FHS actually has a section on naming of libraries.  We did other
> > bad things too like name our 64bit objects .so64.  Was bad. :-)
> 
> Yah that would be a very bad idea; I guess the point here is _how_ these
> libraries should be called. Are they plugins (dlopened()) or standard
> function libraries?

  yeah they're dlopen()'d..  See
opencryptoki/usr/lib/pkcs11/api/apiutil.c for DL_Load and
DL_Load_and_Init.  The loop in there goes through the .so locations it
pulls out of /var/lib/opencryptoki/pk_config_data for each token and
tries to dlopen them.  We let the runtime linker figure out whether it
should be doing the 32 or 64bit version.  If the dlopen fails, we assume
the token is not present.  This is a big improvement over the old way,
which just did:

if (sizeof(long) == 8)
 dlopen(PKCS11_name.so64);
else
 dlopen(PCKS11_name.so)

Kent

> I'm afraid my search for details like that didn't bring me enough
> results, and I'd love to sort out the current "strange" install of
> opencryptoki that definitely doesn't blend in on your average Linux
> distribution.
> 



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to