cryptoservices/filebasedcertificateandkeystores/source/generic/server/fstokenutil.cpp
changeset 8 35751d3474b7
parent 0 2c201484c85f
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    17 
    17 
    18 
    18 
    19 #include "fstokenutil.h"
    19 #include "fstokenutil.h"
    20 #include <f32file.h>
    20 #include <f32file.h>
    21 #include <s32file.h>
    21 #include <s32file.h>
    22 #include <sectcbutil.h>
       
    23 
    22 
    24 // RMessage::Panic() also completes the message. This is:
    23 // RMessage::Panic() also completes the message. This is:
    25 // (a) important for efficient cleanup within the kernel
    24 // (a) important for efficient cleanup within the kernel
    26 // (b) a problem if the message is completed a second time
    25 // (b) a problem if the message is completed a second time
    27 void PanicClient(const RMessage2& aMessage, ETokenTypeServerPanic aPanic)
    26 void PanicClient(const RMessage2& aMessage, ETokenTypeServerPanic aPanic)
    81 	}
    80 	}
    82 
    81 
    83 void FileUtils::MakePrivateFilenameL(RFs& aFs, const TDesC& aLeafName, TDes& aNameOut)
    82 void FileUtils::MakePrivateFilenameL(RFs& aFs, const TDesC& aLeafName, TDes& aNameOut)
    84 	{
    83 	{
    85 	aNameOut.SetLength(0);	
    84 	aNameOut.SetLength(0);	
    86 	aNameOut.Append(SecTcbUtil::GetSystemDriveChar(SecTcbUtil::GetSystemDrive()));
    85 	aNameOut.Append(RFs::GetSystemDriveChar());
       
    86 
    87 	aNameOut.Append(':');
    87 	aNameOut.Append(':');
    88 
    88 
    89 	// Get private path
    89 	// Get private path
    90 	TBuf<20> privatePath;
    90 	TBuf<20> privatePath;
    91 	aFs.PrivatePath(privatePath);
    91 	aFs.PrivatePath(privatePath);