|
1 /* |
|
2 * Copyright (c) 1998-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 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef __TPKIXCERTVAL_H__ |
|
27 #define __TPKIXCERTVAL_H__ |
|
28 |
|
29 #include <e32std.h> |
|
30 #include <badesca.h> |
|
31 #include <x509certchain.h> |
|
32 |
|
33 class CTestChain : public CBase |
|
34 { |
|
35 public: |
|
36 static CTestChain* NewL(const TDesC& aBuf); |
|
37 static CTestChain* NewLC(const TDesC& aBuf); |
|
38 ~CTestChain(); |
|
39 CTestChain(); |
|
40 virtual void ConstructL(const TDesC& aBuf); |
|
41 TBool AddInter(const TDesC& aBuf, TInt& aPos); |
|
42 // |
|
43 TBuf<128> iEECertFileName; |
|
44 TBuf<128> iEECertLabel; |
|
45 TBuf<128> iRootCertFileName; |
|
46 TBuf<128> iRootCertLabel; |
|
47 CDesCArray* iIntermediateCertsFileName; |
|
48 CDesCArray* iIntermediateCertsLabel; |
|
49 }; |
|
50 |
|
51 class CTestParameters : public CBase |
|
52 { |
|
53 public: |
|
54 static CTestParameters* NewL(const TDesC& aBuf); |
|
55 static CTestParameters* NewLC(const TDesC& aBuf); |
|
56 ~CTestParameters(); |
|
57 CTestParameters(); |
|
58 virtual void ConstructL(const TDesC& aBuf); |
|
59 TBool AddPolicy(const TDesC& aBuf, const TDesC& aStart, const TDesC& aEnd, TInt& aPos, CDesCArray& aPolicySet); |
|
60 // |
|
61 TBuf<128> iError; |
|
62 CArrayFixFlat<TValidationStatus>* iWarnings; |
|
63 CDesCArray* iPolicyInput; |
|
64 CDesCArray* iExpectedPolicyOutput; |
|
65 TBool iIPoliciesSet; |
|
66 TBool iOPoliciesSet; |
|
67 TBool iOWarningsSet; |
|
68 }; |
|
69 |
|
70 #endif |