Update contrib.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if !defined(__E32STD_H__)
23 #if !defined (__BADESCA_H__)
27 #include <wtlscertchain.h>
30 1) unstructured text, no T=CA chains
37 2) proper x509 text with T=ca
47 3) proper structured text with T=ca
52 Winnipeg Jets (missing common name)
56 class CTestChain : public CBase
61 virtual void ConstructL();
62 CDesCArray* iServerCerts;
63 CDesCArray* iServerLabels;
64 CDesCArray* iRootCerts;
65 CDesCArray* iRootLabels;
66 CDesCArray* iExtraCerts;
67 CDesCArray* iExtraLabels;
70 class CTestChainBuild : public CTestChain
73 static CTestChainBuild* NewL();
74 static CTestChainBuild* NewLC();
79 class CTestChainValidate : public CTestChain
82 static CTestChainValidate* NewL();
83 static CTestChainValidate* NewLC();
87 //We have test certificates issued at different times in such a way that test validating
88 // these certificates with the same date will result in at least some of them being out
89 // of their validity period
90 //Old certificates == 0 and should be validated with a date of July 2000
91 //New certificates == 1 and should be validated with a date of July 2002
92 //This defaults to 0 in the constructor
95 ~CTestChainValidate();
96 TWTLSValidationStatus* iError;
97 CArrayFixFlat<TWTLSValidationStatus>* iWarnings;
98 void AddChainL(const TDesC& aValues);
99 void AddIOL(const TDesC& aValues);
100 void AddDateIssued(const TDesC& aValues);
102 TBool AddRootL(const TDesC& aBuf);
103 TBool AddServerL(const TDesC& aBuf);