Bug 494964

Summary: missing NSS_Shutdown in the lib
Product: [Fedora] Fedora Reporter: Rob Crittenden <rcritten>
Component: python-nssAssignee: John Dennis <jdennis>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: jdennis
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-21 17:29:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Crittenden 2009-04-08 20:36:15 UTC
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 21:27:39 UTC
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 17:29:35 UTC
added in python-nss-0.2, should appear in a day or two.