equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "validate.h" |
|
20 |
|
21 CTPKCS7Validator::CTPKCS7Validator (CPKIXCertChain* aChain, CPKIXValidationResult* aResult, TTime* aTime) |
|
22 : CActive (0), iChain (aChain), iResult (aResult), iTime (aTime) |
|
23 { |
|
24 CActiveScheduler::Add (this); |
|
25 } |
|
26 |
|
27 CTPKCS7Validator::~CTPKCS7Validator () |
|
28 { |
|
29 Cancel (); |
|
30 } |
|
31 |
|
32 void CTPKCS7Validator::doValidate () |
|
33 { |
|
34 iStatus = KRequestPending; |
|
35 iChain->ValidateL (*iResult, *iTime, iStatus); |
|
36 SetActive (); |
|
37 } |
|
38 |
|
39 void CTPKCS7Validator::RunL () |
|
40 { |
|
41 CActiveScheduler::Stop (); |
|
42 } |
|
43 |
|
44 void CTPKCS7Validator::DoCancel () |
|
45 { |
|
46 } |