os/security/cryptoservices/certificateandkeymgmt/tpkixcert_tef/src/pkixcertstepbase.h
First public contribution.
2 * Copyright (c) 2008-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.
24 #ifndef PKIXCERTSTEPBASE_H
25 #define PKIXCERTSTEPBASE_H
27 #include <test/testexecutestepbase.h>
29 #include <pkixcertchain.h>
33 _LIT(KPerformOom, "performoom");
34 _LIT(KEndEntity, "endentity");
35 _LIT(KIntermediateCert, "intermediatecert");
36 _LIT(KRootCert, "rootcert");
39 _LIT(KKeyFormat, "-%02d");
42 class CPkixCertStepBase : public CTestStep
47 virtual TVerdict doTestStepPreambleL();
48 virtual TVerdict doTestStepL();
52 virtual void PerformTestL();
53 void PerformOomTestL();
55 //so keyname concat with -01, -02, -03, .... , -XX
56 void GetStringArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray<TPtrC>& aArray);
57 void GetIntArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray<TInt>& aArray);
58 HBufC8* ReadFileLC(const TDesC& aFileName);
63 CPKIXCertChain* iCertChain;
64 HBufC8* iConcatenatedChain; //string concatenation of the DER encoded certs in the chain, not including the root cert
67 RPointerArray<TDesC> iProcessedOids; //pointers into iOids, necessary format for API calls
68 RPointerArray<CX509Certificate> iRootCerts;
70 TBool iUseUidOverload;
72 CActiveScheduler* iScheduler;
75 #endif // PKIXCERTSTEPBASE_H