Levi, The following code may be useful:
http://lxr.mozilla.org/mozilla/source/security/manager/ssl/src/nsCrypto.h http://lxr.mozilla.org/mozilla/source/security/manager/ssl/src/nsCrypto.cpp This code deals with the stub functions which implement the 'crypto' javascript object. However, I can't find the code which actually registers the 'crypto' object in the DOM. The javascript API <http://mozilla.org/js/spidermonkey/apidoc/jsguide.html>docs do describe the JS_InitStandardClasses, which may be what you need to do. If all else fails, try netscape.public.mozilla.jseng Steve Levi Stamper wrote: >Hello, > >I'm attempting to use the JavaScript perl module >(http://www.cpan.org/modules/by-module/JavaScript/) to call javascript >functions from within a perl script. Everything is fine, but I need >more functionality... > >The functions I'm attempting to access are not included in the base >javascript runtime (from ftp://ftp.mozilla.org/pub/js) used by the perl >module. In particular, I'm trying to access the (crypto.*) functions to >generate CRMF requests (among other things) from perl. > >The functions I need are included in NSS, but I don't know how to build >a libjs instance that makes use of the needed libraries. Has anyone >done this yet? > >Thanks, > >LS > > > > >
