equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
447 void CWTLSCertChainAO::HandleEAddRootToListL() |
447 void CWTLSCertChainAO::HandleEAddRootToListL() |
448 { |
448 { |
449 //are we guarenteed that a cert from the store is a valid WTLScert? |
449 //are we guarenteed that a cert from the store is a valid WTLScert? |
450 //ie is this going to leave for reasons other than OOM? |
450 //ie is this going to leave for reasons other than OOM? |
451 CWTLSCertificate *cert = CWTLSCertificate::NewL( iEncodedCert ); |
451 CWTLSCertificate *cert = CWTLSCertificate::NewL( iEncodedCert ); |
|
452 |
|
453 CleanupStack::PushL(cert); |
452 User::LeaveIfError( iRootsFromStore.Append(cert) ); |
454 User::LeaveIfError( iRootsFromStore.Append(cert) ); |
|
455 CleanupStack::Pop(cert); |
453 |
456 |
454 iState = ERetrieveRoots; |
457 iState = ERetrieveRoots; |
455 TRequestStatus* status = &iStatus; |
458 TRequestStatus* status = &iStatus; |
456 User::RequestComplete(status, KErrNone); |
459 User::RequestComplete(status, KErrNone); |
457 SetActive(); |
460 SetActive(); |