зеркало из https://github.com/mozilla/gecko-dev.git
5bfa1a1ac8
Before this patch, mozilla::pkix gtests would generate a public/private key pair and stash it in a global variable. Since this wasn't part of XPCOM nor tracked by the PSM/NSS shutdown machinery, it wouldn't get released at the appropriate time. The solution to this is to generate the key and then essentially export it as data, so no NSS objects are held alive. Since NSS considers private keys stored in the persistent database sensitive and won't export them in the clear, we "encrypt" the key material with an empty password so we can import it when necessary. (While the gtests don't use persistent keys, the test utilties in the gtests are also used by some xpcshell tests that do use persistent keys, hence the need to encrypt the key material.) --HG-- extra : rebase_source : df10c25a462a3ba0396f5ba4a43a52fb924548ff extra : amend_source : d95722891e49a99c471046cd9c758e914a02838e |
||
---|---|---|
.. | ||
include/pkix | ||
lib | ||
test | ||
tools | ||
moz.build | ||
warnings.mozbuild |