On Wed, Jul 31, 2013 at 1:58 AM, Robert Relyea <rrel...@redhat.com> wrote:
> On 07/30/2013 04:27 PM, Brian Smith wrote: > >> See >> https://mxr.mozilla.org/**mozilla-central/source/** >> services/crypto/modules/**WeaveCrypto.js#123<https://mxr.mozilla.org/mozilla-central/source/services/crypto/modules/WeaveCrypto.js#123> >> and >> https://bugzilla.mozilla.org/**show_bug.cgi?id=583209<https://bugzilla.mozilla.org/show_bug.cgi?id=583209> >> and >> https://bugzilla.mozilla.org/**show_bug.cgi?id=648407<https://bugzilla.mozilla.org/show_bug.cgi?id=648407> >> > > Oh, I didn't get that it was a call from inside extension services. I did > read through the bug, and it sounds like there is some work the extension > needs to do to get access to NSS functions, but it wasn't clear what it > was. Brian is there a document that deals with what extensions need to do > to change to this new monolithic linking? > Basically, all of the NSS libraries except softoken and freebl get folded into libnss3.so. But, not on Linux. So, if you're going to use something that is not normally in libnss3.so, you need to have two code paths: one for Linux, and one for all other platforms. Basically, the WeaveCrypto.js link seems to be doing the things that are required, such as making sure PSM is initialized so that NSS is initialized. But, now I remember that WeaveCrypto.js got replaced with a Java implementation on Android a while back. So, maybe WeaveCrypto.js isn't handling the Android case correctly. If you are still having trouble then try adding a "lib/" to the path on Android. And, if that doesn't work, ask on #developers on irc.mozilla.org. Cheers. Brian > > bob > > >> >> >> >> On Tue, Jul 30, 2013 at 11:58 PM, hv <hishamkanni...@gmail.com> wrote: >> >> Hi, >>> >>> I was not able to open NSS on FF android. Is NSS available on FireFox on >>> Android? >>> I tried the follwing: >>> >>> var ds = Services.dirsvc.get("GreD", Components.interfaces.** >>> nsILocalFile); >>> var libName = ctypes.libraryName("nss3"); >>> ds.append(libName); >>> >>> var nsslib = ctypes.open(ds.path); // FAILS TO OPEN >>> >>> -- >>> dev-tech-crypto mailing list >>> dev-tech-crypto@lists.mozilla.**org <dev-tech-crypto@lists.mozilla.org> >>> https://lists.mozilla.org/**listinfo/dev-tech-crypto<https://lists.mozilla.org/listinfo/dev-tech-crypto> >>> >>> >> >> > > > -- > dev-tech-crypto mailing list > dev-tech-crypto@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-tech-crypto > -- Mozilla Networking/Crypto/Security (Necko/NSS/PSM) -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto