Bug 494964 - missing NSS_Shutdown in the lib
missing NSS_Shutdown in the lib
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: python-nss (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: John Dennis
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-08 16:36 EDT by Rob Crittenden
Modified: 2009-05-21 13:29 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-21 13:29:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rob Crittenden 2009-04-08 16:36:15 EDT
There is no available call to NSS_Shutdown() in the API.

It is generally cleaner to pair NSS_Initialize() with NSS_Shutdown() calls.
Comment 1 Rob Crittenden 2009-04-08 17:27:39 EDT
Note that any references to certs, keys, slots, tokens, etc need to be freed before an NSS_Shutdown() will be successful.

I added an API command to do NSS_Shutdown() but it failed with:

nss.error.NSPRError: [Errno -8053] (SEC_ERROR_BUSY) NSS could not shutdown. Objects are still in use.

I'll poke around and see if I can find out where things aren't being freed up.
Comment 2 John Dennis 2009-05-21 13:29:35 EDT
added in python-nss-0.2, should appear in a day or two.

Note You need to log in before you can comment on or make changes to this bug.