Bug 154548. Patch applied to fix CASAManager to read firefox secrets properly.
This commit is contained in:
parent
1662a188e5
commit
60d7c798d4
@ -1,3 +1,7 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 10 9:41:10 MST 2006 - jnorman@novell.com
|
||||||
|
- Bug 154548. Fix to display firefox secrets in CASAManager.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 4 14:24:10 MST 2006 - jnorman@novell.com
|
Tue Apr 4 14:24:10 MST 2006 - jnorman@novell.com
|
||||||
- added timer to suppress viewing values(passwords) for micasa store
|
- added timer to suppress viewing values(passwords) for micasa store
|
||||||
|
@ -22,14 +22,20 @@
|
|||||||
|
|
||||||
#include "SignonManager.h"
|
#include "SignonManager.h"
|
||||||
|
|
||||||
|
// Static data to keep track of buffers
|
||||||
|
// Look at function ReadChar
|
||||||
|
static int last = 0;
|
||||||
|
static int next = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SignonManager::SignonManager()
|
SignonManager::SignonManager()
|
||||||
{
|
{
|
||||||
signonFile = NULL;
|
signonFile = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SignonManager::~SignonManager()
|
SignonManager::~SignonManager()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -48,6 +54,11 @@ int SignonManager::OpenSignonFile(char *firefoxProfileDir, char *fileName, char
|
|||||||
{
|
{
|
||||||
char *signonFilePath = NULL;
|
char *signonFilePath = NULL;
|
||||||
|
|
||||||
|
// Clean up previous buffers
|
||||||
|
last = 0;
|
||||||
|
next = 0;
|
||||||
|
|
||||||
|
|
||||||
signonFilePath = (char*) malloc( strlen(firefoxProfileDir) + strlen(fileName) + 3 );
|
signonFilePath = (char*) malloc( strlen(firefoxProfileDir) + strlen(fileName) + 3 );
|
||||||
|
|
||||||
if( signonFilePath == NULL )
|
if( signonFilePath == NULL )
|
||||||
@ -171,8 +182,6 @@ char SignonManager::ReadChar()
|
|||||||
{
|
{
|
||||||
const int buflen = 1000;
|
const int buflen = 1000;
|
||||||
static char buf[buflen+1];
|
static char buf[buflen+1];
|
||||||
static int last = 0;
|
|
||||||
static int next = 0;
|
|
||||||
|
|
||||||
if (next >= last)
|
if (next >= last)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user