mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
6d38e846af
Before this, every time NSS wanted to open a new session (C_OpenSession), osclientcerts would look for new client certificates/keys in the OS store. It turns out, NSS wants to open new sessions often, so this was slow. This patch adds a timestamp to the manager and ensures that it searches for new objects no more than once every 3 seconds. Additionally, this patch adds the optimization that if NSS tries to search for PKCS#11 objects with attributes that osclientcerts doesn't support, osclientcerts returns an empty search early, rather than enumerating every object and finding no matches. In the future we may need to be smarter about how we match objects during searches. Rather than iterating through every object, we could build lookup tables that would be much more time efficient. Differential Revision: https://phabricator.services.mozilla.com/D62982 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
apps | ||
certverifier | ||
ct | ||
mac/hardenedruntime | ||
manager | ||
nss | ||
sandbox | ||
.eslintrc.js | ||
generate_certdata.py | ||
generate_mapfile.py | ||
moz.build | ||
nss.symbols |