mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Bug 312285: Wallet forces NSS initialization on profile-before-change, patch by Vidar Haarr <vhaarr+bmo@gmail.com>, r=dveditz.
This commit is contained in:
parent
2389d1eac2
commit
52090324db
@ -594,7 +594,7 @@ Wallet_CheckConfirmYN
|
||||
/*******************************************************/
|
||||
|
||||
#include "nsISecretDecoderRing.h"
|
||||
nsISecretDecoderRing* gSecretDecoderRing;
|
||||
nsISecretDecoderRing* gSecretDecoderRing = nsnull;
|
||||
PRBool gEncryptionFailure = PR_FALSE;
|
||||
PRInt32 gReencryptionLevel = 0;
|
||||
|
||||
@ -707,11 +707,10 @@ static nsresult DecryptString (const char * crypt, char *& text) {
|
||||
|
||||
void
|
||||
WLLT_ExpirePassword(PRBool* status) {
|
||||
nsresult rv = wallet_CryptSetup();
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = gSecretDecoderRing->LogoutAndTeardown();
|
||||
if (gSecretDecoderRing) {
|
||||
gSecretDecoderRing->LogoutAndTeardown();
|
||||
}
|
||||
*status = NS_SUCCEEDED(rv);
|
||||
*status = PR_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user