version 1.30, 2008/12/16 18:55:59
|
version 1.31, 2010/07/28 14:37:52
|
|
|
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include "AuthenticationInfoRep.h" | #include "AuthenticationInfoRep.h" |
#include <Pegasus/Common/SSLContext.h> | #include <Pegasus/Common/SSLContext.h> |
|
#include <Pegasus/Common/FileSystem.h> |
|
#include <Pegasus/Common/Executor.h> |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
|
|
PEG_METHOD_ENTER( | PEG_METHOD_ENTER( |
TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep"); | TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep"); |
| |
|
// initiate the deletion of _localAuthFilePath. |
|
if(FileSystem::exists(_localAuthFilePath)) |
|
{ |
|
// No response was received from the local client for the |
|
// authentication challenge. Hence deleting the file here. |
|
|
|
// Use executor, if present. |
|
if (Executor::detectExecutor() == 0) |
|
{ |
|
Executor::removeFile(_localAuthFilePath.getCString()); |
|
} |
|
else |
|
{ |
|
FileSystem::removeFile(_localAuthFilePath); |
|
} |
|
} |
|
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |