diff -r 2455ef1f5bbc -r d5e927d5853b javaextensions/satsa/pki/src.s60/cstscredentialmanager.cpp --- a/javaextensions/satsa/pki/src.s60/cstscredentialmanager.cpp Wed Sep 01 12:33:18 2010 +0100 +++ b/javaextensions/satsa/pki/src.s60/cstscredentialmanager.cpp Tue Sep 14 21:06:50 2010 +0300 @@ -32,10 +32,15 @@ #include #include #include + +#ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS #include +#endif + #include + // CONSTANTS _LIT(KSTSSymbianKeyStoreLabel, "Software key store"); _LIT(KSTSSymbianCertificateStoreLabel, "Software certificate store"); @@ -66,7 +71,12 @@ { delete iEncodedCert; delete iIssuerAndSerialNumber; - +#ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS + if (iPKIDialog) + { + iPKIDialog->Release(); + } +#endif delete iDistinguishedName; delete iDisplayName; delete iRequestEncoded; @@ -529,7 +539,9 @@ // void CSTSCredentialManager::ConstructL() { - + #ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS + iPKIDialog = PKIDialogFactory::CreateNoteL(); + #endif User::LeaveIfError(iFileServer.Connect()); iWait = new(ELeave) CActiveSchedulerWait; iStore = CUnifiedCertStore::NewL(iFileServer, ETrue); @@ -614,7 +626,10 @@ { // not found, ok to add iState = EAddDialog; - + #ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS + iPKIDialog->SaveCertificate(EX509Certificate, EUserCertificate, + iSubject, iStatus); + #endif SetActive(); return; } @@ -714,8 +729,9 @@ CCTCertInfo* certInfo = (*iCertInfoArray)[ 0 ]; iState = ERemoveDialog; iHandle = certInfo->Handle(); - - + #ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS + iPKIDialog->DeleteCertificate(iHandle, iStatus); + #endif SetActive(); } @@ -777,8 +793,9 @@ } iState = ECSRDialog; iHandle = iKeyInfo->Handle(); - - + #ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS + iPKIDialog->CreateCSR(*iDisplayName, iHandle, iStatus); + #endif SetActive(); } @@ -1022,5 +1039,3 @@ FunctionServer::doServerSideInit(); } - -