Hmm, that code snippet seems okay.  I did pretty much the same thing in
ckfw (see
http://lxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/nssck.api ,
near the end).

When you say "netscape," what do you mean?  Communicator?  (I.e., the
4.x clients?)  I don't remember if communicator behaves differently for
different pkcs11 versions, but I notice you're setting the version to
1.0 instead of 2.1.

(BTW, ckfw was designed to be a general framework for writing pkcs#11
modules; it takes care of all the boring grungework and gives you a much
more OO set of interfaces to implement.  For testing purposes I did get
it working with communicator.  Maybe it might be of some use..)

Frederick.
-- 
Note: my e-mail address is munged in an obvious way, because I don't 
have my spam filters set up yet.. sorry for the inconvenience.

Reply via email to